meninbox

mencoder.sh

Jun 16th, 2014
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ##############################################
  4. #
  5. # Convert .ogv videos to .avi
  6. # Call this with multiple arguments
  7. #
  8. ##############################################
  9.  
  10. N=$#;
  11. echo "Converting $N files !"
  12. for ((i=0; i<=(N-1); i++))
  13. do
  14. echo "converting" $1
  15. filename=${1%.*}
  16. mencoder "$1" -ovc xvid -oac mp3lame -xvidencopts pass=1 -o $filename.avi
  17. shift 1
  18. done
Advertisement
Add Comment
Please, Sign In to add comment