Posted At : December 24, 2007 3:05 PM
8 Comments
To install all this use:
Here are the simple steps to format a video for DVD:
First, make sure you can view the video using mplayer:
Then we convert if to DVD mpeg format:
This will create two files: MyMovie.m2v and MyMovie.ac3 which we need to merge back together:
Format the video for DVD:
Create a title page for it:
Create an ISO image to burn to dvd:
Then right click on the ISO in the file browser (Nautilus) and select "Write to Disc" and you have a DVD that will play in you normal DVD player.
References:
8 Comments
This is way more complicated than it needs to be. If you use mencoder (bundled with mplayer), you can eliminate 2 steps:
mplayer MyMovie.avi
mencoder -of mpeg -mpegopts format=dvd:tsaf -ovc lavc -oac lavc \
-vf harddup -srate 48000 -af lavcresample=48000 \ #format sound
-lavcopts \
vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vstrict=0:\ #dvd specs
vbitrate=8000:keyint=12:aspect=16/9:\ #tweakable dvd specs
trell:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10:\ #hi-qual options
predia=-10:cbp:mv0:vqmin=1:lmin=1:dc=10:\
acodec=ac3:abitrate=192 -ofps 30000/1001 \ #sound specs
MyMovie.avi -o MyMovie.mpeg
dvdauthor -o dvd/ -t MyMovie.mpg
etc.
Yes, I know it looks a little complicated, but not really. (See the #comments above. The only thing you can tweak is the vbitrate: less for lo-quality, max=9800; and the aspect ratio). I just cut and pasted from the official mencoder documentation. I use that command to convert a high-quality avi (widescreen) to a high-quality DVD (widescreen) video. (For fullscreen, change 16/9 to 4/3.) It's also for NTSM. It gives me really awesome quality DVD videos (assuming the original AVI is also hi-quality.)
I'm not sure what the dvdauthor -o dvd/ does (since I don't use it directly), but it might be possible to eliminate that step as well since the resulting mpeg is already dvd-player ready.
Thanks for the guide - it's pretty user-friendly & very helpful.
I did notice though, that "apt get" ought to have a hyphen in between: "apt-get"...
Good point re apt-get. I've fixed it up. Thanks for letting me know.
thanks for the tips. i used <a href="http://www.sharewarecheap.com/WinX-DVD-Author_soft...">WinX DVD Author</a> to convert avi to dvd and make dvd menu. just this one is ok. you can try.
If you have subtitles, you can add them in the mencoder command as -sub "subfile.srt"
I put it before the -o at the end.
Gil
Post by ikaruga didn't work for me. The reason was probably cause the video wasn't rescaled to the DVD resolution (7??x???) :p
The method explained in the post though worked beautifully!
Thanks!
PS: The longest time is taken in the "movie-to-dvd" step. For people in North America (check wiki page), they might want to use "ntsc" instead of "pal"
Forgot to add. It automatically embedded subtitles as well (the subtitles file should have the same filename as the original video followed by sub/srt eg. video.avi and video.sub).
i have a problem, when i type in mymovie.avi (i know i dont type in mymovie), it always says no such file