Opened 6 years ago

Closed 6 years ago

#7398 closed defect (invalid)

[ffmpeg-qsv][h264_ffmpeg]decode failed on iHD driver

Reported by: a Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: qsv
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

ffmpeg-qsv run failed .

How to reproduce:

 ffmpeg -hwaccel qsv -hwaccel_device /dev/dri/renderD128 -v verbose -y -c:v h264_qsv -i /media//ffmpeg_h264/high-qp.mkv -vf hwdownload,format=nv12 -pix_fmt yuv420p -f md5 qsv_out.md5 -vsync 0

error message:

[AVHWDeviceContext @ 0x2493a80] Unknown driver "Intel iHD driver - 2.0.0", assuming standard behaviour.
[h264_qsv @ 0x23c2c80] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[AVHWDeviceContext @ 0x2615c40] Unknown driver "Intel iHD driver - 2.0.0", assuming standard behaviour.
[h264_qsv @ 0x23c2c80] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[AVHWDeviceContext @ 0x2738040] Unknown driver "Intel iHD driver - 2.0.0", assuming standard behaviour.
[h264_qsv @ 0x23c2c80] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[AVHWDeviceContext @ 0x26125c0] Unknown driver "Intel iHD driver - 2.0.0", assuming standard behaviour.
[h264_qsv @ 0x23c2c80] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[AVHWDeviceContext @ 0x2738040] Unknown driver "Intel iHD driver - 2.0.0", assuming standard behaviour.
[h264_qsv @ 0x23c2c80] Error initializing the MFX video decoder: invalid video parameters (-15)
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[h264_qsv @ 0x23c2c80] video_get_buffer: image parameters invalid
[h264_qsv @ 0x23c2c80] get_buffer() failed
[h264_qsv @ 0x23c2c80] Too many errors when draining, this is a bug. Stop draining and force EOF.
Error while decoding stream #0:0: Internal bug, should not have happened
[graph 0 input from stream 0:0 @ 0x2ba0000] w:352 h:288 pixfmt:yuv420p10le tb:1/20000 fr:30/1 sar:128/117 sws_param:flags=2
[auto_scaler_0 @ 0x26069c0] w:iw h:ih flags:'bicubic' interl:0
[Parsed_hwdownload_0 @ 0x2615c40] auto-inserting filter 'auto_scaler_0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_hwdownload_0'
Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Error while filtering: Function not implemented
Finishing stream 0:0 without any data written to it.
[graph 0 input from stream 0:0 @ 0x279b240] w:352 h:288 pixfmt:yuv420p10le tb:1/20000 fr:30/1 sar:128/117 sws_param:flags=2
[auto_scaler_0 @ 0x26064c0] w:iw h:ih flags:'bicubic' interl:0
[Parsed_hwdownload_0 @ 0x27a3e80] auto-inserting filter 'auto_scaler_0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_hwdownload_0'
Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scaler_0'
Error configuring filter graph
[AVIOContext @ 0x23a0ac0] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 0x23a2300] Statistics: 2446 bytes read, 0 seeks
Conversion failed!

Change History (3)

comment:1 by a, 6 years ago

Environment:

SKL	OS: ubuntu 16.04	kernel: 4.15.0		
libva	b6c50dad4d7d14c507108d9f468662e2d7ae1c4d	 https://github.com/01org/libva.git  
VPG_Driver	ed04556a6676fd77ff845508bc54bfc60915450c	 https://github.com/intel/media-driver
libva-utils	9a10ad663349732decd668a426cfc349b0010d1d	 https://github.com/01org/libva-utils.git
Mediasdk	7ea683585f0f84f1bea035a405855312c92c46c0	 https://github.com/Intel-Media-SDK/MediaSDK
FFMPEG	56f68a099cc607658118e00cad30569103ae3751	 https://git.ffmpeg.org/ffmpeg.git

comment:2 by Carl Eugen Hoyos, 6 years ago

Keywords: qsv added; ffmpeg-qsv h264 decode removed

comment:3 by jkqxz, 6 years ago

Resolution: invalid
Status: newclosed

Intel does not support 10-bit H.264 anywhere, and therefore libmfx can't handle it at all. Use the software decoder in libavcodec for such streams.

Note: See TracTickets for help on using tickets.