How to use avconv filters after encoding?

1

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?

Alex

Posted 2013-04-12T06:35:03.663

Reputation: 153

Answers

3

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

Nick van Tilborg

Posted 2013-04-12T06:35:03.663

Reputation: 775

Ah yes, that's the right avconv method. FFmpeg uses scale=1920x1080, so I changed that in my answer. – Nick van Tilborg – 2013-04-12T08:13:17.597