Created
July 12, 2014 16:26
-
-
Save Rudis1261/7ef646511592f8249d33 to your computer and use it in GitHub Desktop.
A quick video conversion script, $1 is the input Video and $2 the output video name.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
#ffmpeg -i $1 -vf scale=-1:480 -b:v 500k -maxrate 500k -crf 23 -c:a mp3 -strict -2 -b:a 128k $2 | |
#ffmpeg -i $1 -codec:v libx264 -profile: high -preset slow -b:v 500k -maxrate 500k -bufsize 1000k -vf scale=-1:480 -threads 0 -codec:a mp3 -b:a 128k $2 | |
#ffmpeg -i $1 -codec:v libx264 -profile:v main -preset slow -b:v 400k -maxrate 400k -bufsize 800k -vf scale=-1:480 -threads 4 -codec:a mp3 -b:a 128k $2 | |
ffmpeg -i $1 -codec:v libx264 -profile:v main -preset slow -b:v 1500k -maxrate 1500k -bufsize 2000k -vf scale=-1:720 -threads 4 -codec:a mp3 -b:a 96k $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment