[FFmpeg-trac] #7727(undetermined:closed): [FFmpeg-vaapi][mpeg2 encode] Driver does not support some wanted packed headers (wanted 0x3, found 0x10)

FFmpeg trac at avcodec.org
Fri Feb 15 19:30:53 EET 2019


#7727: [FFmpeg-vaapi][mpeg2 encode] Driver does not support some wanted packed
headers (wanted 0x3, found 0x10)
-------------------------------------+-------------------------------------
             Reporter:  andreyor     |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:  duplicate
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by andreyor):

 Input stream:
 http://fate-suite.ffmpeg.org/h264-conformance/AUD_MW_E.264

 Output log:
 {{{
 ffmpeg -y -hwaccel vaapi -vaapi_device /dev/dri/renderD128
 -hwaccel_output_format vaapi -i AUD_MW_E.264 -frames 600 -c:v mpeg2_vaapi
 -b:v 10000k -minrate:v 10000k -maxrate:v 10000k -compression_level 4 -g 24
 -bf 2 0004_HD03MP2_1_0.mpeg
 ffmpeg version N-93064-ged20fbcd48 Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)
   configuration: --prefix=/msdk/FFmpeg/ffmpeg_build --enable-libmfx
   libavutil      56. 26.100 / 56. 26.100
   libavcodec     58. 46.100 / 58. 46.100
   libavformat    58. 26.100 / 58. 26.100
   libavdevice    58.  6.101 / 58.  6.101
   libavfilter     7. 48.100 /  7. 48.100
   libswscale      5.  4.100 /  5.  4.100
   libswresample   3.  4.100 /  3.  4.100
 Input #0, h264, from 'AUD_MW_E.264':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: h264 (Constrained Baseline), yuv420p(progressive),
 176x144, 25 fps, 25 tbr, 1200k tbn, 50 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> mpeg2video (mpeg2_vaapi))
 Press [q] to stop, [?] for help
 [mpeg2_vaapi @ 0x5583410e1040] Driver does not support some wanted packed
 headers (wanted 0x3, found 0x10).
 Assertion 0 && "Invalid RC mode." failed at
 libavcodec/vaapi_encode_mpeg2.c:545
 Aborted (core dumped)
 }}}

 ffmpeg-qsv works fine:
 {{{
 ffmpeg -y -hwaccel qsv -c:v h264_qsv -i AUD_MW_E.264 -frames 600 -c:v
 mpeg2_qsv -b:v 10000k -minrate:v 10000k -maxrate:v 10000k -preset medium
 -g 24 -bf 2 -async_depth 1 0004_HD03MP2_1_0.mpeg
 ffmpeg version N-93064-ged20fbcd48 Copyright (c) 2000-2019 the FFmpeg
 developers
   built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)
   configuration: --prefix=/msdk/FFmpeg/ffmpeg_build --enable-libmfx
   libavutil      56. 26.100 / 56. 26.100
   libavcodec     58. 46.100 / 58. 46.100
   libavformat    58. 26.100 / 58. 26.100
   libavdevice    58.  6.101 / 58.  6.101
   libavfilter     7. 48.100 /  7. 48.100
   libswscale      5.  4.100 /  5.  4.100
   libswresample   3.  4.100 /  3.  4.100
 Input #0, h264, from 'AUD_MW_E.264':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: h264 (Constrained Baseline), yuv420p(progressive),
 176x144, 25 fps, 25 tbr, 1200k tbn, 50 tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (h264_qsv) -> mpeg2video (mpeg2_qsv))
 Press [q] to stop, [?] for help
 [mpeg @ 0x55d5a680c740] VBV buffer size not set, using default size of
 230KB.0kbits/s speed=N/A
 If you want the mpeg file to be compliant to some specification
 Like DVD, VCD or others, make sure you set the correct buffer size
 Output #0, mpeg, to '0004_HD03MP2_1_0.mpeg':
   Metadata:
     encoder         : Lavf58.26.100
     Stream #0:0: Video: mpeg2video (mpeg2_qsv), qsv, 176x144, q=2-31,
 10000 kb/s, 25 fps, 90k tbn, 25 tbc
     Metadata:
       encoder         : Lavc58.46.100 mpeg2_qsv
     Side data:
       cpb: bitrate max/min/avg: 10000000/10000000/10000000 buffer size: 0
 vbv_delay: -1
 [h264_qsv @ 0x55d5a680bac0] A decode call did not consume any data: expect
 more data at input (-10)
     Last message repeated 2 times
 frame=  100 fps= 75 q=-0.0 Lsize=    4482kB time=00:00:04.20
 bitrate=8742.0kbits/s speed=3.17x
 video:4465kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.387831%
 }}}

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


More information about the FFmpeg-trac mailing list