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

Jeremy C. Reed reed
Tue Jun 8 12:31:15 PDT 2004


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

I received feedback off-list, so I am sending my notes to the list too. I
removed the other sender's comments, since they were not public.

I rarely touch Windows. This is under NetBSD/i386 1.6.2_STABLE. I just
check and behaves same under Linux too.

[input not seekable]

That's what it looks like.

ktrace shows:

4986 ogg123   CALL  lseek(0,0,0xffffffff,0xffffffff,0)
4986 ogg123   RET   lseek -1 errno 29 Illegal seek
4986 ogg123   CALL  lseek(0,0,0,0,0x1)
4986 ogg123   RET   lseek -1 errno 29 Illegal seek
4986 ogg123   CALL  lseek(0,0,0xffffffff,0xffffffff,0)
4986 ogg123   RET   lseek -1 errno 29 Illegal seek
4986 ogg123   CALL  lseek(0,0,0,0,0x1)
4986 ogg123   RET   lseek -1 errno 29 Illegal seek
4986 ogg123   CALL  lseek(0,0,0xffffffff,0xffffffff,0)
4986 ogg123   RET   lseek -1 errno 29 Illegal seek
4986 ogg123   CALL  lseek(0,0,0,0,0x1)

But when using "ogg123 -v - < file.ogg" ktrace does not show any "Illegal
seek" problems.

[ogginfo]

It appears normal.

[http input]

Works fine:

rainier:~/audio$ grep http /etc/inetd.conf
rainier:~/audio$ mini_httpd -p 8080
rainier:~/audio$ ogg123 -v http://localhost:8080/air-supply.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: http://localhost:8080/air-supply.ogg
Ogg Vorbis stream: 2 channel, 44100 Hz
Vorbis format: Version 0
Bitrate hints: upper=0 nominal=112001 lower=0 window=0
Encoded by: Xiph.Org libVorbis I 20030909
Time: 00:21.48  (124.1 kbps)  Input Buffer 100.0%   Output Buffer  90.6%
...


Piping is broken:

rainier:~/audio$ cat air-supply.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.



Thanks for the feedback.

Jeremy C. Reed

open source, Unix, *BSD, Linux training
http://www.pugetsoundtechnology.com/



More information about the Vorbis mailing list