Hello all:

I recently purchased a Raspberry Pi 2 for a streaming project. I want to 
use Liquidsoap to stream one mp3 mountpoint to an Icecast2 server 
running on the Pi, using alsa input from an audio interface, while 
continuously archiving in FLAC to an external hard drive.
I am a verified liquidsoap noob. I put together a basic script which I 
think should work, and a friend did a more complex version with 
archiving capability, but when executed as a normal or super user, 
Liquidsoap immediately exits with no output to the console.

I have configured and tested the local icecast server (was able to 
successfully stream in ogg vorbis and mp3 using the Pi and darkice with 
an alsa pcm device referring to hw:1,0, as well as addressing hw:1,0 
directly.) I installed packages liquidsoap and liquidsoap-plugin-all 
from the default Raspbian repositories. The user executing Liquidsoap is 
also a member of the audio group, though I think this is irrelevant in 
this case, as it still dies if using sine as input rather than live 
audio capture.

I have purposefully screwed up bits of the configuration file just to 
watch it throw errors, which it does as expected, but with these two 
scripts, it immediately bombs out with no console output. The -v switch 
makes no difference.

I'm really not sure where to go from here, since I can't see what's 
broken\.

Suggestions are appreciated.

Here is my script for reference:

input=input.alsa(device="hw:1,0") out_dump_flac = output.file(
id="out_dump_flac", %flac( samplerate=44100, channels=2, compression=7,
bits_per_sample=16 ), reopen_on_metadata=false,
"/home/pi/archives/%Y-%m-%d/%Y-%m-%d-%H_%M_%S.flac", input ) out_ic_mp3 =
output.icecast( %mp3( bitrate=192, internal_quality=0 ), host =
"localhost", port = 9600, password = "JustAnotherUselessPassword", 
name="CRASH AND BURN!", description="Not particularly useful", 
genre="busted", url="www.404.com",
mount= "test", input, id="out_ic_mp3"
)


And here is another script, yielding the same result:

test = input.alsa(device="hw:1,0")
output.icecast(%mp3(stereo=true, bitrate=192, samplerate=44100),
  host="localhost",
  port=9600, password="GetYourOwnPassword", genre="dead",
  description="NO!", mount="/test",
  name="Nothing Useful At All", user="source",
  url="http://www.404.com";, test)

Again, suggestions welcome. I don't currently have another Linux box to 
test with, though I may try this with Arch Linux instead of Raspbian 
when I have more time.

------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to