Project D

Transcoding Ogm to avi in one liner..

I got lots lots of anime video lying around in my harddisk, it comes from torrent or actual DVD that I bought… sometimes ripping the dvd comes out with ogm files which I normally dont have anything against. Anyway I try to mencoder the ogm to avi in cli without gui available and turns out its very easy to do a batch mencoder-ing in a single line cli command :

for z in *.ogm ; do mencoder "$z" -aid 1 -slang en -ovc xvid -oac mp3lame -lameopts br=192 -mc 0 -xvidencopts pass=1:bitrate=1000 -o "`echo $z | sed 's/\(.*\)\..*/\1/'`.avi" ; done & > /dev/null

and voila!, wait… the subtitle is too big for my taste… actually its too big for anybody taste so I add :

-font 'Bitstream Vera Sans' -subfont-autoscale 2 after -slang en

then the subtitle is almost the right size. (I dont bother to adjust it anymore).

that one liner will rip your ogm and turn it into avi file but warning! you need to adjust the variable first to get the right result. I think its better to do one mencoder-ing and test the result before launcing the batch mass mencoder-ing.

Happy mencoder-ing, aint it great to have free software?.

-= end transmission =-

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Slashdot
  • StumbleUpon
  • blinkbits
  • eKudos
  • Live
  • Share/Save/Bookmark

RSS Fresh Ebuild