I am trying to specify multiple filters for ffmpeg and I am getting an error output.

I am trying to do an audio and video fade in and a resolution scale.

my command is as follows...

ffmpeg -i 00021.MTS -c:v libx264 -preset ultrafast -crf 0 -vf fade=in:0:500, afade=in:0:300, scale=384:218, scaled.avi

and the error it gives me is as follows.....

[NULL @ 0xb72ce0] Unable to find a suitable output format for 'afade=in:0:300,' afade=in:0:300,: Invalid argument

1 Answer 1


Audio and video filters are invoked in separate chains. And without enclosing quotes, whitespace will break the chain.

ffmpeg -i 00021.MTS -c:v libx264 -preset ultrafast -crf 0 -vf "fade=in:0:500, scale=384:218" -af afade=in:0:300 scaled.avi

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.