[FFmpeg-trac] #4618(undetermined:new): mpeg4_unpack_bframes fails on file that suggested using it

FFmpeg trac at avcodec.org
Sat Jun 13 00:19:01 CEST 2015


#4618: mpeg4_unpack_bframes fails on file that suggested using it
-------------------------------------+-------------------------------------
             Reporter:  zach.r.d     |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 '''Summary of the bug:''' When attempting to convert the attached file
 from its original format to another, the following message appears:
 "''[mpeg4 @ 0000000004d0e940] Video uses a non-standard and wasteful way
 to store B-frames ('packed B-frames'). Consider using the
 mpeg4_unpack_bframes bitstream filter to fix it.''" However, using
 mpeg4_upack_bframes results in the following error: "''[libx264 @
 000000000483d4c0] The mpeg4_unpack_bframes bitstream filter is only useful
 for mpeg4.''"

 '''Expected behavior:''' Either the file should be successfully processed
 with mpeg4_unpack_brframes, or its use should not be suggested in the
 first place.

 '''How to reproduce:'''
 1. Download the attached file, attempt to convert it to H.264, note
 appearance of message:
 {{{
 C:\Users\support\Documents>ffmpeg -i "Doves.avi" -codec:v libx264 -crf 15
 -prese
 t medium test.mp4
 ffmpeg version N-72662-g7be0f48 Copyright (c) 2000-2015 the FFmpeg
 developers
   built with gcc 4.9.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-av
 isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
 --enab
 le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-
 libcaca --
 enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm
 --enable-l
 ibilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-
 libopenc
 ore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
 --ena
 ble-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex
 --enable
 -libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc
 --enabl
 e-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
 --enable
 -libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-
 libxvid --e
 nable-lzma --enable-decklink --enable-zlib
   libavutil      54. 26.101 / 54. 26.101
   libavcodec     56. 41.101 / 56. 41.101
   libavformat    56. 34.100 / 56. 34.100
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 16.101 /  5. 16.101
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  2.100 /  1.  2.100
   libpostproc    53.  3.100 / 53.  3.100
 Input #0, avi, from 'Doves.avi':
   Duration: 00:00:30.03, start: 0.000000, bitrate: 579 kb/s
     Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 512x512 [SAR
 1:1 DAR
  1:1], 573 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 30k tbc
 File 'test.mp4' already exists. Overwrite ? [y/N] y
 [libx264 @ 000000000476d420] using SAR=1/1
 [libx264 @ 000000000476d420] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2
 AVX
 [libx264 @ 000000000476d420] profile High, level 3.0
 [libx264 @ 000000000476d420] 264 - core 146 r2538 121396c - H.264/MPEG-4
 AVC cod
 ec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options:
 cabac=1 r
 ef=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
 mixed
 _ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
 fast_pski
 p=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0
 nr=0 dec
 imate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3
 b_pyramid=2 b
 _adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
 keyint_min=
 25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=15.0
 qcomp=0.
 60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 Output #0, mp4, to 'test.mp4':
   Metadata:
     encoder         : Lavf56.34.100
     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
 512x51
 2 [SAR 1:1 DAR 1:1], q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc
     Metadata:
       encoder         : Lavc56.41.101 libx264
 Stream mapping:
   Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 [mpeg4 @ 0000000004d0e940] Video uses a non-standard and wasteful way to
 store B
 -frames ('packed B-frames'). Consider using the mpeg4_unpack_bframes
 bitstream f
 ilter to fix it.
 frame=  370 fps=0.0 q=21.0 size=     509kB time=00:00:10.47 bitrate=
 397.8kbits/
 frame=  759 fps=759 q=21.0 size=     963kB time=00:00:23.45 bitrate=
 336.4kbits/
 frame=  899 fps=661 q=-1.0 Lsize=    1416kB time=00:00:29.99 bitrate=
 386.8kbits
 /s
 video:1405kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing
 overhead: 0.807114%
 [libx264 @ 000000000476d420] frame I:11    Avg QP: 3.69  size: 12485
 [libx264 @ 000000000476d420] frame P:262   Avg QP: 8.74  size:  4670
 [libx264 @ 000000000476d420] frame B:626   Avg QP:11.04  size:   123
 [libx264 @ 000000000476d420] consecutive B-frames:  5.7%  1.8%  8.0% 84.5%
 [libx264 @ 000000000476d420] mb I  I16..4: 59.8% 36.0%  4.2%
 [libx264 @ 000000000476d420] mb P  I16..4:  0.7%  7.3%  1.0%  P16..4:
 5.6%  2.7
 %  1.4%  0.0%  0.0%    skip:81.2%
 [libx264 @ 000000000476d420] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:
 5.2%  0.4
 %  0.1%  direct: 0.1%  skip:94.3%  L0:55.5% L1:42.9% BI: 1.6%
 [libx264 @ 000000000476d420] 8x8 transform intra:66.6% inter:77.8%
 [libx264 @ 000000000476d420] coded y,uvDC,uvAC intra: 66.9% 0.1% 0.0%
 inter: 1.6
 % 0.0% 0.0%
 [libx264 @ 000000000476d420] i16 v,h,dc,p: 75% 14% 10%  1%
 [libx264 @ 000000000476d420] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 19% 27%
 3%  4%
  6%  4%  7%  7%
 [libx264 @ 000000000476d420] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 58%  9%
 3%  2%
  3%  2%  3%  3%
 [libx264 @ 000000000476d420] i8c dc,h,v,p: 100%  0%  0%  0%
 [libx264 @ 000000000476d420] Weighted P-Frames: Y:7.6% UV:0.4%
 [libx264 @ 000000000476d420] ref P L0: 74.0%  8.9% 13.3%  3.7%  0.2%
 [libx264 @ 000000000476d420] ref B L0: 83.7% 14.8%  1.4%
 [libx264 @ 000000000476d420] ref B L1: 96.6%  3.4%
 [libx264 @ 000000000476d420] kb/s:383.48
 }}}

 2. Attempt same conversion with -bsf:v mpeg4_unpack_bframes:
 {{{
 C:\Users\support\Documents>ffmpeg -i "Doves.avi" -bsf:v
 mpeg4_unpack_bframes -co
 dec:v libx264 -crf 15 -preset medium test.mp4
 ffmpeg version N-72662-g7be0f48 Copyright (c) 2000-2015 the FFmpeg
 developers
   built with gcc 4.9.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-av
 isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
 --enab
 le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-
 libcaca --
 enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm
 --enable-l
 ibilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-
 libopenc
 ore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
 --ena
 ble-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex
 --enable
 -libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc
 --enabl
 e-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
 --enable
 -libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-
 libxvid --e
 nable-lzma --enable-decklink --enable-zlib
   libavutil      54. 26.101 / 54. 26.101
   libavcodec     56. 41.101 / 56. 41.101
   libavformat    56. 34.100 / 56. 34.100
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 16.101 /  5. 16.101
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  2.100 /  1.  2.100
   libpostproc    53.  3.100 / 53.  3.100
 Input #0, avi, from 'Doves.avi':
   Duration: 00:00:30.03, start: 0.000000, bitrate: 579 kb/s
     Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 512x512 [SAR
 1:1 DAR
  1:1], 573 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 30k tbc
 File 'test.mp4' already exists. Overwrite ? [y/N] y
 [libx264 @ 000000000473d4c0] using SAR=1/1
 [libx264 @ 000000000473d4c0] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2
 AVX
 [libx264 @ 000000000473d4c0] profile High, level 3.0
 [libx264 @ 000000000473d4c0] 264 - core 146 r2538 121396c - H.264/MPEG-4
 AVC cod
 ec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options:
 cabac=1 r
 ef=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
 mixed
 _ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
 fast_pski
 p=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0
 nr=0 dec
 imate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3
 b_pyramid=2 b
 _adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
 keyint_min=
 25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=15.0
 qcomp=0.
 60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 Output #0, mp4, to 'test.mp4':
   Metadata:
     encoder         : Lavf56.34.100
     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
 512x51
 2 [SAR 1:1 DAR 1:1], q=-1--1, 29.97 fps, 30k tbn, 29.97 tbc
     Metadata:
       encoder         : Lavc56.41.101 libx264
 Stream mapping:
   Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 [mpeg4 @ 0000000004af95c0] Video uses a non-standard and wasteful way to
 store B
 -frames ('packed B-frames'). Consider using the mpeg4_unpack_bframes
 bitstream f
 ilter to fix it.
 [libx264 @ 000000000473d4c0] The mpeg4_unpack_bframes bitstream filter is
 only u
 seful for mpeg4.
 Failed to open bitstream filter mpeg4_unpack_bframes for stream 0 with
 codec lib
 x264: Invalid argument
 [libx264 @ 000000000473d4c0] The mpeg4_unpack_bframes bitstream filter is
 only u
 seful for mpeg4.
 Failed to open bitstream filter mpeg4_unpack_bframes for stream 0 with
 codec lib
 x264: Invalid argument
 [libx264 @ 000000000473d4c0] The mpeg4_unpack_bframes bitstream filter is
 only u
 seful for mpeg4.
 Failed to open bitstream filter mpeg4_unpack_bframes for stream 0 with
 codec lib
 x264: Invalid argument
 [libx264 @ 000000000473d4c0] The mpeg4_unpack_bframes bitstream filter is
 only u
 seful for mpeg4.
 Failed to open bitstream filter mpeg4_unpack_bframes for stream 0 with
 codec lib
 x264: Invalid argument
 }}}
    ... snipping many identical lines ...
 {{{
 [libx264 @ 000000000473d4c0] The mpeg4_unpack_bframes bitstream filter is
 only u
 seful for mpeg4.
 Failed to open bitstream filter mpeg4_unpack_bframes for stream 0 with
 codec lib
 x264: Invalid argument
 [libx264 @ 000000000473d4c0] The mpeg4_unpack_bframes bitstream filter is
 only u
 seful for mpeg4.
 Failed to open bitstream filter mpeg4_unpack_bframes for stream 0 with
 codec lib
 x264: Invalid argument
 [libx264 @ 000000000473d4c0] The mpeg4_unpack_bframes bitstream filter is
 only u
 seful for mpeg4.
 Failed to open bitstream filter mpeg4_unpack_bframes for stream 0 with
 codec lib
 x264: Invalid argument
 [libx264 @ 000000000473d4c0] The mpeg4_unpack_bframes bitstream filter is
 only u
 seful for mpeg4.
 Failed to open bitstream filter mpeg4_unpack_bframes for stream 0 with
 codec lib
 x264: Invalid argument
 [libx264 @ 000000000473d4c0] The mpeg4_unpack_bframes bitstream filter is
 only u
 seful for mpeg4.
 Failed to open bitstream filter mpeg4_unpack_bframes for stream 0 with
 codec lib
 x264: Invalid argument
 [libx264 @ 000000000473d4c0] The mpeg4_unpack_bframes bitstream filter is
 only u
 seful for mpeg4.
 Failed to open bitstream filter mpeg4_unpack_bframes for stream 0 with
 codec lib
 x264: Invalid argument
 [libx264 @ 000000000473d4c0] The mpeg4_unpack_bframes bitstream filter is
 only u
 seful for mpeg4.
 Failed to open bitstream filter mpeg4_unpack_bframes for stream 0 with
 codec lib
 x264: Invalid argument
 [libx264 @ 000000000473d4c0] The mpeg4_unpack_bframes bitstream filter is
 only u
 seful for mpeg4.
 Failed to open bitstream filter mpeg4_unpack_bframes for stream 0 with
 codec lib
 x264: Invalid argument
 [libx264 @ 000000000473d4c0] The mpeg4_unpack_bframes bitstream filter is
 only u
 seful for mpeg4.
 Failed to open bitstream filter mpeg4_unpack_bframes for stream 0 with
 codec lib
 x264: Invalid argument
 [libx264 @ 000000000473d4c0] The mpeg4_unpack_bframes bitstream filter is
 only u
 seful for mpeg4.
 Failed to open bitstream filter mpeg4_unpack_bframes for stream 0 with
 codec lib
 x264: Invalid argument
 [libx264 @ 000000000473d4c0] The mpeg4_unpack_bframes bitstream filter is
 only u
 seful for mpeg4.
 Failed to open bitstream filter mpeg4_unpack_bframes for stream 0 with
 codec lib
 x264: Invalid argument
 frame=  899 fps=483 q=-1.0 Lsize=    1416kB time=00:00:29.99 bitrate=
 386.8kbits
 /s
 video:1405kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing
 overhead: 0.807114%
 [libx264 @ 000000000473d4c0] frame I:11    Avg QP: 3.69  size: 12485
 [libx264 @ 000000000473d4c0] frame P:262   Avg QP: 8.74  size:  4670
 [libx264 @ 000000000473d4c0] frame B:626   Avg QP:11.04  size:   123
 [libx264 @ 000000000473d4c0] consecutive B-frames:  5.7%  1.8%  8.0% 84.5%
 [libx264 @ 000000000473d4c0] mb I  I16..4: 59.8% 36.0%  4.2%
 [libx264 @ 000000000473d4c0] mb P  I16..4:  0.7%  7.3%  1.0%  P16..4:
 5.6%  2.7
 %  1.4%  0.0%  0.0%    skip:81.2%
 [libx264 @ 000000000473d4c0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:
 5.2%  0.4
 %  0.1%  direct: 0.1%  skip:94.3%  L0:55.5% L1:42.9% BI: 1.6%
 [libx264 @ 000000000473d4c0] 8x8 transform intra:66.6% inter:77.8%
 [libx264 @ 000000000473d4c0] coded y,uvDC,uvAC intra: 66.9% 0.1% 0.0%
 inter: 1.6
 % 0.0% 0.0%
 [libx264 @ 000000000473d4c0] i16 v,h,dc,p: 75% 14% 10%  1%
 [libx264 @ 000000000473d4c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 19% 27%
 3%  4%
  6%  4%  7%  7%
 [libx264 @ 000000000473d4c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 58%  9%
 3%  2%
  3%  2%  3%  3%
 [libx264 @ 000000000473d4c0] i8c dc,h,v,p: 100%  0%  0%  0%
 [libx264 @ 000000000473d4c0] Weighted P-Frames: Y:7.6% UV:0.4%
 [libx264 @ 000000000473d4c0] ref P L0: 74.0%  8.9% 13.3%  3.7%  0.2%
 [libx264 @ 000000000473d4c0] ref B L0: 83.7% 14.8%  1.4%
 [libx264 @ 000000000473d4c0] ref B L1: 96.6%  3.4%
 [libx264 @ 000000000473d4c0] kb/s:383.48
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4618>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list