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>.isoTo 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 -scanbusCopy a video DVD:
#!/bin/sh rm -f dvdauthor.xml cat > dvdauthor.xml <<EOF <dvdauthor dest="dvd"> <vmgm /> <titleset> <titles> <pgc> <vob file="dvd_movie.mpg" chapters="0,0:30,1:00,1:30,2:30,3:00,3:30,4:00"/> </pgc> </titles> </titleset> </dvdauthor> EOF 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/ RETVAL=$? rm -f dvdauthor.xml exit $RETVAL
This will find the main title and create a new DVD iso with 1 title and no menu.
1 Comment