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

<pre><code>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
</code></pre>

CC BY-SA 3.0
2017-06-19T05:40:42.713Z
2017-06-19T05:40:42.713Z
Gyan
<p>I am trying to specify multiple filters for ffmpeg and I am getting an error output.</p>

<p>I am trying to do an audio and video fade in and a resolution scale.</p>

<p>my command is as follows...</p>

<pre><code>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
</code></pre>

<p>and the error it gives me is as follows.....</p>

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

<ffmpeg><command-line>
ffmpeg multiple filters not working
Scorb
# ffmpeg multiple filters not working

(Asked by: username_0 on 2017-06-18)

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

**Tags:** ffmpeg, command-line


---

## 1 answers

### Answer by username_1 on 2017-06-19. Score: 2 | Accepted answer

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


---

