[FFmpeg-devel] HLS protocol support?

Martin Storsjö martin at martin.st
Sun Jul 10 22:49:05 CEST 2011

On Sun, 10 Jul 2011, Stas Oskin wrote:

> > Ah, I see. The whole segmenting stuff doesn't really fit into a
> > libavformat muxer as a whole currently IMO, so you still need some code
> > outside of libavformat (either in ffmpeg.c or a separate application).
> > Whether that code is within the ffmpeg/libav repo is a separate question
> > of course.
> >
> I do agree with you that indeed the final process of writing the files to
> disk and letting them to be served by HTTP server, then erasing them is
> indeed on application level domain.
> On another hand, the segmenting process itself looks to my uninitiated eye
> as very similar to RTSP/RTMP muxing - there we are splitting the data to
> packets then return to user to do as he please, here we would do additional
> step and wrap these packets into segments.

I haven't thought fully about how to wrap it into libavformat, but 
segmentation and what's done in RTP/RTSP are at different levels, so I'm 
not sure if the same abstractions fit.

> Perhaps ffutils would be the best fit for this? From my inspection of the
> segmenter code it would be quite close to migrating the
> updatePlaylist()/updateLivePlaylist() functions (attributing the author of
> course) to ffutil and making it available to call as post-packetizing step.

If you mean as a separate tool like qt-faststart, yeah, that could of 
course be done.

// Martin

More information about the ffmpeg-devel mailing list