ACPI administration advocacy advocacy advocacy opinion alsa apache apple audio authentication awk bash business cache calendar censorship commandline cron database debian desktop development disk dvd economics emacs email europe exim files firefox firewall flash foss freedom ftp fun git grub hardware hardware html images installation ipod kde kernel keyboard knoppix laptop latex locale lockin longlines mplayer multimedia mysql network nfs openbox openoffice opinion opinion partition pdf perl php politics postgresql printing privacy rant rxvt script scripting scsi security sed server shell siteadmin sitenews sitesoftware skype skype slackware sound spam ssh subversion sudo svk swap t23 t43 terminal text thinkpad thunderbird time timezone ubuntu users versioncontrol video windows wine wordpress wordprocessing xwindows xwindows youtube
Once you start playing around with video, you come to realise how flexible video on a computer is, and how hobbled some other formats are, such as video DVDs.
To burn a video with a 2.35 aspect ratio to DVD requires some conversion of the video. This means either the video needs to be cropped - the sides need to be sliced off - or you need to squash it by placing two black bars at the top and the bottom, causing a more severe letter box effect than you might otherwise have.
This script, using mplayer, converts the video to mpeg 2 and creates the letterboxing:
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd \ -srate 48000 -af lavcresample=48000 \ -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=4900:keyint=15:aspect=16/9:\ acodec=ac3:abitrate=192 -ofps 25 \ -vf scale=720:432,expand=720:576,harddup \ -o your_video.mpg "$1"
Note that 'your_video.mpg' is the output file and $1 is the first argument you pass to the script. The magic is in the "scale" and "expand" attributes. More info on this can be found here. A smarter script would automatically create a better name for the output file.
Now create an xml file with the video data in it.
<dvdauthor> <vmgm /> <titleset> <titles> <pgc> <vob file="your_video.mpg" chapters="0,0:10:0,0:20:0,0:30:0,0:40:0,0:50:0,1:00:0,1:10:0,1:20:0,1:30:0,1:40:0,1:50:0,2:0:0,2:20:0,2:30:0" /> </pgc> </titles> </titleset> </dvdauthor>
Run the dvdauthor command:
dvdauthor -o dvd/ -x dvd.xml
And burn the dvd:
growisofs -dvd-compat -Z /dev/dvd -dvd-video ./dvd/.
Thanks to linux.com and Gentoo Wiki for helping me to sort this out.