Usage: dvdwizard [options] mpeg-file(s)
Usage: dvdwizard [options] mpeg-file(s)
miscellaneous options: ---------------------- -h | --help print this lot out -v | --version print version and exit
general processing: ------------------- -C | --config-file filename of dvdwizard-configuration file [~/.dvdwizard/dvdwizard.conf] -o | --output Path where the final DVD will be stored [$BASEDIR/dvd] -x | --xml Print dvdauthor XML-specs into this file [$BASEDIR/dvdwizard.xml] -l | --logfile Write Log-Messages to this file [$BASEDIR/dvdwizard.log] --restart Do not start from beginning but from step x x may be dvdcpics, mk_vmgm, mk_vtsm, author --xmlonly Do not author final DVD, only create menus and xml
Note: $BASEDIR defaults to the current directory if not stated otherwise in the config file (either default ~/.dvdwizard/dvdwizard.conf or specified with the -C option)
DVD-specific options: --------------------- -T | --vmgm DVD-Title <string> Titlestring for the whole DVD [-t] if not specified, Titlestring from the first Title on the DVD will be used -B | --vmgmbg Background-Picture for VMGM-Menu -N | --tvnorm TV-Norm to use <PAL|NTSC> [PAL] -V | --tvsize Visible Area on TV-Screen <XxY> [635x535] -WS Widescreen-Option (nopanscan or noletterbox) for whole DVD may be overwritten by -ws for a specific titleset -P | --palette Name of palette File, needed i. E. for subpictures -A | --Audio language for audiotracks. <lang1,lang2,...,langn> [de,en] for each different audio-track format (mp2,ac3), assignment of language starts from beginning of list. first mp2 and ac3 track found in stream will be assigned to "lang1", second track to "lang2" etc. applies to all titlesets on the DVD, may be overwritten by -a for a specific titleset --audio-seq Assign languages in sequential mode, regardless of audio formats --notitle Suppressed printing of DVD-Title on VMGM-Menu
Title-specific options: ----------------------- -t | --vts Create a new titleset on the DVD with the subsequent options and mpeg-files. -t must be followed by a filename or a string or the word "auto" "auto" determines title-string from filename of first mpeg-file, if -t is followed by an existing filename, that file is considered to be the first mpeg in this titleset, else the string is used as movie title for this titleset
-c | --chapters Chapter-Specification <0|file|timecodes|interval> [300] 0 means no chaptering except for different mpeg-files -b | --vtsmbg Background-Picture for VTSM-Menu -ws Widescreen-Option (nopanscan or noletterbox) for this titleset -a | --audio see -A, but only applies to this titleset -s | --subpic pass subpicture information to dvdauthor. This is a string like "en" for english, "de" for German etc. More Languages by Comma Separation, i.e. "-s de,en".
Note: Every new "-t" creates a new titleset on the DVD. Subsequent options -c, -b and -a and mpeg-file(s) apply only to that titleset. To create a DVD with 2 titlesets, use for example:
dvdwizard -t auto -c 300 title1.mpg -t auto -b background.ppm title2.mpg
NB, need to make your multi-audio channel, multi-subtitle channels mpeg/VOB files first before using dvdwizard.
It emphasizes on creating menus and automate .xml file for dvdauthor.
documented on: 2005.09.20
Full automatic, with audio menu, plus thumbnails to select chapters is also possible.
I have tried dvdwizard-0.4.1 from Wolfgang Wershofen's: http://www.wershofen.de/downloads/dvdwizard.tar.gz
I took an 8 audio channel (1 x 1ch mp2, 1 x 2 ch mp2, 6 x 5 ch ac3) ` 4 subtitle channels (all nl) VOB made with xste ` tcmplex-panteltje + submux-dvd, and just did
./dvdwizard \ -t auto \ -x test.xml \ -o /reiser/workdisk/tmp/mydvd \ -B /big/compile/pantel/ppv/forest2.704x576.jpg \ /video/vie/the-call-of-the-heart-epi147-dutch-dvd/the-call-of-the-heart-epi147-dutch-subbed3.vob
-t auto sets automatic chapter points, you can use time. 'forest2.704x576.jpg' is background image for the menus, it has to be the right size.
-o /reiser/workdisk/tmp/mydvd is where the dvd image is build, you can test it later with
xine dvd://reiser/workdisk/tmp/mydvd
Make sure you have a version of 'sed' 4.1 or later, as this uses sed with the -i flag (suse 7.2 has an older version, so update).
I made ONE small change in the dvdwizard code in mk_vtsm_audio, so it would not abort on my 8 audio channels, as it only supports 5:
-a|--audio) shift atrackdef="$1" atracks=$(echo "$atrackdef" | tr ',' ' ' | wc -w) if [ $atracks -gt 5 ]; then # echo "Only up to 5 audiotracks are supported. Sorry" >2 # error_out
if [ $atracks -gt 8 ]; then echo "Only up to 8 audiotracks are supported. Sorry" >2 error_out
This was just a quick hack. This will print out of the colored area in the menu! So you can enlarge this area in mk_vtsm_audio around line 192 in the call to 'convert':
-fill 'rgba(128,192,255,128)' -draw 'roundrectangle '"$(( $offsetX+25 )),$(( $offsetY+25 ))"' 300,360 10,10' \
See, I enlarged it to 360 vertical.
I also modified some code in dvdwizard for language parsing, here is the new code:
# ------------------------------ # Create the Titlesets # call_mk_vtsm() { # # If restarting, delete xml beyond the restart mark # restartmark="call_mk_vtsm" sed -i '/^<!-- '$restartmark' \/\/-->/,/\n$/d' $XMLFILE #grep $restartmark "$XMLFILE" > /dev/null && cat $XMLFILE | sed -e '/^<!-- '$restartmark' \/\/-->/,/\n$/d' > $XMLFILE echo "<!-- $restartmark //-->" >> $XMLFILE for title in $(seq 1 $vts); do echo "Creating Titleset #$title..." echo -e "\t<titleset>" >> "$XMLFILE" # # Get audio characteristics of the title # echo -e "\tAssigning Languages to Audio-Tracks..." | tee -a $LOGFILE eval vtsaudio=\"\$VTSMAUDIO_${title}\" eval audiotracks=\"\$VTSM_${title}_ATRACKS\" acount=$(echo "$audiotracks" | wc -w) alang="" audioparm="" fmts="" lindex=0; for i in $audiotracks; do #echo "WAS Processing audio channel i=$i" found=0 if [ -n "$fmts" ]; then for j in $fmts; do if [ $i = $j ]; then found=1 break fi done fi if [ $found -eq 0 ]; then findex=$(echo "$fmts" | wc -w) fpos[findex]=0 fmts="$fmts $i" else findex=$j let fpos[findex]+=1 fi #echo "WAS found=$found fmts=$fmts" #echo "WAS findex=$findex" ############# lindex=${fpos[findex]} #echo "WAS lindex=$lindex" if [ ! -z "${vtsaudio[lindex]}" ]; then #echo "WAS VTS" lang="${vtsaudio[lindex]}" else #echo "WAS DVD" lang="${DVDAUDIO[lindex]}" fi if [ "$lang" != "" ] then #echo "WAS 1 alang=${alang} lang=${lang}" alang="${alang} ${lang}" #echo "WAS 2 alang=${alang}" audioparm="${audioparm}${i}+${alang##*\ }," let disind=lindex+1 echo -e "\t$disind. $i audio-track will be assigned to language ${lang}" | tee -a $LOGFILE #echo "WAS 3 audioparm=$audioparm" let lindex+=1; fi done audioparm="${audioparm%,}" # # Create the vtsm-menu(s) #
Use the -A flag to set audio languages, and specify the full language name in ~/.dvdwizard/dvdwizard.conf
DVDAUDIO="en,nl,ru,de,el,ta,iw" # Default languages DE=Deutsch EN=Englisch NL=Nederlands RU=Russian EL=Greek TA=Tamil IW=Hebrew
etc, this way they will appear in the audio menu. Specify as required for the VOB you made.
It shows the languages all as 'de' (German) in my test, but this is easily edited in test.xml
Still have to find a way to change this in the audio menu, now all 'English'.
The modified part of test.xml, 'audio lang' is set to the language files for audio, <subpicture lang' entries are added for each subtitle, and xste-palette.dat palette entry is added, else your subs will be black!
<titles> <audio lang="en" /> <audio lang="nl" /> <audio lang="nl" /> <audio lang="ru" /> <audio lang="de" /> <audio lang="el" /> <audio lang="ta" /> <audio lang="iw" /> <pgc pause="0" palette="/video/vie/open-doors-dvd/xste-palette.dat"> <pre> g1=9; </pre> <vob file="/video/vie/the-call-of-the-heart-epi147-dutch-dvd/the-call-of-the-heart-epi147-dut <post> call vmgm menu entry title; </post> </pgc> <subpicture lang="nl"/> <subpicture lang="nl"/> <subpicture lang="nl"/> <subpicture lang="nl"/> </titles>
That is all there is to it! the rest is AUTOMATIC.
Please note that if you only need ONE language you need only the xste-palette.dat modification. dvdwizard is bash scripts! so easy to modify!
Do not forget to also copy dvdwizardrc to where you copy the executables. Also make a directory ~/.dvdwizard, and copy the dvdwizard.conf.sample there as dvdwizard.conf
And directory ~/.spumux needs at least an arial.ttf!