[Live-devel] help with streaming a .ts file

Jason Reeves jhr at unitedentropy.com
Wed Aug 10 18:44:33 PDT 2016


The given openRTSP command generates a folder full of files with the .mp4
extension.  We have to rename them to .m4e in order for live555MediaServer
to stream them.  :)

Here are the properties of the files as reported by avprobe:

$ avprobe output-00000-00060.mp4
avprobe version 11.7, Copyright (c) 2007-2016 the Libav developers
  built on Aug  5 2016 16:19:40 with gcc 4.9.2 (Debian 4.9.2-10)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output-00000-00060.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isom
    creation_time   : 2016-08-05 06:02:23
  Duration: 00:00:58.25, start: 0.000000, bitrate: 1183 kb/s
    Stream #0.0(eng): Video: mpeg4 (Advanced Simple Profile), yuv420p,
640x480 [PAR 1:1 DAR 4:3], 1183 kb/s, 8 fps, 600 tbn, 1k tbc (default)
    Metadata:
      creation_time   : 2016-08-05 06:02:23
      encoder         : MPEG-4 Video
# avprobe output

My first attempt at converting this to a TS looked like this:

ffmpeg -i output-00000-00060.mp4 -f mpegts -vcodec copy -acodec copy
output.ts

That didn't work.  I managed to get the sample "bipbop" TS from the live555
website to work, so I tried to make my TS look as much like that as
possible.  I know live555MediaServer is finicky about what it will and
won't stream, so I assumed it might have something to do with the encoding
of the stream.  The "bipbop" clip contained an h264 video stream, so I
tried to create a TS with an h264 stream from my .mp4 file:

ffmpeg -i output-00000-00060.mp4 -vcodec libx264 output.ts

That also didn't work.  I also used the MPEG2TransportStreamIndexer program
to generate the .tsx files in both cases.  No luck.

In both cases, I am able to play the resulting TS file with VLC.

On Wed, Aug 10, 2016 at 7:28 PM, Ross Finlayson <finlayson at live555.com>
wrote:

> We are using openRTSP to save segments of video from security camera
> files.  So far, that is working beautifully.
>
> We use the command:
>
> openRTSP -V -P 60 -u <user> <pass> -v rtsp://<ip>/path/to/video
>
> This creates a folder full of .mp4 files.
>
>
> Actually, those won’t be “.mp4” files.  If your video stream is MPEG-4
> video, then the resulting files will be ‘MPEG-4 Elementary Stream’ video
> files - which are different from “.mp4 files”.
>
>
> We have a need to stream these .mp4 files complete with smooth trick play
> functionality.  We've attempted to convert them to .ts files with .tsx
> files created with your tool, but we have not been able to stream the .ts
> files.
>
>
> How did you convert the ‘.mp4 files’ (really, probably, ‘MPEG-4 Video
> Elementary Stream files’) to Transport Stream files?
>
> Were you at least able to *play* the resulting “.ts” files (e.g., using a
> media player like VLC)?  (You should make sure that you can play a file
> before you try to stream it.)
>
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20160810/f2a5078e/attachment.html>


More information about the live-devel mailing list