Burning CDs and DVDs in Linux

June 12, 2004

This is a rundown of some useful commands for creating a CD or DVD in Linux.

To burn a data DVD run this:
growisofs -Z /dev/cdrom -J -R -T -V <volume_name> <filename>
To burn a CD ISO run this:
cdrecord -v speed=12 fs=20m -dao dev=2,0,0 <filename>.iso
To burn a data CD run this:
mkisofs -r file | cdrecord dev=0,0,0 -v --eject speed=12 -
Use this to list available devices:
cdrecord -scanbus
Copy a video DVD:
rm -f dvdauthor.xml
cat > dvdauthor.xml <<EOF
<dvdauthor dest="dvd">
<vmgm />
<vob file="dvd_movie.mpg" chapters="0,0:30,1:00,1:30,2:30,3:00,3:30,4:00"/>
vobcopy -l &&
transcode -i *.vob -y ffmpeg --export_prof dvd-ntsc --export_asr 3 -o movie -D0 -s2 \
    -m movie.ac3 -J modfps=clonetype=3 --export_fps 29.97 &&
mplex -f 8 -o dvd_movie.mpg movie.m2v movie.ac3 &&
dvdauthor -x dvdauthor.xml &&
mkisofs -dvd-video -udf -o dvd.iso dvd/
rm -f dvdauthor.xml
exit $RETVAL

This will find the main title and create a new DVD iso with 1 title and no menu.

Related Posts

1 Comment

Comment September 26, 2005 by genspider@hotmail.com
how do you convert mpeg to dvd