[FFmpeg-trac] #7701(undetermined:new): [Parsed_deinterlace_qsv_2 Error during deinterlacing: -16

FFmpeg trac at avcodec.org
Fri Feb 15 13:11:01 EET 2019


#7701: [Parsed_deinterlace_qsv_2 Error during deinterlacing: -16
-------------------------------------+-------------------------------------
             Reporter:  kwsk         |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  qsv          |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by fulinjie):

 I think this is a mismatch between Info.PicStruct set in ffmpeg and
 CheckInputPicStruct in MSDK;
 In FFmpeg, TFF and BFF will be ignored if the input file in progressive;
 https://github.com/FFmpeg/FFmpeg/blob/9e1e5213933dfed529f0cecac7304236a786177e/libavfilter/vf_deinterlace_qsv.c#L419

 In MSDK, CheckInputPicStruct will return MFX_ERR_UNDEFINED_BEHAVIOR if the
 given cases are not matched:
 https://github.com/Intel-Media-
 SDK/MediaSDK/blob/b49b03b37b21f89575aa8dd956531928492a9835/_studio/mfx_lib/vpp/src/mfx_vpp_utils.cpp#L151

 Some frames in the input sample have the PicStruct of "Progressive | TFF |
 repeated", which will be set to:
 MFX_PICSTRUCT_PROGRESSIVE | MFX_PICSTRUCT_FIELD_REPEATED
 And it can not pass the CheckInputPicStruct.

 Same situation occurs in MfxHwH264Encode::CheckRunTimePicStruct when
 calling h264_qsv encode:
 https://github.com/Intel-Media-
 SDK/MediaSDK/blob/b49b03b37b21f89575aa8dd956531928492a9835/_studio/mfx_lib/shared/src/mfx_h264_enc_common_hw.cpp#L6880

 Try this patch to fix the deinterlace issue:
 https://github.com/intel-media-ci/ffmpeg/pull/21

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


More information about the FFmpeg-trac mailing list