Thursday, November 20, 2008

MPG2DVD on Linux

I have finally managed to convert MPEG files from movie camera into DVD. Camera exports only NTSC (those things are so cheaper in USA today :-) so direct connection is useless in Europe. The Windows software coming with the camera is very clumsy. The Linux software, on the other hand, can do the job very well. It just takes some time to find out. Here is, what seems to work fine:

# mpeg files can be just concatenated
cat *mpg > all.mpg

# mpeg should be converted to DVD-style mpeg (very slow)
# yadif=3 ... deinterlace
# -ofps=30000/1001 ... don't skip frames
# mbd=2 ... slower, but better
mencoder \
-oac lavc \
-ovc lavc \
-of mpeg \
-mpegopts format=dvd \
-vf yadif=3,mcdeint=1,framestep=2,scale=720:576,harddup \
-srate 48000 \
-af lavcresample=48000 \
-lavcopts vcodec=mpeg2video:mbd=2:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:\
keyint=15:aspect=16/9:acodec=ac3:abitrate=192 \
-ofps 30000/1001 \
-o dvd.mpg all.mpg

# DeVeDe creates dvd.iso

# K3b writes dvd.iso to DVD

No comments:

Post a Comment