May 2013
M T W T F S S
« Apr    
 12345
6789101112
13141516171819
20212223242526
2728293031  
100

Refs

Categories

Archives

9,331slm
●5 ●38 ●132
 

[one-liner]: How to Burn an m4v or mp4 File to a DVD under Linux (Fedora/CentOS/RHEL & Debian/Ubuntu)

Background

Occasionally I’ve needed to burn an mp4 or m4v file to a DVD. No need for any DVD menus, just a disc that would start playing immediately when inserted. Here’s a quick run down of how you can accomplish this via the command line.

Solution

Here’s how I do it for a single video DVD without a menu.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 1. first convert the video with ffmpeg
ffmpeg -i input.m4v -target ntsc-dvd output.mpg
 
# 2. now do the authoring
dvdauthor --title -o dvd -f output.mpg
dvdauthor -o dvd -T
 
# NOTE: --title sets the title of the DVD, -T sets the table of contents. In both 
#       above commands the -o switch is referencing a directory, NOT the actual dvd.
 
# 3. roll the .mpg file into an ISO file
mkisofs -dvd-video -o dvdimage.iso dvd
 
# NOTE: mkisofs is making an actual DVD video ISO file using the directory, dvd.
 
# 4. burn the ISO to DVD disc
growisofs -speed=1 -dvd-compat -Z /dev/dvd=dvdimage.iso
 
NOTE: -speed=1 is for use with lower quality discs, increase as necessary

NOTE: This approach can be used to convert basically any format (m4v, mp4, etc.) to a DVD. Simply change the input file accordingly.

1
2
3
4
5
6
7
8
# m4v
ffmpeg -i input.m4v -target ntsc-dvd output.mpg
 
# mp4
ffmpeg -i input.mp4 -target ntsc-dvd output.mpg
 
# etc
...

Useful Links

NOTE: For further details regarding my one-liner blog posts, check out my one-liner style guide primer.

5 comments to [one-liner]: How to Burn an m4v or mp4 File to a DVD under Linux (Fedora/CentOS/RHEL & Debian/Ubuntu)

  • Faheem Mitha

    Hi,

    I was thinking of reposting this to a relevant stackexchange site, probably the Unix/Linux one, to increase the visibility of this little recipe. It is difficult to find this info on the net (low signal/noise ratio in this area). Is that Ok? I’ll link to this post. Please email me, I don’t know if I’ll remember to check back here. Thanks.

    Regards, Faheem

  • Marat Bandemer

    I am fairly new to using the command line in Linux (Ubuntu 10.04 – 64 bit). I have ffmpeg, libdvdcss, and other relevant libraries all installed, but cannot convert because ffmpeg says the input file is 47.95 fps.

    I am trying to convert a 720p mpeg4 down to a 480p dvd. Is there any way within ffmpeg to do this?

    Thanks very much for your help.

    • I found this via google. I don’t have any 720 mpeg videos to try it with. Can you let me know if this does what you need? NOTE: I believe in this example the input file is “input” and the output file is “output.mp4″.

      1
      
      ffmpeg -i input -vcodec libx264 -vpre medium -crf 22 -threads 0 -s 852x480 -acodec copy output.mp4
  • [...] por ultimo otra ves agradesco a simingol de lamolabs.org por la informacion aki les dejo la direccion de la informacion original [...]

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>