[FFmpeg-user] differences between -vf and -filter_complex

Paul B Mahol onemda at gmail.com
Wed May 10 21:44:08 EEST 2017


On 5/10/17, Dave Rice <dave at dericed.com> wrote:
>
>> On May 10, 2017, at 2:13 PM, Paul B Mahol <onemda at gmail.com> wrote:
>>
>> On 5/10/17, Dave Rice <dave at dericed.com <mailto:dave at dericed.com>> wrote:
>>> Hi ffmpeg-user,
>>>
>>> In some cases I've been using -vf and -filter_complex interchangeability
>>> but
>>> notice that some behavior is unexpectedly different.
>>>
>>> For instance if I use format=yuv422p10le within -vf and within
>>> -filter_complex the output is different. Is there something else I should
>>> add to the filterchain to get consistent results.
>>>
>>> Below is the output of:
>>> ffmpeg -f lavfi -i testsrc2=r=1:d=5             -vf format=yuv422p10le -f
>>> framemd5 -
>>> and
>>> ffmpeg -f lavfi -i testsrc2=r=1:d=5 -filter_complex format=yuv422p10le -f
>>> framemd5 -
>>
>> Both commands are suboptimal, use:
>>
>> ffmpeg -f lavfi -i testsrc2=r=1:d=5,format=yuv422p10le -f framemd5 -
>
> I usually avoid lavfi formatted inputs when I can, because IIUC there's no
> method to preserve frame interlacement data from the input through the
> filterchain. See https://trac.ffmpeg.org/ticket/4057.

How is that even related? format simply tells in what format testsrc2
will render its output.

By your command it is doing slow scale work internally always.


More information about the ffmpeg-user mailing list