Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. quality="40 38 36 34 32 30 28 26 24 22 20"
  4. file="$1"
  5. if [ ! -e $file ]
  6. then
  7. echo "Usage: ./mk.sh FILENAME"
  8. exit 1
  9. fi
  10.  
  11. for n in $quality
  12. do
  13. avconv -i $file -strict experimental -vcodec libx264 -preset fast -crf $n -threads auto -acodec aac -ab 128k -y $file-$n.mkv
  14. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement