John Doe
John Doe

Reputation: 876

avconv Fade Filter, Suitable output format error

I am trying to use the fade-in filter with ffmpeg, using the following command.

ffmpeg -i 2.mp4 "fade=in:0:30" output.mp4

However, I get the following error:

Unable to find a suitable output format for 'fade=in:0:30'

I have checked the ffmpeg filters and the fade filter is installed correctly.

Please could someone let me know how to proceed.

Upvotes: 1

Views: 1700

Answers (1)

mark4o
mark4o

Reputation: 60883

You forgot the option -filter:v, which is followed by the filter name and parameters. Without that, it will assume that fade=in:0:30 is a file name.

ffmpeg -i 2.mp4 -filter:v fade=in:0:30 output.mp4

(Some older versions use -vf instead.)

Upvotes: 4

Related Questions