Results 1 to 6 of 6
here's 6 basic steps to convert a .AVI to DVD so you can watch your movies on your home player, not just your computer. . .But first we need to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-30-2005 #1Just Joined!
- Join Date
- Mar 2005
- Posts
- 7
AVI to DVD
here's 6 basic steps to convert a .AVI to DVD so you can watch your movies on your home player, not just your computer. . .But first we need to figure out if it's a fullscreen movie or letterbox movie. . .Movies normally come in two sizes: 4:3 (fullscreen) or 16:9 (letterbox) which they call aspect ratio. . .They also come in two formats PAL (Non-US) and NTSC (US). . .The following examples are for NTSC Only!
what you need first:
transcode
mplayer
Mjpegtools
ffmpeg
dvd+rw-tools
Dvdauthor
some hardrive space
in this example I will be using a 16:9 movie.avi for our conversion. . .
1.) Split the .avi file into 2 seperate files, one for video and one for audio:
this will make:Code:transcode -i movie.avi -y ffmpeg --export_prof dvd-ntsc --export_asr 3 -o movie -D0 -s2 -m movie.ac3 -J modfps=clonetype=3 --export_fps 29.97
movie.m2v (video)
movie.ac3 (audio)
note: if you're doing a fullscreen (4:3) movie then simply change --export_asr 3 to --export_asr 2
2.) (optional) Extract 5.1 Audio:
This is an extra step if you know your .avi file actually has 5.1 surround sound. (Step one only produces a stereo .ac3 file !)Code:tcextract -d2 -i movie.avi -a0 -x ac3 | tcextract -d2 -x ac3 -t raw > movie.ac3
How can you tell? Do this first:
if you get this output then you have 5.1:Code:mplayer -vo dummy -identify movie.avi 2> /dev/null | grep "5.1 ("
if you don't, just ignore this step!Code:AC3: 5.1 (3f+2r+lfe) 48000 Hz 384.0 kbit/s
3.) Put the video & audio file back together:
this will make dvd_movie.mpg ready for DVD authoring. . .Code:mplex -f 8 -o dvd_movie.mpg movie.m2v movie.ac3
4.) open your favorite text editor and paste the following:
save the file as: dvdauthor.xmlCode:<dvdauthor dest="DVD"> <vmgm /> <titleset> <titles> <pgc> <vob file="dvd_movie.mpg" chapters="0,15:00,30:00,45:00,1:00:00"/> </pgc> </titles> </titleset> </dvdauthor>
in the same directory as your movie files
(you can also change the chapters to fit the times of your movie)
5.) Create a DVD directory where your movie files are and do this:
this will create two AUDIO_TS and VIDEO_TS directories in your DVD directory. . .Code:dvdauthor -x dvdauthor.xml
6.) Test it & Burn it:
to test it:
to burn it:Code:xine dvd:/full/path/to/DVD/VIDEO_TS/
note: I like to use DVD-RW discs for a test before I use a real disc. . .Code:growisofs -Z /dev/dvd -dvd-video DVD/
If all goes well, the above will produce movie with no menus, just the movie that should play when you put in your disc. . .and if there's more than one .avi then simply do this in your dvdauthor.xml file:
Code:<dvdauthor dest="DVD"> <vmgm /> <titleset> <titles> <pgc> <vob file="dvd_movie_part1.mpg" chapters="0,15:00,30:00,45:00,1:00:00"/> <vob file="dvd_movie_part2.mpg" chapters="0,15:00,30:00,45:00,1:00:00"/> </pgc> </titles> </titleset> </dvdauthor>
GOOD LUCK!
- 08-30-2005 #2
Thanks
Thanks for taking the time to put this together.
I threw the following list together, which I think goes along great with your tutorial. One can pick and choose if one wishes to stay in the command line, or move to various GUI's, dependant on one's difficulty or progress.
http://www.linuxforums.org/forum/topic-49108-12.html
- 08-31-2005 #3Just Joined!
- Join Date
- Mar 2005
- Posts
- 7
here's how you add subtitles to your video stream:
1.) download the correct subtitle from http://eXTratitles.to
2.) use a program from dvdauthor called Spumux to add the subtitle text into the DVD video. Just make sure you have a .spumux dir in your home dir and put your fav .tff font in it. I used Vera.tff but any True Type font will do. Open your fav text editor and paste this:
save as 'subtitle.xml'Code:<subpictures> <stream> <textsub filename="movie.srt" characterset="ISO8859-1" fontsize="18.0" font="Vera.ttf" horizontal-alignment="center" vertical-alignment="bottom" left-margin="60" right-margin="60" top-margin="20" bottom-margin="30" subtitle-fps="29.97" movie-fps="29.97" movie-width="720" movie-height="478"/> </stream> </subpictures>
3.) Merge the subtitles into the DVD video:
when complete you should now have subtitles in your dvd_movie.mpgCode:spumux -s0 subtitle.xml < dvd_movie.mpg > dvd_movie.mpg.temp mv dvd_movie.mpg.temp dvd_movie.mpg
I goto http://cdcovers.cc for all my printing and menu needs. . .
- 09-04-2005 #4
Re: AVI to DVD
Both the posts of yours were great. It helps give a real insight as to what goes on "behind" the scenes in various scripts/software, and also provides a useful tool for those of us who on occasion like to have the option to roll up our sleeves and dive into the bash shell.
Originally Posted by ptesone
On the subject of AVI to DVD, here is a link to a script called "tovid" that will take .avi files and convert them to VCD, SVCD, or DVD. I haven't tried it out yet myself. I'm currently in the process of installing it.
http://tovid.sourceforge.net/
http://sourceforge.net/projects/tovid
- 09-11-2005 #5
Jubler for any subtitle edits
Further to this excellent post, and excellent web site, if the downloaded subtitle is not perfect, one can also edit the subtitles with "Jubler".
Originally Posted by ptesone
Jubler is a java based tool to edit text-based subtitles. It can be used an an authoring software for new subtitles or as a tool to convert, transform, correct and refine existing subtitles.
http://www.panayotis.com/jubler/
To run Jubler-2.0.0 requires v.1.5.0 or greater of the Sun Java Runtime Environment. (It also requires mplayer and aspell).
- 01-07-2007 #6Just Joined!
- Join Date
- Jan 2007
- Posts
- 1
what about a ".sub" instead of ".srt" subtitle file?
I have a .sub file, not a .srt file with the subtitles to the film. I wonder whether referring to that file will work? Or I will probably have to seach the net for a .srt file? Or probably try to convert the .sub to .srt?
Please shed some light on that problem


Reply With Quote
