![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Just Give Me the Beans!
![]() |
Mov/Divx/Xvid/Wmv/Etc to DVD (PAL or NTSC)
A Guide To: Making DVDs from Various Formats (Get the script here: http://www.ubuntuforums.org/showthread.php?p=1900382)
Tools Requried:
Please note, following this guide will produce a disc without menus. Step 1: Convert Media to .AVI (Go to the next step, if the file you wish to convert is already in the .avi format) Okay, the first thing you need to do is to transcode your media into .avi format so that it is accepted by ffmpeg. (I tried using ffmpeg directly to convert a .mov to .mpg. It did not work ) To do so type the following in the terminal: mencoder <inputfile> -ovc xvid -xvidencopts pass=1 -oac mp3lame -lameopts vbr=3 -o /dev/null After which type: mencoder <inputfile> -ovc xvid -xvidencopts pass=2:bitrate=1000 -oac mp3lame -lameopts vbr=3 -o <outputfile> Okay, now we have a xvid .avi file to work with! Step Two: Convert the .avi file to a .mpg file Right, now that you have a file that ffmpeg will accept, enter the following to transcode the file into a compliant .mpg file. ffmpeg -i <outputfile from the above> -target pal-dvd final.mpg If you DVD player uses ntsc then replace the 'pal' to 'ntsc'. Or if you want you can type: ffmpeg -i <outputfile from above> -target pal-dvd -aspect 16:9 final.mpg This will make the aspect ratio 16:9, see if it works for you. Now you have your final .mpg file ready. Step 3: Create the DVD file structure Enter: dvdauthor -o DVD/ -t final.mpg and then: dvdauthor -o DVD/ -T Simple and fast, you now have the your DVD structure! Step 4: Create The .ISO File Type: mkisofs -dvd-video -v -o DVD.iso DVD And you finally have the .iso file ready for burning! ![]() Merry Christmas! Last edited by netyire; December 8th, 2008 at 03:55 AM.. Reason: mkisofs is included in already installed genisoimage package in 8.10 |
|
|
|
|
|
#2 |
|
Just Give Me the Beans!
![]() |
If you find this useful, please drop a comment! I wrote a python program which asks you for the file you want to convert and a few other things like whether you want PAL or NTSC and whether you want the aspect 16:9 or 4:3 and then creates the DVD.iso for you, ready to burn!
Code:
python program.py Code:
sudo apt-get install mkisofs ffmpeg dvdauthor mencoder python Code:
sudo apt-get install genisoimage ffmpeg dvdauthor mencoder python 8/12/2008: Updated required packages, thanks smoka! 18/12/2006: Added support for subtitles as requested by Rejser Last edited by netyire; December 8th, 2008 at 03:58 AM.. Reason: Updated attached file to give support for subtitles |
|
|
|
|
|
#3 |
|
Ubuntu Extra Shot
![]() |
Re: Please Comment
Great guide, how would I add subtitles to the dvd, from for example an srt file
__________________
Vrooom |
|
|
|
|
|
#4 |
|
Just Give Me the Beans!
![]() |
Howto: Add Subtitles To Your DVD
Ok, this actually just requires you to use the -sub <mysubtitle.srt> switch on pass 2 of encoding of your movie to avi. For example: Code:
mencoder <inputfile> -sub <subtitles.srt> -ovc xvid -xvidencopts pass=2:bitrate=1000 -oac mp3lame -lameopts vbr=3 -o <outputfile> Code:
mencoder <inputfile> -sub <subtitles.srt> -subfont-text-scale 3 -ovc xvid -xvidencopts pass=2:bitrate=1000 -oac mp3lame -lameopts vbr=3 -o <outputfile> Ok, I updated the script to give support for subtitles! Last edited by netyire; December 18th, 2006 at 07:02 AM.. Reason: In accordance to the updated script |
|
|
|
|
|
#5 | |
|
Day Old Decaf
![]() Join Date: Aug 2006
Location: USA
Beans: 163
Ubuntu 6.10 Edgy
|
Re: Mov/Divx/Xvid/Wmv/Etc to DVD (PAL or NTSC)
Quote:
Where do you input the source into that command? What is the max size of the first input file to be converted? What determines the final output size of the DVD and is there any control of it? How do I know if the file is too big to fit on DVD? Last edited by 454redhawk; December 19th, 2006 at 09:32 PM.. |
|
|
|
|
|
|
#6 | |||||
|
Just Give Me the Beans!
![]() |
Re: Mov/Divx/Xvid/Wmv/Etc to DVD (PAL or NTSC)
OK, firstly thanks for asking questions!
Quote:
Quote:
Code:
mkisofs -dvd-video -o <output iso file> <source directory> Quote:
Quote:
Quote:
|
|||||
|
|
|
|
|
#7 |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Oct 2005
Location: Fribourg,Switzerland
Beans: 2,202
|
Re: Mov/Divx/Xvid/Wmv/Etc to DVD (PAL or NTSC)
Fantastic! Thank you...it works, it's simple; it's understandable! Thx!
__________________
my JAMENDO * The XY sex-determination system is the sex-determination system found in humans and Z was my donor! * Tarot and Poya Sutra | * # 12755 |
|
|
|
|
|
#8 | |
|
Day Old Decaf
![]() Join Date: Aug 2006
Location: USA
Beans: 163
Ubuntu 6.10 Edgy
|
Re: Mov/Divx/Xvid/Wmv/Etc to DVD (PAL or NTSC)
THANKS!
Quote:
|
|
|
|
|
|
|
#9 |
|
5 Cups of Ubuntu
![]() Join Date: Aug 2005
Beans: 19
|
Re: Mov/Divx/Xvid/Wmv/Etc to DVD (PAL or NTSC)
How big is the file supposed to be. I'm trying to converts a 700mb video into an mpeg. Now ot's 1,6gigs big and 20 minutes long O.o The original file is 1.20 hours
|
|
|
|
|
|
#10 |
|
First Cup of Ubuntu
![]() Join Date: Apr 2006
My beans are hidden!
|
Re: Mov/Divx/Xvid/Wmv/Etc to DVD (PAL or NTSC)
thanks for the guide.
i just have one problem: step three when i am trying to create the dvd file structure i get this error message: "WARN: unknown mpeg2 aspect ratio 1" but not just once it fills up the whole terminal window and doesn't stop. all i can do is close the terminal. i do not know much about formats and conversions, so i do need some help with this. the original file was pal divx mpeg-4 version 4, 25fps, 616x488. after step two, the mpg was ntsc, 200x150. the difference in aspect ratios is probably it. now, could i run the ffmpeg line and specify 616x488, like you showed with the 16:9 aspect ratio? and if yes, would a dvd with that aspect ratio work allright in a ntsc dvd player with a regular ntsc tv? |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|