Saturday, July 17, 2010

How to convert an FLV file to MPG (DVD-ready format)

WinFF is a frontend for the all-mighty ffmpeg, it saves you all the command-line hassle. 

 



UBUNTU: How to convert an MPG file to a DVD movie ISO

Here's how to convert an MPG file to a DVD movie ISO ready for burning:

1- Create the DVD file structure

austin@austin-netbook:~/Videos$ dvdauthor -o dvd -t home.mpg.tovid_encoded.mpg
DVDAuthor::dvdauthor, version 0.6.14.
Build options: gnugetopt magick iconv freetype
Send bugs to

INFO: dvdauthor creating VTS
STAT: Picking VTS 01

STAT: Processing home.mpg.tovid_encoded.mpg...
STAT: VOBU 13952 at 3125MB, 1 PGCS
INFO: Video pts = 0.500 .. 5598.225
INFO: Audio[0] pts = 0.500 .. 5598.228
STAT: VOBU 13953 at 3125MB, 1 PGCS
INFO: Generating VTS with the following video attributes:
INFO: MPEG version: mpeg2
INFO: TV standard: ntsc
INFO: Aspect ratio: 16:9
INFO: Resolution: 720x480
INFO: Audio ch 0 format: ac3/2ch, 48khz drc

STAT: fixed 13953 VOBUS                       


2- Close the DVD table of contents

austin@austin-netbook:~/Videos$ dvdauthor -o dvd -T
DVDAuthor::dvdauthor, version 0.6.14.
Build options: gnugetopt magick iconv freetype
Send bugs to

INFO: dvdauthor creating table of contents
INFO: Scanning dvd/VIDEO_TS/VTS_01_0.IFO


3- Create the ISO image

austin@austin-netbook:~/Videos$ mkisofs -dvd-video -o dvd.iso dvd/
I: -input-charset not specified, using utf-8 (detected in locale settings)
  0.31% done, estimate finish Sat Jul 17 15:12:49 2010
  0.62% done, estimate finish Sat Jul 17 15:10:10 2010
  0.94% done, estimate finish Sat Jul 17 15:09:16 2010
  1.25% done, estimate finish Sat Jul 17 15:10:10 2010
  1.56% done, estimate finish Sat Jul 17 15:09:38 2010
  1.87% done, estimate finish Sat Jul 17 15:09:16 2010
....
98.69% done, estimate finish Sat Jul 17 15:10:54 2010
 99.01% done, estimate finish Sat Jul 17 15:10:54 2010
 99.32% done, estimate finish Sat Jul 17 15:10:53 2010
 99.63% done, estimate finish Sat Jul 17 15:10:52 2010
 99.94% done, estimate finish Sat Jul 17 15:10:53 2010
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 4096
Path table size(bytes): 42
Max brk space used 1a000
1600895 extents written (3126 MB)

That's it. You're ready to burn this image using brasero.