-
-
Save allanesquina/256cfac4aad7cec2b7e0 to your computer and use it in GitHub Desktop.
Convert video using avconv
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
#!/bin/bash | |
# ./convertvideo.sh Directory filetype | |
# | |
# Ex: | |
# ./convertvideo.sh /videos mp4 | |
ls *$1 \ | |
| while read f | |
do | |
avconv -i "$1/$f" -y -s 4cif -ab 96k -vb 600k -aspect "16:9" "converted/$(basename "${f%.*}").$2"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment