[FFmpeg-devel] how to download specific track data of a m3u8 content?

aihua zhao aihua.halley.zhao at gmail.com
Tue Jun 28 08:26:53 CEST 2016


Hi Experts:

I use ffmpeg to parse/demux media content, and created a player basing on
it.

here is a m3u8 content:
http://asp.cntv.lxdns.com/asp/hls/main/0303000a/3/default/438eb7a818b246c187e72f1cd4e1bc4c/main.m3u8
<http://asp.cntv.lxdns.com/asp/hls/main/0303000a/3/default/438eb7a818b246c187e72f1cd4e1bc4c/main.m3u8?maxbr=1200>
there are three video track in it.

I found all video/audio tracks are downloaded during playback, and I can
switch different track on the fly.
however, it consumes much bandwidth since all tracks are downloaded.

even when I append bandwidth to the url; still the same result:
http://asp.cntv.lxdns.com/asp/hls/main/0303000a/3/default/438eb7a818b246c187e72f1cd4e1bc4c/main.m3u8?maxbr=1200

Is there any way to download the specified track only to save bandwidth?

thanks


More information about the ffmpeg-devel mailing list