Creating DVD's from WMV's in Linux

Here's a handy script for using Linux to make DVD's out of your WMV files.

#!/bin/bash

# convert to mpeg
ffmpeg -i $* -target ntsc-dvd -aspect 1.3333 temp.mpg

# create dvd filesystem with title and TOC and then remove temp mpeg file
dvdauthor -o temp -t temp.mpg
dvdauthor -o temp -T
rm temp.mpg

# convert DVD filesystem into an iso file and remove temp directory
mkisofs -dvd-video -o DVD.iso temp
rm -rf temp

This code will produce and .iso file, which can then be burnt to a DVD using your desktop software. Using the GNOME desktop, right click on the .iso file and select 'Write to Disc'.