Menu

#5 OGG file decoding doesn't work

open
nobody
None
5
2005-01-08
2005-01-08
No

Playback of OGG encoded files doesn't work.

Server requires XM_RADIO support to be enabled,
otherwise the server crashes after trying to play back
an OGG file. Checking in the code reveals a pair of
#ifdef/#endif wrapping some XM_RADIO code which
apparently *also* includes code required to recognize
streams that need to be transcoded. Check
sendStreamFile() in audio.c

Even with XM_RADIO support enabled, playback of OGG
files results in the server feeding 0-byte files to the
TiVo, but no crash.

After much gnashing of teeth and tearing of hair, I
figured out how to fix this:

in the byRequest.conf file, modify the line

transcode: "ogg123 -q -d wav -f %out %in" ogg

to be, instead:

transcode: "ogg123 -q -d au -f %out %in" ogg

ogg123 is apparently incapable of feeding wave files to
a non-seekable output, such as stdout. Since I had no
problem manually linking ogg123 to lame via a FIFO, I'm
presuming the problem is because of the pipe created by
the line:

rc = pipe( pipefds2 );

in the sendStreamFile() function in audio.c. Just
guessing though.

With this, I can now build on a 64-bit system, and it
works just fine, so far ... (using CVS version as of
circa Jan 3, 2005).

Discussion


Log in to post a comment.

MongoDB Logo MongoDB