Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have this avconv command:

avconv -i file -s [new size options] -vf "[filters]" /root/converted/1.mp4

Avconv uses the -vf filters before the -s scaling, but I need one avconv command to:

  1. Resize video first
  2. Use filters second

How can I do it?

share|improve this question
up vote 3 down vote accepted

Create a chain of filters, where you add a scale filter in the first part of the filter. E.g.:

avconv -i file -vf "scale=w=1920h=1080, [filter B], [filter C]" /root/converted/1.mp4
share|improve this answer
thanks it works with scale=w=1920h=1080 – Alex Apr 12 '13 at 8:09
Ah yes, that's the right avconv method. FFmpeg uses scale=1920x1080, so I changed that in my answer. – Nick van Tilborg Apr 12 '13 at 8:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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