[Live-devel] Open RTSP and video file splitting...

Ross Finlayson finlayson at live555.com
Wed Aug 21 08:07:23 PDT 2013


>> If your input stream is H.264 video only (i.e., with no audio), then
>> another solution would be to write your own "MediaSink" subclass
>> (perhaps similar to the existing "H264VideoFileSink" class) that
>> writes a sequence of raw (i.e., elementary stream) H.264 video files.
>> You should be able to easily ensure that each output file begins with
>> a 'key frame'.  You could then, concurrently, process each of these
>> output raw H.264 video files into '.mov'/'.mp4' files to feed into
>> your Microsoft whatever (or just feed the raw H.264 files into your
>> Microsoft whatever, if it can handle those).
> 
> Much much better, it looks a lot more fluid now..
> The trouble I have now is the play speed. It's as if there was no clock leading the speed of playback and my 30 seconds of video goes as fast as it can.

Try keeping track of SPS and PPS NAL units, and insert one of each at the start of each output file (i.e., each of your 30-second segments).  That will probably give your conversion/editing software the timing information it needs.

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20130821/259f52e8/attachment.html>


More information about the live-devel mailing list