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

Dave Rice dave at dericed.com
Wed May 10 19:35:19 EEST 2017


> On May 10, 2017, at 11:55 AM, Gyan <gyandoshi at gmail.com> wrote:
> 
> On Wed, May 10, 2017 at 9:08 PM, Gyan <gyandoshi at gmail.com> wrote:
> 
>> 
>> 
>> On Wed, May 10, 2017 at 8:17 PM, Dave Rice <dave at dericed.com> wrote:
>> 
>>> 
>>> 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.
>>> 
>>> Best Regards,
>>> Dave Rice
>>> 
>> 
>> These two commands produce the same result:
> 
> ffmpeg -f lavfi -i testsrc2=r=1:d=5 -f lavfi -i testsrc2=r=1:d=5
> -filter_complex scale=flags=bicubic,format=yuv422p10le  -f framemd5 -
> 
> ffmpeg -f lavfi -i testsrc2=r=1:d=5 -f lavfi -i testsrc2=r=1:d=5 -vf
> scale=flags=bicubic,format=yuv422p10le -f framemd5 -
> 
> 
> 0,          0,          0,        1,   307200,
> b8ef3d6c4fc96d70fafbf20afd8f9cdf
> 0,          1,          1,        1,   307200,
> dada36d572dfe9b75b799b207e54590b
> 0,          2,          2,        1,   307200,
> f6b2bd8a2cafbe7261bd97cd41930ad3
> 0,          3,          3,        1,   307200,
> 5efbf76a4e8af59271de6a3e8cfb63f4
> 0,          4,          4,        1,   307200,
> f2289ce67d1f24230cee1219dc2557a5

Thank you so much. Adding `scale=flags=bicubic` into my workflow produced consistent results. I'm still a bit uncertain why these two routes opt for different defaults, but this method allows them to be forced to the same default. Thanks again.
Dave Rice



More information about the ffmpeg-user mailing list