dev-serveez
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [dev-serveez] icecast; yet another guile question


From: Raimund 'Raimi' Jacob
Subject: Re: [dev-serveez] icecast; yet another guile question
Date: Mon, 27 May 2002 09:09:34 +0200 (CEST)

On Sun, 26 May 2002, Raimund 'Raimi' Jacob wrote:

> On Fri, 24 May 2002, stefan wrote:

hi *,

> i tested it: it does not quite work. there is a case in which it works:
> - create pipe
> - start serveez
> - start client programm (it does not yet receive data)
> - start sox/lame
> 
> this way the client receives a valid mp3 header and works as expected. if
> the client connects at arbitrary time it sees just bit-junk (no mp3
> header) and wont play anything.
> 
> bottom line: the .scm file is no real icecast server, sorry...
> (btw.: icecast also includes file names and i believe arbitrary data
> inside the mpg stream...)

ahem. apparently i was mistaking. the .scm file is still no real icecast
server because it works completely different. it keeps a directory of .mp3
files and whenever a client connects it gets a random one played. this
works quite well with real mp3 files.

apparrantly there is no such thing as a "mp3 header" per file. instead all
required information (bitrate, sapling rate, channels, ...) is deduced at
every special frame in the mp3 stream (dunno how they're told). the player
just has to skip to the next valid frame. this works with mpg123 but not
with xmms...

so the problem here actually was: i served no real file but a named
pipe. when two clients connected to it, it got opened a second time. each
client read a random portion from the file ending up in two invalid mpg
streams.

so the .scm file works:
- not quite like icecast
- correctly for real files
- as a useful radio-server with a distinct program for each client

but hey, what do _i_ know about mpg and icecast...

Bye,
    Raimi

--
      __/\     _/\    _____/\.___/\
     /   /    /  /___/   ____/  __/\     Name    : Raimi
    /   /  __/    __/   / __/  / _\/     Contact : address@hidden
   /   /__/ /     \/   /_/_/  /_/        Visit   : http://www.lkcc.org
  /________/___/\._\._____/_____/\       3.141592653589793238462643383
  \._______\.__\/__/\.____\.____\/       27950288419716939937510582097





reply via email to

[Prev in Thread] Current Thread [Next in Thread]