Hi Dave,

2012/11/14 Dave Pascoe <[email protected]>:
> I tried a bunch of things and failed to be able to use input.alsa() for
> this.  Just to close the loop on the thread, I did have success with
> input.external and ended up with the config below.  Note that this script is
> a little different but has the functionality I wanted to end up with.  The
> real issue ended up being the liquidsoap Linux user's inability to access
> the virtual ALSA sound device, but only with certain tools and not others.
> And yes, as noted earlier, the liquidsoap user is already a (confirmed)
> member of the audio group.  Kind of a hack having to use sudo, but sudo use
> is pretty limited.
>
> Thanks again for all this functionality in LS - many ways to do things!
>
> Thanks,
> Dave
>
> #!/usr/local/bin/liquidsoap -v
> set("log.file.path", "/tmp/liquidsoap/log")
>
> left = input.external("sudo /usr/local/bin/sox -q -t alsa pcm.channel3 -c 1
> -r 44100 -t raw -",channels=1)
> right = input.external("sudo /usr/local/bin/sox -q -t alsa pcm.channel4 -c 1
> -r 44100 -t raw -",channels=1)
>
> s = mux_mono(mono=left,right)
>
> output.icecast(%mp3(samplerate=44100, bitrate=24,
> stereo=true),host="xxx.xxxx.com",port=xxxx,password="xxxxx",mount="teststream",
> icy_metadata="true", url="http://xxx.xxxx.com";, name="Test",
> description="Test", fallible=true, public=false,s)

So the following would not work:

#!/usr/local/bin/liquidsoap -v
set("log.file.path", "/tmp/liquidsoap/log")

left = (input.alsa(device="pcm.channel3"):source(1,0,0))
right =  (input.alsa(device="pcm.channel4"):source(1,0,0))

s = mux_mono(mono=left,right)

output.icecast(%mp3(samplerate=44100, bitrate=24,
stereo=true),host="xxx.xxxx.com",port=xxxx,password="xxxxx",mount="teststream",
icy_metadata="true", url="http://xxx.xxxx.com";, name="Test",
description="Test", fallible=true, public=false,s)

?

Romain

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to