No, I had tried that earlier...ends up with this fatal error:
2012/11/14 20:20:55 [threads:1] Thread "input.alsa_5109" aborts with
exception Alsa error: Device or resource busy!
Thread 4 killed on uncaught exception Alsa.Device_busy
2012/11/14 20:20:55 [threads:1] Thread "input.alsa_5114" aborts with
exception Alsa error: Device or resource busy!
Thread 5 killed on uncaught exception Alsa.Device_busy
-Dave
On Wed, Nov 14, 2012 at 3:13 PM, Romain Beauxis <[email protected]>wrote:
> 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
>
------------------------------------------------------------------------------
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