Posted By

wnasich on 10/21/10


Tagged

video convert avi ovg


Versions (?)

Converting ovg to avi


 / Published in: Bash
 

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

  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  

You need to login to post a comment.