View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 1 post ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Batch encode script
PostPosted: Wed Aug 19, 2009 9:37 pm 
Offline
Joined: Fri Oct 20, 2006 12:04 pm
Posts: 905
Location: LA, CA
well I was wishing I could just rip to .vob and then "batch run" my encode script. so I searched and found a real easy solution. Just put all the .vob files you want encoded into a directory and run this script from same directory. script will even change .vob to .avi automagicly. change mencoder settings as desired. with a few tweeks you can use it for audio files as well. (note the "do" line should be on a single line, but seems to get truncated.)

Code:
#!/bin/bash
#batch file to encode vobs to x264 w/mp3 audio
#place all vobs in any directory then run from that directory.

for f in *.vob ;
do nice -n 19 mencoder "$f" -ovc x264 -x264encopts bitrate=1000:me=umh:me_range=16:nodct_decimate:nointerlaced:8x8dct:nofast_pskip:trellis=1:partitions=p8x8,b8x8,i8x8,i4x4:mixed_refs:keyint=300:keyint_min=30:frameref=3:bframes=14:b_adapt:b_pyramid:weight_b:direct_pred=auto:subq=5:chroma_me:cabac:deblock:nossim:nopsnr:threads=auto -oac mp3lame -lameopts abr:br=128 -vf pullup,softskip -ofps 30000/1001 -aid 128 -o "${f%.[^.]*}.avi" ;
done


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu