PDA

View Full Version : playing a pipe...



Maditude
2005-06-22, 18:42
I thought this might work, but so far, no luck...

cd /music/LocalRadio/
mkfifo stream.wav
# handy util from 'sox'...
rec -c 2 -r 22050 /music/LocalRadio/stream.wav

I've verified that this part is working (if I cat that pipe to a real file, I can then play the real file). My plan was to get this working, and then kludge up a plugin that would let me change the radio-station...

Next, I thought I'd be able to browse to that folder, but all that comes up on the screen is the text "Empty", when I get to that directory. A rescan didn't help.

Using slimserver 6.0.2 on freebsd 4.11-stable

Anyone know if this is possible? Haven't tried icecast or the like yet, my poor little 'bsd box is already a little pressed for memory.

jth
2005-06-23, 07:15
I thought this was supported. You might want to turn on the --d_filehandle and/or --d_source debugging flags and see if any of the debugging output looks unusual.

Maditude
2005-06-23, 23:42
jth wrote:
> I thought this was supported. You might want to turn on the
> --d_filehandle and/or --d_source debugging flags and see if
> any of the debugging output looks unusual.

Nothing obvious going on in there. Attempting to figure out icecast and darkice (this is getting to be a helluva lot more than I bargained for, and this is still what I would consider to be the "simple" part of my little project).

stinkingpig
2005-06-24, 07:37
Maditude wrote:
> jth wrote:
>
>>I thought this was supported. You might want to turn on the
>>--d_filehandle and/or --d_source debugging flags and see if
>>any of the debugging output looks unusual.
>
>
> Nothing obvious going on in there. Attempting to figure out icecast
> and darkice (this is getting to be a helluva lot more than I bargained
> for, and this is still what I would consider to be the "simple" part of
> my little project).
>
>

http://www.monkeynoodle.org/comp/hardware/slim_radio

I haven't even had time to look at that "set the channel" plugin since
writing this page, but at least it'll get you playing one station.


--
Jack at Monkeynoodle dot Org: It's a Scientific Venture...
Riding the Emergency Third Rail Power Trip since 1996!

Maditude
2005-06-24, 08:50
Maditude wrote:[color=blue]
http://www.monkeynoodle.org/comp/hardware/slim_radio

Yeah, that's where I got the idea of using icecast from (and darkice, after seeing that you'd complained that ices was always insisting on encoding ogg streams, which the slimserver would just have to convert back to mp3 right away).

Neither darkice (v0.15) nor icecast (v1.3.12) has an xml config (I just used the 'bsd ports collections), and I seem to be having a problem with darkice being unable to connect to icecast, they're both the same password. Not sure what's going on at this point, but it will have to wait 'til the weekend when I've got more time to mess with it.

As for the channel-changing plugin, I saw a "RunScript.pm" on the forums (from "Laz") which looks like it might be a good starting point.

mikeb
2005-06-24, 09:35
On Fri, Jun 24, 2005 at 08:50:20AM -0700, Maditude wrote:
:
: stinkingpig Wrote:
: > Maditude wrote:[color=blue]
: > http://www.monkeynoodle.org/comp/hardware/slim_radio
: >
: Yeah, that's where I got the idea of using icecast from (and darkice,
: after seeing that you'd complained that ices was always insisting on
: encoding ogg streams, which the slimserver would just have to convert
: back to mp3 right away).

fwiw, the 0.x versions of ices do mp3 encoding, the 2.x ones do ogg.
I have a binary package built of ices 0.4 for FreeBSD if you're
interested (although you really shouldn't accept binary pkgs from
stangers). It does appear to be in the ports tree now, but I'm not
sure if it's still broken or not.

I do have ices 0.4 streaming to my icecast server in mp3 on FreeBSD
without an issue (well, it was a big pain to get working..). Let me
know if I can help.

--mikeb



: Neither darkice (v0.15) nor icecast (v1.3.12) has an xml config (I just
: used the 'bsd ports collections), and I seem to be having a problem with
: darkice being unable to connect to icecast, they're both the same
: password. Not sure what's going on at this point, but it will have to
: wait 'til the weekend when I've got more time to mess with it.
:
: As for the channel-changing plugin, I saw a "RunScript.pm" on the
: forums (from "Laz") which looks like it might be a good starting point.
:
:
: --
: Maditude
: