[FFmpeg-devel] [PATCH] lavfi/vf_vpp_qsv: fix the infinite loop while framerate lower than input

Fu, Linjie linjie.fu at intel.com
Sat Feb 29 11:35:08 EET 2020


> -----Original Message-----
> From: Zhong Li <lizhong1008 at gmail.com>
> Sent: Saturday, February 29, 2020 13:14
> To: FFmpeg development discussions and patches <ffmpeg-
> devel at ffmpeg.org>
> Cc: Fu, Linjie <linjie.fu at intel.com>
> Subject: Re: [FFmpeg-devel] [PATCH] lavfi/vf_vpp_qsv: fix the infinite loop
> while framerate lower than input
> 
> Linjie Fu <linjie.fu at intel.com> 于2020年2月28日周五 下午11:34写道:
> >
> > There are frame droppings in frc while converting into a lower framerate,
> > and MSDK returns ERROR_MORE_DATA which should be ignored.
> 
> Should be fixed in MSDK instead of working around in FFmpeg?

MSDK made decision regarding frame rate conversion. If it's the framerate down case, 
FRC would skip frame without producing an output [1], and request a new input frame.

This seems to match the description in mediasdk-man.md [2]:
MFX_ERR_MORE_DATA: Need more input frames before VPP can produce an output

[1] https://github.com/Intel-Media-SDK/MediaSDK/blob/master/_studio/mfx_lib/vpp/src/mfx_vpp_hw.cpp#L324
[2] https://github.com/Intel-Media-SDK/MediaSDK/blob/master/doc/mediasdk-man.md#mfxvideovpp_runframevppasync



More information about the ffmpeg-devel mailing list