Converting ovg to avi


/ Published in: Bash
Save to your folder(s)

source: http://ubuntuforums.org/showthread.php?t=806125


Copy this code and paste it in your HTML
  1. #!/bin/bash
  2. # ogv to avi
  3. # Call this with multiple arguments
  4. # for example : ls *.{ogv,OGV} | xargs ogv2avi
  5. N=$#;
  6. echo "Converting $N files !"
  7. for ((i=0; i<=(N-1); i++))
  8. do
  9. echo "converting" $1
  10. filename=${1%.*}
  11. mencoder "$1" -ovc xvid -oac mp3lame -xvidencopts pass=1 -o $filename.avi
  12. shift 1
  13. done

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.