Wednesday, January 30, 2008

Convert Any Video File To DVD

I wrote this quick shell script that will convert any video file that will play on your linux box to a NTSC-DVD that will play on your dvd player.

Save this to a file "convert.sh", stick a dvd into your burner, shell out, and type "sh convert.sh

rm -f dvd.mpg
rm -f DVD/VIDEO_TS/*.*
ffmpeg -i $1 -target ntsc-dvd -sameq dvd.mpg
dvdauthor --title -f dvd.mpg -o DVD
dvdauthor -T -o DVD
growisofs -Z /dev/dvd0 -dvd-video DVD
eject /dev/dvd0

Requirements: the codex for the video file you are trying to convert, ffmpeg, dvdauthor, and growisofs. 


Popular Posts

Like us on Facebook