nix, shell, perl, php, mysql and mac os x tips and tricks

Saturday, May 29, 2004

Burn a DVD from a set of MPEG files

#!/bin/bash
# Input:
# 1-255: MPEG files to be chapters of DVD
#

dvddirgen -o tmp_dvd -r
dvdauthor -o tmp_dvd $argv
dvdauthor -o tmp_dvd -T

dvd+rw-format -force /dev/cdrom
dvd+rw-booktype -dvd-rom-spec -unit+rw /dev/cdrom

growisofs -speed=1 -dvd-compat -overburn -Z /dev/cdrom -R -udf -dvd-video tmp_dvd

rm -rf tmp_dvd

No comments:

Post a Comment