Quickly create a simple DVD from a single file

dvdauthor  ffmpeg 

Sunday, September 28, 2008

Here's a script I use for creating a DVD with no menu from a single MPEG file. It puts chapter marks every 10 minutes.

#! /bin/bash
rm -rf tmp.mpg dvdfiles
ffmpeg -i "$1.mpg" -target dvd -vcodec copy -acodec copy tmp.mpg
dvdauthor -t -c 0:0,10:0,20:0,30:0,40:0,50:0,60:0,70:0,80:0,90:0,100:0,110:0,120:0 tmp.mpg -o dvdfiles
dvdauthor -T -o dvdfiles
mkisofs -dvd-video -udf -o "$1.iso" -V "$1" 'dvdfiles'
rm tmp.mpg
rm -rf dvdfiles

I call it smallerdvd, and use it like this:

smallerdvd moviefile

Where

moviefile.mpg

is the input file (don't specify the .mpg), and it will create a DVD image called

moviefile.iso

.





More

Archives     Categories