Creating an Audio only DVD from several CD's

linux at gabriel-striewe.de linux at gabriel-striewe.de
Thu Aug 12 23:36:06 UTC 2010


Hello,

just to summarize the steps I followed (and so that there is no
misunderstanding) I have put up this little shellscript which takes as
argument the directory with all the wav files you'd like to put on the
DVD-Video and makes a DVD from that with some photo in jpeg format as
display. 

Gabriel 


#!/bin/bash
### Usage:
### make_music_dvd.sh DIRECTORY WITH WAVFILES

DISPLAYIMAGE=display.jpg
WAVDIR=$@

XMLSTRING=\
"<dvdauthor> 
<vmgm /> 
<titleset> 
<titles>
<pgc>"

for wav in $(ls $WAVDIR/*.wav); do FILE=$(echo $wav|sed s/"\.wav"//g);\
ffmpeg -loop_input -shortest -i $DISPLAYIMAGE -i $FILE.wav \
 -r 44100 -target pal-dvd -aspect 16:9 $FILE.mpg; \
XMLSTRING+="<vob file=\"$FILE.mpg\" />"; \
done

XMLSTRING+=\
"</pgc>
</titles>
</titleset>
</dvdauthor>"

echo $XMLSTRING > dvd.xml

rm -rf dvddir

dvdauthor -o dvddir -x dvd.xml

growisofs -Z /dev/sr0 -dvd-video dvddir/


More information about the users mailing list