[Theora-dev] New addition to FAQ
David Kuehling
dvdkhlng
Thu Jul 1 01:40:30 PDT 2004
<20040630234503.GA23361 at ebed.etf.cuni.cz>
<200407011305.01146.Chilling_Silence at orcon.net.nz>
Message-ID: <87d63gktmp.fsf at snail.Pool>
>>>>> "Chilling" == Chilling Silence <Chilling_Silence at orcon.net.nz> writes:
> On Thursday 01 July 2004 11:45, you wrote:
>> I have Q, but no A yet:
>>
>> How do I encode DVD to theora without storing huge raw files on the
>> disk?
> In a nutshell: AFAIK - You cant!
Using mplayer, you can. The following code only needs temporary storage
for the audio. Actually you could get around the temporary storage by
using another mplayer-process in a pipe for audio. However, for DVDs
this is utterly slow and sometimes hangs on my system. You can
optimized more, by storing only the compressed MP2-audio on disk and
using another mplayer-decoding pipe when creating the .ogg. The
following script I'm currently using for encoding a the Chihiro DVD
(encoding not completed yet...):
#! /bin/sh
rm stream.yuv
mkfifo stream.yuv
if ! test -f audiodump.wav; then
mplayer dvd://1 -alang ja -ao 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
David
--
GnuPG public key: http://user.cs.tu-berlin.de/~dvdkhlng/dk.gpg
Fingerprint: B17A DC95 D293 657B 4205 D016 7DEF 5323 C174 7D40
More information about the Theora-dev
mailing list