Hardware acceleration fails on 11th-gen Intel CPU/iGPU

Hardware transcoding is erroring on the web interface. I've tried both stable and pre-release channels versions with the same result. Attempted pre-release version is 2021.09.19.1731
System: i5-11600K, Arch Linux with kernel 5.14.6, intel-media-sdk is installed and appears configured properly per Arch Wiki.

Below are logs with various setting changes for the hardware transcoder (I didn't see a way to attach logs). It appears deinterlacer set to blend or linear, rather than hardware gets closer to encoding, yet still errors.

Deinterlacer set to blend:
2021/09/19 23:40:18.637666 [ENC] Starting encoder for ch3.1 in /mnt/fastmedia/dvr/Streaming/ch3.1-dANY-ip192.168.1.152-825058964/encoder-6-1678251806 at 6 (4.877733) (encoder=h264_vaapi, resolution=, deinterlacer=blend, bitrate=8000 segment_size=0.01)
2021/09/19 23:40:18.657561 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-5-----8000-0--0-0--blend-false-false-0.01: [h264_vaapi @ 0x5ba23c0] Buffering settings are ignored in AVBR RC mode.
2021/09/19 23:40:18.668107 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-5-----8000-0--0-0--blend-false-false-0.01: [h264_vaapi @ 0x5ba23c0] Failed to end picture encode issue: 24 (internal encoding error).
2021/09/19 23:40:18.668120 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-5-----8000-0--0-0--blend-false-false-0.01: [h264_vaapi @ 0x5ba23c0] Encode failed: -5.
2021/09/19 23:40:18.668122 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-5-----8000-0--0-0--blend-false-false-0.01: Video encoding failed: Input/output error

Deinterlacter set to linear:
2021/09/19 22:32:00.022885 [ENC] Starting encoder for ch3.1 in /mnt/fastmedia/dvr/Streaming/ch3.1-dANY-ip192.168.1.152-1066502734/encoder-3-3115669610 at 3 (1.790367) (encoder=h264_vaapi, resolution=, deinterlacer=linear, bitrate=8000 segment_size=0.01)
2021/09/19 22:32:00.039524 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-2-----8000-0--0-0--linear-false-false-0.01: [h264_vaapi @ 0x6378f80] Buffering settings are ignored in AVBR RC mode.
2021/09/19 22:32:00.054629 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-2-----8000-0--0-0--linear-false-false-0.01: [h264_vaapi @ 0x6378f80] Failed to end picture encode issue: 24 (internal encoding error).
2021/09/19 22:32:00.054641 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-2-----8000-0--0-0--linear-false-false-0.01: [h264_vaapi @ 0x6378f80] Encode failed: -5.
2021/09/19 22:32:00.054643 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-2-----8000-0--0-0--linear-false-false-0.01: Video encoding failed: Input/output error

Deinterlacer set to hardware log snippet:
2021/09/19 23:42:51.620743 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-1-----8000-0--0-0--hardware-false-false-0.01: Error while decoding stream #0:0: Input/output error
2021/09/19 23:42:51.621725 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-1-----8000-0--0-0--hardware-false-false-0.01: [mpeg2video @ 0x6f64780] Failed to end picture decode issue: 23 (internal decoding error).
2021/09/19 23:42:51.621810 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-1-----8000-0--0-0--hardware-false-false-0.01: [mpeg2video @ 0x6f64780] hardware accelerator failed to decode picture
2021/09/19 23:42:51.621818 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-1-----8000-0--0-0--hardware-false-false-0.01: Error while decoding stream #0:0: Input/output error
2021/09/19 23:42:51.622525 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-1-----8000-0--0-0--hardware-false-false-0.01: [mpeg2video @ 0x6f64780] Failed to end picture decode issue: 23 (internal decoding error).
2021/09/19 23:42:51.622616 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-1-----8000-0--0-0--hardware-false-false-0.01: [mpeg2video @ 0x6f64780] hardware accelerator failed to decode picture
2021/09/19 23:42:51.622620 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-1-----8000-0--0-0--hardware-false-false-0.01: Error while decoding stream #0:0: Input/output error
2021/09/19 23:42:51.623646 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-1-----8000-0--0-0--hardware-false-false-0.01: [mpeg2video @ 0x6f64780] Failed to end picture decode issue: 23 (internal decoding error).
2021/09/19 23:42:51.623732 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-1-----8000-0--0-0--hardware-false-false-0.01: [mpeg2video @ 0x6f64780] hardware accelerator failed to decode picture
2021/09/19 23:42:51.623734 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-1-----8000-0--0-0--hardware-false-false-0.01: Error while decoding stream #0:0: Input/output error
2021/09/19 23:42:51.624443 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-1-----8000-0--0-0--hardware-false-false-0.01: [mpeg2video @ 0x6f64780] Failed to end picture decode issue: 23 (internal decoding error).
2021/09/19 23:42:51.624528 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-1-----8000-0--0-0--hardware-false-false-0.01: [mpeg2video @ 0x6f64780] hardware accelerator failed to decode picture
2021/09/19 23:42:51.624530 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-1-----8000-0--0-0--hardware-false-false-0.01: Error while decoding stream #0:0: Input/output error
2021/09/19 23:42:51.625515 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-1-----8000-0--0-0--hardware-false-false-0.01: [mpeg2video @ 0x6f64780] Failed to end picture decode issue: 23 (internal decoding error).
2021/09/19 23:42:51.625604 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-1-----8000-0--0-0--hardware-false-false-0.01: [mpeg2video @ 0x6f64780] hardware accelerator failed to decode picture
2021/09/19 23:42:51.625606 [HLS] ffmpeg: ch3.1-dANY-ip192.168.1.152-1-----8000-0--0-0--hardware-false-false-0.01: Error while decoding stream #0:0: Input/output error

Please try this alpha build by pasting the following command on your arch linux box:

curl -XPUT http://127.0.0.1:8089/updater/check/2021.09.21.2215

@tmm1 - Works! Playback is smooth on 1080i and 720p broadcasts. These errors appear, but do not affect playback/transcoding:
[mpegts @ 0x79ab800] Dropped corrupted packet (stream = 1)

1 Like

Great. These fixes will be part of the next prerelease.

2 Likes