LinHES Forums http://forums.linhes.org/ |
|
Batch encode script http://forums.linhes.org/viewtopic.php?f=3&t=20250 |
Page 1 of 1 |
Author: | Too Many Secrets [ Wed Aug 19, 2009 9:37 pm ] |
Post subject: | Batch encode script |
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 |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |