Home > Linux, Misc > Batch video conversion on Linux command line

Batch video conversion on Linux command line

A short note on batch video conversion on Linux command line – on the example of converting all MOV in the current folder to AVI and keeping the original files.

find . -iname "*MOV" -exec avconv -i {} -b 18000k -b:a 192k -s 1280x720 {}.avi \;
rename s/MOV\.avi/avi/ *

You can replace the MOV and AVI file extensions in the find command with basically any other format, but may need to play around with the command’s parameters then. Typically used parameters include:

-b video quality
-b:a audio quality
-s video resolution

avconv is part of libav-tools in Ubuntu 14.04, therefore you can install it using:

sudo apt-get install libav-tools
Categories: Linux, Misc Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: