[FFmpeg-trac] #2886(avformat:new): HLS source with multiple variants is not optimally handled

FFmpeg trac at avcodec.org
Mon Apr 14 11:03:22 CEST 2014


#2886: HLS source with multiple variants is not optimally handled
-------------------------------------+------------------------------------
             Reporter:  sinkers      |                    Owner:
                 Type:  enhancement  |                   Status:  new
             Priority:  wish         |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  HLS          |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+------------------------------------

Comment (by anssi):

 Replying to [comment:3 sinkers]:
 >  Are you able to advise where in hls.c the switching between variants is
 currently handled?

 Currently, hls.c simply passes along all the variants as different
 AVPrograms to the user. The user can use AVDISCARD_ALL in
 AVStream->discard to temporarily disable retrieval of those variants that
 the user is not currently using (i.e. all but the currently playing one).

 In an adaptive streaming mode, I'd expect that the demuxer will instead
 have to provide single "virtual" audio and video streams (plus alternative
 renditions), and seamlessly switch the actual backing audio/video streams
 (playlist->ctx->streams) that those streams are fed from by
 hls_read_packet().

--
Ticket URL: <https://trac.ffmpeg.org/ticket/2886#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list