[FFmpeg-trac] #9970(avcodec:reopened): h264_qsv internal bug message on valid h264 video file

FFmpeg trac at avcodec.org
Tue Oct 18 18:43:44 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           |
------------------------------------+------------------------------------
Changes (by jorgev):

 * status:  closed => reopened
 * resolution:  needs_more_info =>


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` directly specified instead of hwaccel completes successuflly
> both when compiled with libmfx and libvpl. I unfortunately cannot
> immediately post the file which produces this error but I will work on
> trying to get one that does.
>
> How to reproduce:
>
> Currently I'm only able to reproduce with a video file that is not
> public, but here is an example of the output shown by ffmpeg when run
> with this file. Fortunately with the sample file, the error reproduces
> fairly trivially:
>
> {{{
> % ffmpeg-libmfx -report -loglevel debug -hwaccel qsv -i badfile-short.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.

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9970#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list