HOME → DVB to XVID
DVB to XVID
Assumptions Initial input file is called 1000.nuv and the final goal is to create a XVID file called movie.avi
Stage 1:
Convert NUV file to MPEG2, creating a file called test.mpg
replex -t DVD -k -o test.mpg 1000.nuv
Stage 2:
Convert the MPEG2 file to XVID. First we extract the sound
nice -n 3 mencoder -oac mp3lame -lameopts mode=2:cbr:br=128:vol=0 \ -ovc frameno -o frameno.avi test.mpg
Then we do the first XVID pass to gather statistics to improve quality
nice -n 3 mencoder -sws 2 -oac copy -ovc lavc -lavcopts \ vcodec=mpeg4:vbitrate=1000:vhq:vpass=1 -ffourcc XVID -vf \ scale=624:352 test.mpg -o /dev/null
We then do the second and final pass to create the xvid file.
nice -n 3 mencoder -sws 2 -oac copy -ovc lavc -lavcopts \ vcodec=mpeg4:vbitrate=1000:vhq:vpass=2 -ffourcc XVID \ -vf scale=624:352 test.mpg -o "movie.avi"
Voila. To clean up ready for the next program encoding, delete the files created during the procedures, remember to move or rename the movie.avi file before beginning again
rm -f test.mpg divx2pass.log frameno.avi