[FFmpeg-trac] #6301(avformat:new): Bitstream filter 'h264_mp4toannexb' isn't auto-inserted for hls muxer

FFmpeg trac at avcodec.org
Thu Apr 13 01:13:26 EEST 2017


#6301: Bitstream filter 'h264_mp4toannexb' isn't auto-inserted for hls muxer
-------------------------------------+------------------------------------
             Reporter:  Alexander    |                    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 heleppkes):

 AVFMT_FLAG_AUTO_BSF is set by default, so the internal mpegts muxer in the
 HLS muxer should have this flag set, and automatically use the BSF
 appropriately. There is no need to run it before the HLS muxer as far as I
 can tell.

 In fact, I just tried with Git master, and it works as expected.

 Log snippet:
 ffmpeg -loglevel debug -i "The Simpsons Movie - 1080p Trailer.mp4" -vcodec
 copy -acodec copy -sn -f hls test.m3u8
 {{{
 Output #0, hls, to 'test.m3u8':
   Metadata:
     major_brand     : isom
     minor_version   : 1
     compatible_brands: isomavc1
     encoder         : Lavf57.72.100
     Stream #0:0(und), 0, 1/90000: Video: h264 (High), 1 reference frame
 (avc1 / 0x31637661), yuv420p(left), 1920x800 (0x0), 0/1, q=2-31, 7234
 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc (default)
     Metadata:
       creation_time   : 2007-05-15T06:55:40.000000Z
       handler_name    : GPAC ISO Video Handler
     Stream #0:1(und), 0, 1/90000: Audio: aac (LC) (mp4a / 0x6134706D),
 44100 Hz, stereo, fltp, 128 kb/s (default)
     Metadata:
       creation_time   : 2007-05-15T06:55:46.000000Z
       handler_name    : GPAC ISO Audio Handler
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
     Last message repeated 15 times
 Automatically inserted bitstream filter 'h264_mp4toannexb'; args=''
 [AVIOContext @ 03f87e40] Statistics: 0 seeks, 117 writeouts
 [file @ 0405a1c0] Setting default whitelist 'file,crypto'
 [file @ 04059a20] Setting default whitelist 'file,crypto'
 [hls muxer @ 04004600] EXT-X-MEDIA-SEQUENCE:0
 }}}

 (Relevant line: '''Automatically inserted bitstream filter
 'h264_mp4toannexb'; args=''''')

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


More information about the FFmpeg-trac mailing list