http://debian-multimedia.org/
apt-get install mjpegtools mkisofs dvdauthor ffmpeg
2mpeg
#!/usr/local/plan9/bin/rc
f = 8 # for dvdauthor otherwise go with 3
br = 7500
a = 3
q = 5
while(~ $1 -*) {
switch($1) {
case -b
br = $2
shift 2
case -f
f = $2
shift 2
case -a
a = $2
shift 2
# 1 - 1 - 1:1 display
# 2 - 2 - 4:3 display
# 3 - 3 - 16:9 display
# 4 - 4 - 2.21:1 display
case -i
deinterlace = '-deinterlace'
shift
case -q
q = $2
shift 2
}
}
paff = $1
shift
fname = `{basename $paff}
2mp2 $paff &
2m2v -q $q -a $a -f $f -b $br $paff $deinterlace &
wait
mplex -f 8 -o $fname.mpeg $fname.m2v $fname.mp2 && rm $fname.m2v $fname.mp2
2mp2
#!/usr/local/plan9/bin/rc
mplayer -vc null -vo null -ao 'pcm:fast:file=' ^$1.wav $1
mp2enc < $1.wav -o `{basename $1} ^.mp2 && rm $1.wav
2wav
#!/usr/local/plan9/bin/rc
aid = ''
while(~ $1 -*) {
switch($1) {
case -aid
aid = '-aid ' $2
shift 2
}
}
mplayer $aid -vc null -vo null -ao 'pcm:fast:file=/dev/fd/1' -
make some mpegs : 2mpeg 1.mov
2mpeg 2.mov
so you'll end up with 1.mov.mpeg 2.mov.mpeg
ffmpeg can deduce your aspect if you don't want to specify it
then make an xml (dvd.xml) file thus :
<dvdauthor dest="dvd">
<vmgm />
<titleset>
<titles>
<video format="pal" aspect="4:3" />
<audio format="pcm" lang="EN" />
<subpicture lang="EN" />
<pgc>
<vob file="1.mov.mpeg" />
<vob file="2.mov.mpeg" />
</pgc>
</titles>
</titleset>
</dvdauthor>
then
dvdauthor -x dvd.xml
mkisofs -dvd-video -udf -o dvd.iso dvd
wodim dev=/dev/cdrw1 -dao dvd.iso
done
No comments:
Post a Comment