[Libav-user] HTTP Live streaming: using demuxer

Jean-Yves Avenard jyavenard at gmail.com
Wed May 9 18:17:41 CEST 2012


Hi

I can easily play a HLS stream, simply by using
ffurl_open(&m_context, url, AVIO_FLAG_READ, NULL, NULL);

I just need to have my url starts with applehttp (obsolete) or hls+http

So the url would be a string with:
http://192.168.10.11:45631/live-playback-2.4.0/index_3c136413-ba6b-4dcb-b42f-0f1aff9c30bd.m3u8

when doing so however, I see the message
[hls @ 0x10ab95340] Using the hls protocol is discouraged, please try
using the hls demuxer instead. The hls demuxer should be more complete
and work as well as the protocol implementation. (If not, please
report it.) To use the demuxer, simply use
http://192.168.10.11:45631/live-playback-2.4.0/index_3c136413-ba6b-4dcb-b42f-0f1aff9c30bd.m3u8

Also, when using this method, seek do not work (along with other feature)

So I would like to use the demuxer.

But how would you do so ?

Could anyone provide an example on how to use the hls demuxer (or any
demuxer for that matter)

Thanks in advance
JY


More information about the Libav-user mailing list