#7727 closed defect (duplicate)
[FFmpeg-vaapi][mpeg2 encode] Driver does not support some wanted packed headers (wanted 0x3, found 0x10)
| Reported by: | Andrey | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | undetermined |
| Version: | git-master | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
How to reproduce:
build/lin_x64/bin/ffmpeg -y -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i <1920x1080p_29.97_6mb_h264_cabac.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-93001-g87c165c237
Output:
[mpeg2_vaapi @ 0x562db9724840] 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
Change History (5)
comment:1 by , 7 years ago
| Component: | ffmpeg → undetermined |
|---|---|
| Keywords: | ffmpeg-vaapi removed |
| Priority: | important → normal |
| Resolution: | → duplicate |
| Status: | new → closed |
comment:2 by , 7 years ago
comment:3 by , 7 years ago
It was caused by "VA_ENC_PACKED_HEADER_SEQUENCE" and "VA_ENC_PACKED_HEADER_PICTURE" can't be supported by iHD driver. Only VA_ENC_PACKED_HEADER_RAW_DATA can be supported.
I prefer it can be supported at driver side, keep consistent with other codecs such as H264/HEVC.
comment:4 by , 7 years ago
Duplicated with https://trac.ffmpeg.org/ticket/7650 and the crash error has been fixed as 1e0fac76639e31eea48aa315cbca89aeb4761fde
Note:
See TracTickets
for help on using tickets.



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%