[Vorbis] piping to ogg123: Error opening - using the oggvorbis

Tom Felker tcfelker
Tue Jun 8 13:48:07 PDT 2004


module. The file may be corrupted.
In-Reply-To: <Pine.LNX.4.43.0406081110070.26162-100000 at pilchuck.reedmedia.net>
References: <Pine.LNX.4.43.0406081110070.26162-100000 at pilchuck.reedmedia.net>
Message-ID: <200406081548.07489.tcfelker at mtco.com>

On Tuesday 08 June 2004 1:15 pm, Jeremy C. Reed wrote:
> I am unable to pipe to ogg123 with cat, but redirecting with < works fine.
>
>  rainier:~$ cat ~/audio/acdc-who_made_who.ogg | ogg123 -v -
>
>  Audio Device:   OSS audio driver output
>  Author:   Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
>  Comments: Outputs audio to the Open Sound System driver.
>
>  Error opening - using the oggvorbis module.  The file may be corrupted.
>
> I have same problem with a variety of ogg files (but redirecting with <
> works fine).
>
> This works:
>
>  rainier:~$ ogg123 -v - < ~/audio/acdc-who_made_who.ogg
>
>  Audio Device:   OSS audio driver output
>  Author:   Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
>  Comments: Outputs audio to the Open Sound System driver.
>
>  Playing: -
>  Ogg Vorbis stream: 2 channel, 44100 Hz
>  Vorbis format: Version 0
>  Bitrate hints: upper=-1 nominal=128000 lower=-1 window=0
>  Encoded by: Xiphophorus libVorbis I 20010225
>  Title: Who Made Who
>  Artist: ACDC
>  Album: Who Made Who
>  Time: 00:03.92 [03:23.08] of 03:27.00  (132.4 kbps)  Output Buffer  90.6%
>  ...
>
>
> I was unable to get to http://www.vorbis.com/faq.psp to check first.
>
> My goal is to use ssh to cat a remote ogg vorbis data file to pipe through
> my local ogg123. I'd prefer to not run ogg123 on remote box and piping the
> wav data to my player (which does work fine) because I assume it needs a
> lot more bandwidth.
>
> Any ideas?

When you do ogg123 < file, the shell sets it up so stdin is the file, and is
seekable, but when you do cat file | ogg123, stdin is a pipe which isn't
seekable.  So the problem is that ogg123 apparently can't read from
unseekable files.  The codec allows it, but ogg123 apparently can't do it.
(And it should.)

That said, you just set up the remote box as a fileserver, or if you need
streaming, try something like IceCast or Video LAN Client.

--
Tom Felker, <tcfelker at mtco.com>
<http://vlevel.sourceforge.net> - Stop fiddling with the volume knob.

McBride: "While I cannot take the time to specify my claim, I have here in my
hand a list of two hundred and five lines of code that were known to Linus
Torvalds as belonging to SCO, and which, nevertheless, are still transforming
Linux from a bicycle to a luxury car."


More information about the Vorbis mailing list