Record of some of the computer tech I deal with so that it's documented at least somewhere.

Monday, 1 October 2007

DVD authoring

eee, it's exciting the skills I have to suddenly learn

Windows/Quicktime/Nero whichever won't accept 4:3 animophic dv files from the Mac.
I bet it's my fault for choosing the wrong one but I'm stuck with it now.
I've got to author dvds anyway so here goes.


# echo 'deb http://www.debian-multimedia.org etch main' >> /etc/apt/sources.list
# echo 'deb-src http://www.debian-multimedia.org sid main' >> /etc/apt/sources.list
# apt-get update
# apt-get install ffmpeg transcode transcode-doc


The transcode wiki is a beautiful thing.
http://www.transcoding.org/cgi-bin/transcode?Transcode_Wiki

At least I hope so. We'll soon find out if it's fool's gold.

This created an mpeg from the reference SMPTE bars dv, I'm out of touch with the nasty dvs, it'll have to wait.



#!/bin/rc

fn tcode {
# -o m2v appended to argument
transcode -i $1 -x dv,null -o $1 -y ffmpeg,null --export_prof $2 -w $3 --export_asr 2 --encode_fields b -j 0,10,0,6 -R $4,ffmpeg.log

}


profile = dvd-pal
passes = 1
bitrate = 9000 # find out valid range "4000-10,000"

tcode $1 $profile $bitrate $passes


Running the nasty div of the lovely K
I'm getting a few of these :
[mpeg2video @ 0xb4f83ba8]rc buffer underflow EMT: 0:00:06, ( 0| 0| 9)
which is not good news :(


That was all rubbish advice. Here's one that worked :


ffmpeg -i $1 -f yuv4mpegpipe pipe: | mpeg2enc -f 8 -a 2 -n n -F 3 -q 3 -b 5000 -o $1.m2v
mplayer -vc null -vo null -ao pcm:fast $1 && mv audiodump.wav $1.wav
mplex -f 8 -o $1.mpeg $1.m2v $1.wav
echo '<dvdauthor dest="dvd">
<vmgm />
<titleset>
<titles>
<pgc><vob file="$1.mpeg" /><post>{ jump title 1;}</post></pgc>
</titles>
</titleset>
</dvdauthor>' | dvdauthor

No comments: