PDA

View Full Version : Linux RealAudio streaming



Colin Burn-Murdoch
2004-01-16, 15:25
> > run the server with --d_source as a command-line option. This will give you the
> > results of the server attempting to play this URL. It will confirm whether or
> > nto is has found vsound, for example. You might want to try using $vsound$ in
> > the convert.conf as well, so that the server can look using its normal search
> > routines.
>
> Yabbut he's trying to transcode a net stream. The server doesn't do
> that yet.

Does that make a difference? Surely the server just sees MP3 data coming in on STDIN? same as if you're converting from an ogg file etc?

kdf
2004-01-16, 15:33
Quoting Colin Burn-Murdoch <colin (AT) aranion (DOT) com>:

> > > run the server with --d_source as a command-line option. This will give
> you the
> > > results of the server attempting to play this URL. It will confirm
> whether or
> > > nto is has found vsound, for example. You might want to try using
> $vsound$ in
> > > the convert.conf as well, so that the server can look using its normal
> search
> > > routines.
> >
> > Yabbut he's trying to transcode a net stream. The server doesn't do
> > that yet.
>
> Does that make a difference? Surely the server just sees MP3 data coming in
> on STDIN? same as if you're converting from an ogg file etc?

it does in just the way that you saw. The server relies on $duration and $size
data to handle various other tasks. A remote stream does not provide this, so
it wont really work. Its in development.

-kdf

Roy M. Silvernail
2004-01-16, 15:53
On Fri, 2004-01-16 at 17:25, Colin Burn-Murdoch wrote:

> > Yabbut he's trying to transcode a net stream. The server doesn't do
> > that yet.
>
> Does that make a difference? Surely the server just sees MP3 data coming
> in on STDIN? same as if you're converting from an ogg file etc?

Not exactly. For disk files in native formats, Slimserver opens them
and serves the contents to the Squeezebox or SliMP3. For transcoded
formats (anything with a non-null recipe in convert.conf), the
appropriate substitutions are made for filenames and such, and the
command is spawned off with a filehandle hooked to its STDOUT. The first
program in the transcoder chain opens and reads the file. Slimserver
just reads from the transcoder handle and streams the content to the
player.

For network streams (anything you pick up from a .pls file), the server
establishes a network connection and reads what HTTP headers may be
present at the beginning of the stream. Then it assumes the stream is
MP3 and sends it along to the player. Yes, this is arguably broken...
I'd rather call it "incomplete".

That's why we have been saying that stream transcoding ain't there yet,
and why I've been working on a modified FileHandle module.
Unfortunately, transcoding a stream is tricky because we need to create
an outside process and both write to and read from it. It's not as
simple as handing the stream filehandle to the child process, either.
You have to pump the data out of the server process.
--
Roy M. Silvernail is roy (AT) rant-central (DOT) com, and you're not
Never Forget: It's Only 1's and 0's!
SpamAssassin->procmail->/dev/null->bliss
http://www.rant-central.com

Roy M. Silvernail
2004-01-16, 16:12
On Fri, 2004-01-16 at 17:25, Colin Burn-Murdoch wrote:
> > > run the server with --d_source as a command-line option. This will give you the
> > > results of the server attempting to play this URL. It will confirm whether or
> > > nto is has found vsound, for example. You might want to try using $vsound$ in
> > > the convert.conf as well, so that the server can look using its normal search
> > > routines.
> >
> > Yabbut he's trying to transcode a net stream. The server doesn't do
> > that yet.
>
> Does that make a difference? Surely the server just sees MP3 data coming in
> on STDIN? same as if you're converting from an ogg file etc?

Please excuse my ID10T syndrome. I just realized what it is you're
doing with convert.conf and you're correct about what /should/ happen.
(been working on streaming too much this past week) Looks like the
problem is no native understanding of rtsp:. The server wants to treat
it as a local filename.
--
Roy M. Silvernail is roy (AT) rant-central (DOT) com, and you're not
Never Forget: It's Only 1's and 0's!
SpamAssassin->procmail->/dev/null->bliss
http://www.rant-central.com