Hi,
I just adapted shine so that it can be used with Liquidsoap. You can get it
on the "shine" directory on the mercurial. Then, you can use it as follows:
output.file(%external(channels=2,samplerate=44100,header=true,process="/PATH/TO/shineenc
- -"), "test.mp3", source)
and it can be used in a similar way in output.icecast, etc. It would be
nice if someone with a raspberry could test if it produces decent results
(cpu and sound quality) on a raspberry pi!...
++
Sam.
On Mon, Jul 16, 2012 at 8:20 PM, Romain Beauxis <to...@rastageeks.org>wrote:
> Hi Anthony!
>
> 2012/7/16 Anthony Williams <anth...@ury.york.ac.uk>:
> > I tried this with liquidsoap-1.0.0 and 1.0.1 on a raspberry pi running
> > Debian Squeeze. Dependencies, where required, were installed through
> > debian repos.
> >
> > I tried streaming a 64k mono mp3 using sine() as the input source to an
> > icecast server. CPU was maxed at 95-100%, and the log was filled with
> > "We must catchup x seconds!" until it restarted at 60 seconds. So it
> > looks like that won't work, the CPU isn't powerful enough.
> >
> > To expand a little on Romain Bauxis' earlier post:
> >
> > Encoding with vorbis worked, but only with a quality of 0.1, in mono,
> > sample rate of 16khz, with CPU utilisation of 90%, after spending about
> > 15 seconds 'catching up' once the stream was started. So no good for
> > decent sound quality.
> >
> > Encoding using %wav used far less CPU time and the stream stayed up, but
> > I couldn't open it, with vlc giving an error of Header missing (It
> > played fine when the script was run from a desktop). Perhaps a
> > configuration error on my part? (I did have trouble make installing).
> >
> > Encoding with flac worked well, with 50% CPU utilisation in mono and 8
> > bits per sample, increased to 85% usage in stereo, 16 bits per sample.
> > 44khz, compression 5 for both those tests.
> >
> > These were not tested for any great length of time. (Less than 10
> minutes)
> >
> >
> > MP3 icecast streams play fine. I have had it set up playing a 192kbps
> > MP3 icecast stream out of a USB sound card for several hour stretches at
> > around 40% CPU utilisation (I was having difficulties with the internal
> > sound hardware, it kept suffering underrun after an hour or so, as did
> > mplayer).
> >
> > I help out at a student radio station, where we had the idea of using
> > Raspberry Pi's in campus bars to play our online stream, so the RPi +
> > liquidsoap is looking promising from this point!
> >
> > Hope this helps
>
> Thanks for this detailed review!
>
> As for encoding, I'd like to stress that the absence on a FPU
> (floating point processing unit) on the board is the real tipping
> point.
>
> The reasons is that all operations on floats have to be emulated by
> the CPU. Thus, we're talking about a whole different magnitude. It's
> very likely that mp3 encoding will not be possible at any rate until a
> fixed-point encoder is implemented...
>
> As for decoding, most decoders such as MAD are already fixed-point,
> which is why they work..
>
> Romain
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Savonet-users mailing list
> Savonet-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users