[FFmpeg-trac] #9970(avcodec:reopened): h264_qsv internal bug message on valid h264 video file
FFmpeg
trac at avcodec.org
Tue Oct 18 18:49:37 EEST 2022
#9970: h264_qsv internal bug message on valid h264 video file
------------------------------------+------------------------------------
Reporter: jorgev | Owner: (none)
Type: defect | Status: reopened
Priority: normal | Component: avcodec
Version: git-master | Resolution:
Keywords: QSV | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Old description:
> Summary of the bug:
>
> I've come across a video file which hits a decode error that looks like
> the following:
>
> {{{
> [h264_qsv @ 0x561849930140] Error during QSV decoding.: undefined
> behavior (-16)
> Error while decoding stream #0:0: Internal bug, should not have happened
> }}}
>
> This error does not occur when decoding with libx264 and seems specific
> to running ffmpeg with `-hwaccel qsv`. Running ffmpeg with `-c:v
> h264_qsv` specified instead of hwaccel completes successuflly both when
> compiled with libmfx and libvpl.
>
> How to reproduce:
>
> Download the badfile-shorter.mp4 file and run ffmpeg (built with
> `--enable-libmfx`) like so:
>
> {{{
> % ffmpeg -report -loglevel debug -hwaccel qsv -i badfile-shorter.mp4 -f
> null -
> ...
> [h264_qsv @ 0x55b72b9d4a40] Error during QSV decoding.: undefined
> behavior (-16)
> Error while decoding stream #0:0: Internal bug, should not have happened
> ...
> }}}
>
> I've attached a full log of the ffmpeg output for this error, which
> unfortunately doesn't look very helpful.
New description:
Summary of the bug:
I've come across a video file which hits a decode error that looks like
the following:
{{{
[h264_qsv @ 0x561849930140] Error during QSV decoding.: undefined behavior
(-16)
Error while decoding stream #0:0: Internal bug, should not have happened
}}}
This error does not occur when decoding with libx264 and seems specific to
running ffmpeg with `-hwaccel qsv`. Running ffmpeg with `-c:v h264_qsv`
specified instead of hwaccel completes successuflly both when compiled
with libmfx and libvpl.
How to reproduce:
Download the badfile-shorter.mp4 file and run ffmpeg (built with
`--enable-libmfx`) like so:
{{{
% ffmpeg -report -loglevel debug -hwaccel qsv -i badfile-shorter.mp4 -f
null -
...
[h264_qsv @ 0x55b72b9d4a40] Error during QSV decoding.: undefined behavior
(-16)
Error while decoding stream #0:0: Internal bug, should not have happened
...
}}}
I've attached a full log of the ffmpeg output for this error, which
unfortunately doesn't look very helpful.
Some additional pertinent details are:
Hardware:
Intel NUC 11
https://www.intel.com/content/www/us/en/products/sku/205593/intel-nuc-11
-pro-kit-nuc11tnki3/specifications.html
OS:
Ubuntu 20.04 with `linux-oem` installed as well as the driver packages
provided by intel here:
https://dgpu-docs.intel.com/installation-guides/ubuntu/ubuntu-focal.html
--
Comment (by jorgev):
I've added a sample file which reproduces the issue for me
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9970#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list