OT: Line-In streaming...

Linux and UNIX specific discussions
Post Reply
User avatar
mgillespie
Posts: 1222
Joined: Fri Jul 08, 2005 1:19 pm
AV Hardware: TwonkyMedia AV UPnP Mediaserver (Marvell Kirkwood ARM Sheevaplug with Debian Squeeze).
2x Noxon V2 audio client
1x PS3 Slim 500GB Audio/Video UPnP client.
1x Sony VGF-CP1 Wireless Photoframe.
Location: UK

OT: Line-In streaming...

Post by mgillespie » Sat Apr 26, 2008 3:37 pm

I have a small Mini-ITX based Linux (Gentoo) server that I use to host Twonkyvision to my Noxons and PS3.

I have bandwidth caps, but love listening to internet radio. Many of the stations I listen to are already being transmitted for free, on my Sky satellite (which is very close to my server).

I have been fiddling with running the line out from the sat box, to the line-in on the ITX PC, and then broadcasting it, so it can be picked up as any other net radio station (but a local one, that does not sap my bandwidth allowance).

I got it working (ish) with Icecast and ices2.1, using OGG format (which Noxon streams OK, but the PS3 does not). The problem I have, is the overhead of permenantly encoding and streaming it pegs my CPU at near 100% for the OGG encode.

Anyone know of a less CPU intensive solution? I am thinking streaming PCM, if I can. The other solution, is to somehow get the encoding process to start/stop when clients connect and disconnect (this is a LAN only icecast, as the only time it will be in use, is if someone around the home uses it).

Seems a really bad idea to permenantly encode and stream, when nobody is connected!!
Please note: Moderators here are voluntary and do not work for PacketVideo or Twonky, please do not attack us. Any posts are personal opinion, and may not be those of PV/Twonky.

User avatar
Agent86
Posts: 5
Joined: Tue Jun 06, 2006 11:01 am

Re: OT: Line-In streaming...

Post by Agent86 » Tue Jun 10, 2008 7:29 am

mgillespie wrote:I got it working (ish) with Icecast and ices2.1, using OGG format (which Noxon streams OK, but the PS3 does not). The problem I have, is the overhead of permenantly encoding and streaming it pegs my CPU at near 100% for the OGG encode.

Anyone know of a less CPU intensive solution? I am thinking streaming PCM, if I can. The other solution, is to somehow get the encoding process to start/stop when clients connect and disconnect (this is a LAN only icecast, as the only time it will be in use, is if someone around the home uses it).

Seems a really bad idea to permenantly encode and stream, when nobody is connected!!
Hey mgillespie,

I do a similar thing with my Sirius satellite radio. I also leave mine encoding the stream 24/7, even when the satellite radio itself or any clients aren't connected.

I think your performance problem stems from the OGG format. I'm using icecast2, darkice and LAME to stream in the MP3 format. On my machine - Athlon XP 1800 - it runs at around 5% CPU. Just remember to install NASM and compile LAME with the assembler optimizations. Even without the assembler optimizations I think it took somewhere between 15 and 30% of the CPU, so you would still be better off.

Also, since I am streaming in MP3, I can get to it from anything. I have yet to find anything that can stream audio that can't play this stream. PC, Xbox 360, TiVo - you name it. Its great!

User avatar
mgillespie
Posts: 1222
Joined: Fri Jul 08, 2005 1:19 pm
AV Hardware: TwonkyMedia AV UPnP Mediaserver (Marvell Kirkwood ARM Sheevaplug with Debian Squeeze).
2x Noxon V2 audio client
1x PS3 Slim 500GB Audio/Video UPnP client.
1x Sony VGF-CP1 Wireless Photoframe.
Location: UK

Re: OT: Line-In streaming...

Post by mgillespie » Sat Jul 26, 2008 12:29 pm

Anyone got any better ideas, I have been playing with other configurations, but I always end up with the same problems, encoding 24x7 is not the right thing to be doing. I would be FAR better off streaming the line-in as raw PCM/WAV to my clients. However I can't find anything that does this.
Please note: Moderators here are voluntary and do not work for PacketVideo or Twonky, please do not attack us. Any posts are personal opinion, and may not be those of PV/Twonky.

Post Reply