#!/bin/sh

if [ -z "$1" ]; then
    echo 'Usage:' `basename $0` 'The Title'
    exit
fi

# Create an AUDIO_TS subdirectory if it does not exist
[ ! -d AUDIO_TS ] && mkdir AUDIO_TS

chown -R root:root AUDIO_TS VIDEO_TS
chmod 500 AUDIO_TS VIDEO_TS
chmod 400 VIDEO_TS/*

growisofs -dvd-compat -Z /dev/dvd -dvd-video -V \""$*"\" .

More information

Refs