LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-01-2008, 07:15 AM   #1
depam
Member
 
Registered: Sep 2005
Posts: 861

Rep: Reputation: 30
How to convert AVI file to DVD?


Hi,

I have just downloaded a couple of movies in avi format. What I did was to use avidemux to convert the said file to DVD and it took me almost 2 hours per movie. I got an output of .mpeg. My problem now is how do I burn it into a DVD disc using the K3B burner? When I try to create a new DVD Video project, I can see that there are two folders created for AUDIO_TS and VIDEO_TS, on which folder will I put the mpeg file. Is there an easier way to do this in Ubuntu? What program can you suggest that will handle all the work (converting and burning)? I believe tovid can do this but its difficult to install. Thanks.
 
Old 01-01-2008, 08:45 AM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Just putting an mpeg into a VIDEO_TS folder will not work. You need to use something to convert the mpeg into vobs.

I use ffmpeg to convert to dvd compatible mpeg, then dvdauthor to create the dvd file structure and vobs, mkisofs to create the dvd image, and finally growisofs to burn the image (although you could use k3b for the last part). You could put all these into a script of some sort to make it easier, which I have done. These are the steps:

1) ffmpeg -i video.avi -y -target pal-dvd video.mpg
2) Make a dvdauthor xml file:
Code:
<dvdauthor dest="temp">
<vmgm/>
<titleset>
<titles>
<pgc>
<vob file="video.mpg"/>
</pgc>
</titles>
</titleset>
</dvdauthor>
3) dvdauthor -x dvdauthor.xml
4) mkisofs -dvd-video -udf temp > tempdvd.iso
5) growisofs -Z /dev/hdd=tempdvd.iso -dvd-compat -overburn
 
Old 01-01-2008, 10:25 AM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
By the way 2 hours is very long just for the initial conversion. Using my method takes around 30 mins from start to finish. There are a few things you will need to check though - I'm in the UK so I make pal dvds, you may need ntsc, and if the aspect ration is 4:3 you will need to put that in your dvdauthor xml file because it assumes 16:9 :

Code:
<dvdauthor dest="temp">
<vmgm/>
<titleset>
<titles>
<video aspect="4:3" />
<pgc>
<vob file="video.mpg"/>
</pgc>
</titles>
</titleset>
</dvdauthor>
Another thing to watch out for is that if for any reason you stop dvdauthor and restart it then you will need to delete the 'temp' folder it creates, because it tends to add on to whats already in there.

Last edited by dive; 01-01-2008 at 10:30 AM.
 
Old 01-02-2008, 03:34 AM   #4
depam
Member
 
Registered: Sep 2005
Posts: 861

Original Poster
Rep: Reputation: 30
I've downloaded an AVI already has black bars. Should I still set it to 4:3 or 16:9? Thanks a lot for the help.
 
Old 01-03-2008, 05:29 PM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Run it with mplayer and you can usually tell the format by the shape of it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
avi -> dvd convert but burn's with no audio? sir-lancealot Linux - Desktop 8 09-24-2007 08:53 AM
How to convert avi file to DVD? vees Linux - Software 16 04-06-2007 10:33 PM
Convert avi to dvd using ffmeg trox Linux - Newbie 3 02-20-2007 06:37 PM
convert 2 cd avi to a single dvd initDr Linux - Software 1 08-10-2006 02:57 AM
Convert DVD to AVI software? it-s Linux - Software 3 05-27-2006 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration