Advertisement
meninbox

mencoder.sh

Jun 16th, 2014
357
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. # meninbox@surabayablackhat.org)
  8. #
  9. ##############################################
  10.  
  11. N=$#;
  12. echo "Converting $N files !"
  13. for ((i=0; i<=(N-1); i++))
  14. do
  15. echo "converting" $1
  16. filename=${1%.*}
  17. mencoder "$1" -ovc xvid -oac mp3lame -xvidencopts pass=1 -o $filename.avi
  18. shift 1
  19. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement