[Theora-dev] Re: New addition to FAQ

Tristan Wibberley maihem
Fri Jul 2 10:53:00 PDT 2004


On Fri, 02 Jul 2004 13:06:52 +1200, Chilling_Silence wrote:

> On Thursday 01 July 2004 20:40, you wrote:
>> #! /bin/sh
>>
>> rm stream.yuv
>> mkfifo stream.yuv
>>
>> if ! test -f audiodump.wav; then
>>     mplayer dvd://1 -alang ja -a-dvd-device /dev/hdc o pcm -vc
dummyxy -vo null -cache 8192
>> fi
>>
>> mplayer -cache 8192 -vo yuv4mpeg -benchmark -nosound \
>>     -vop
expand=480:352:0:0:0,scale=480:288:0:0:40,crop=640:512,pp=lb/dr \
>>     -spuaa 4 -slang de -spugauss 0.5 -spualign 1 -sws 7 \
>>     dvd://1 &> /dev/null &
>>
>> encoder_example -a 2 -v 7 audiodump.wav stream.yuv > theora.ogg
>
> Ive just tried the above.. Its not up to much now that its ripped the
> audio.... theora.ogg is still empty and Ive got a 1.1gb .wav file here
:-(
>
> Has anybody else tried this and got it working??

The arguments to mplayer don't quite work for me for the scaling and
cropping, but you can take that bit out. Try this, it works better here:

$ { cat > ripper && chmod +x ripper; } << EOF
#! /bin/sh

rm stream.yuv
mkfifo stream.yuv
rm audiodump.wav
mkfifo audiodump.wav

mplayer dvd://1 -alang ja -ao pcm -vc dummyxy \\
-vo null -cache 8192 >/dev/null 2>&1 &
AUDIO=\$!
kill -STOP \$AUDIO

mplayer -cache 8192 -vo yuv4mpeg -benchmark -nosound \\
-vop expand=480:352:0:0:0,scale=480:288:0:0:40,crop=640:512,pp=lb/dr\\
-spuaa 4 -slang de -spugauss 0.5 -spualign 1 -sws 7 \\
dvd://1 >/dev/null 2>&1 &
VIDEO=\$!
kill -STOP \$VIDEO

{ sleep 2; kill -CONT \$AUDIO; kill -CONT \$VIDEO; } &
~/bin/encoder_example -a 0 -v 4 audiodump.wav stream.yuv > theora.ogg

EOF

-- Tristan Wibberley (maihem)



More information about the Theora-dev mailing list