[Theora-dev] DVD->OggTheora

David Kuehling dvdkhlng
Sat Jul 3 03:55:42 PDT 2004

<200407011305.01146.Chilling_Silence at orcon.net.nz>
<87d63gktmp.fsf at snail.Pool>
<200407011025.12177.mail-lists+theoradev at dogphilosophy.net>
Message-ID: <87zn6hwea9.fsf at snail.Pool>

>>>>> "S" == S Clark <mail-lists+theoradev at dogphilosophy.net> writes:

> [...]  You don't need two separate mplayer processes to handle the
> audio:

> mkfifo stream.yuv mkfifo stream.wav

> encoder_example -a 2 -v 7 stream.wav stream.yuv > theora.ogg & mplayer
> -vo yuv4mpeg -ao pcm -aofile stream.wav dvd://1 2&>1 >/dev/null

this doesn't always work.  those fifos do almost no buffering (128
byte?).  as both mplayer and encoder_example are single-threaded, they
will deadlock if mplayer tries to output a video frame while
encoder_example is attempting to read an audio frame (which is of course
doing a blocking read).  it only works if the order of audio/video
frames that mplayer outputs matches excactly the order that
encoder_example expects.

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