Skip to content

[Bug]: with h264 / avc1, Failed to end picture decode issue: 23 (internal decoding error)Β #1972

@vinc17fr

Description

@vinc17fr

Which component impacted?

Decode

Is it regression? Good in old configuration?

None

What happened?

On my Dell Precision 5570 laptop under Debian/unstable, with this vlc-avc1.mp4 video (22 KB):

$ vlc vlc-avc1.mp4
VLC media player 3.0.22-rc1 Vetinari (revision 3.0.22-rc1-0-g9e23cc7e00)
[000055dc590f6a80] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
[00007f6a14c04820] avcodec decoder: Using Intel iHD driver for Intel(R) Gen Graphics - 25.4.2 () for hardware decoding
[h264 @ 0x7f6a14cf0340] Failed to end picture decode issue: 23 (internal decoding error).
[h264 @ 0x7f6a14cf0340] hardware accelerator failed to decode picture
[h264 @ 0x7f6a14de5f40] Failed to end picture decode issue: 23 (internal decoding error).
[h264 @ 0x7f6a14de5f40] hardware accelerator failed to decode picture
[h264 @ 0x7f6a14eafbc0] Failed to end picture decode issue: 23 (internal decoding error).
[h264 @ 0x7f6a14eafbc0] hardware accelerator failed to decode picture
[...]

and the video remains black (same issue with other videos recorded on my Samsung Galaxy S23 Ultra with Samsung's screen recording feature).

/usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so is provided by the intel-media-va-driver Debian package, but I get the same errors with the intel-media-va-driver-non-free package.

Information on the video provided by ffplay:

Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt470bg/bt470bg/smpte170m, progressive), 1080x2316, 114 kb/s, 8.05 fps, 14.08 tbr, 1800k tbn (default)

What's the usage scenario when you are seeing the problem?

Playback

What impacted?

This affects VLC (no issues with ffmpeg-based players, such as ffplay and the playback in Firefox, where iHD_drv_video.so is not used).

Debug Information

Debian packages:

  • intel-media-va-driver 25.4.2+dfsg1-1
  • libva2 2.22.0-3
$ ls /dev/dri
by-path  card0  card1  renderD128  renderD129
$ lspci -nn | grep  -Ei 'VGA|DISPLAY'
0000:00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT2 [Iris Xe Graphics] [8086:46a6] (rev 0c)
$ vainfo
Trying display: wayland
Trying display: x11
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 25.4.2 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointStats
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSliceLP
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSliceLP
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointEncSliceLP
      VAProfileVP9Profile1            : VAEntrypointVLD
      VAProfileVP9Profile1            : VAEntrypointEncSliceLP
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointEncSliceLP
      VAProfileVP9Profile3            : VAEntrypointVLD
      VAProfileVP9Profile3            : VAEntrypointEncSliceLP
      VAProfileHEVCMain12             : VAEntrypointVLD
      VAProfileHEVCMain422_10         : VAEntrypointVLD
      VAProfileHEVCMain422_12         : VAEntrypointVLD
      VAProfileHEVCMain444            : VAEntrypointVLD
      VAProfileHEVCMain444            : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         : VAEntrypointVLD
      VAProfileHEVCMain444_10         : VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointVLD
      VAProfileHEVCSccMain            : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          : VAEntrypointVLD
      VAProfileHEVCSccMain10          : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         : VAEntrypointVLD
      VAProfileHEVCSccMain444         : VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444_10      : VAEntrypointVLD
      VAProfileHEVCSccMain444_10      : VAEntrypointEncSliceLP

libva trace log: libva_trace.log

Do you want to contribute a patch to fix the issue?

No.

Metadata

Metadata

Labels

AVCAVC , MPEG2 VP8 etc.Decodevideo decode related

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions