[FFmpeg-user] Where to put yadif in complex filtergraph

Moritz Barsnick barsnick at gmx.net
Sun Jul 17 18:10:49 EEST 2016


Hi Kevin Ganesh,

On Sat, Jul 16, 2016 at 13:02:28 +0000, Ganesh.Irelan at syda.org wrote:
> I want to use this command in a script executing both HD and SD
> content so I need to deinterlace. -vf yadif returns the error shown
> below. Can someone tell me where and how it should be entered in the
> command?

As the message says, you can't use both "-vf" and "-filter_complex", so
you need to construct a filtergraph/-chain within "-filter_complex".
Connect the "[vcat]" output with another chain containing yadif:

> ./ffmpeg -i "/Users/ganesh/Desktop/Top Level/Exported Media/0001RR.mp4" -i "/Users/ganesh/Desktop/Top Level/Exported Media/0003ZR.mp4" -i "/Users/ganesh/Desktop/Top Level/Exported Media/0004ML.mp4" -filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0][2:v:0][2:a:0]concat=n=3:v=1:a=1[vcat][acat]" -map "[vcat]" -map "[acat]" -crf 28 -vf yadif c:v libx264 -c:a aac CONCAT_TEST2.mp4

  [...] -filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0][2:v:0][2:a:0]concat=n=3:v=1:a=1[vcat][acat]; [vcat]yadif[v]" -map "[v]" -map "[acat]" [...]

Cheers,
Moritz


More information about the ffmpeg-user mailing list