From: Xavier C. <xav...@gm...> - 2013-07-11 15:06:55
|
Sorry, I forgot is that add took a list as an argument : you should rather write combine=add([leftchannel, rightchannel]). Also, stereo.pan takes two stereo inputs, so if you are not sure that your sources are stereo, you may want to force them with audio_to_stereo. 1. make sure your left and right sources are stereo using audio_to_stereo 2. push them to each end of the pan field with stereo.pan 3. stack them with add. I just tried on standard mp3 files and it works. X. On Thu, Jul 11, 2013 at 3:41 PM, Alexander Dal Farra < ale...@dm...> wrote: > I have tried this: > > > > --- > > set("log.file",false) > > set("log.stdout",true) > > set("log.level",3) > > channelid = "channelpair 1" > > channelname = "channelpair1" > > > > # A HTTP input > > left = mksafe(input.http("http://mother-one:8010/pop_hi")) > > right = mksafe(input.http("http://mother-one:8010/jazz_hi")) > > > > leftchannel = mean(left) > > rightchannel = mean(right) > > > > leftchannel=stereo.pan(pan=-1., leftchannel) > > rightchannel=stereo.pan(pan=1., rightchannel) > > > > combine=add(leftchannel, rightchannel) > > > > > output.icecast(%mp3(msg="",mono=false,bitrate=128),fallible=true,description=channelid,mount=channelname,host="live-server",port=8080,password="foo",combine) > > --- > > > > This is the error message I get: > > > > At Line 15, char 44: this value has type > > source(audio=1,…)= (infered at line 11, char 19-24) > > but it should be a subtype of > > source(audio=2+_....) > > > > I have tried to also only use the initial stereo sources (=avoiding > mean()), but this also didn't work. > > > > :-( > > > > any hints? > > > > Alex > > > > *Von:* Xavier Cazin [mailto:xav...@gm...] > *Gesendet:* Donnerstag, 11. Juli 2013 09:30 > *An:* sav...@li... > *Betreff:* Re: [Savonet-users] 2 different Sources on Left and Right > Channel Output? > > > > Then maybe : > > left=stereo.pan(pan=-1., left) > right=stereo.pan(pan=1., right) > > combine=add(left, right) > > Xavier. > > On Thu, Jul 11, 2013 at 12:18 AM, Alexander Dal Farra < > ale...@dm...> wrote: > > Hi Xavier > > Well - maybe - but where can I see how to 'add' a source only to the > LEFT or > > the RIGHT stereo channel of a output stream? > > > > Alex > > > > Alexander Dal Farra | CEO, Managing Partner > > Digital Media Distribution AG | Bernstrasse 99 | CH-3122 KEHRSATZ > > > > > > DMD2 - Customized Radio made in Switzerland > > > > > > 2013/7/10 Xavier Cazin <xav...@gm...> > >> > >> Doesn't the *add* operator do the trick? > >> > >> Cheers, > >> Xavier. > >> > >> On Wed, Jul 10, 2013 at 6:12 PM, Alexander Dal Farra > >> <ale...@dm...> wrote: > >> > OK, digging in the docs might clear the dust a bit up .. > >> > > >> > > >> > > >> > I figure that creating what I have described below might need to have > 2 > >> > sources like this: > >> > > >> > > >> > > >> > #reading 2 playlists into sources with stereo files > >> > > >> > left=playlist(reload=300000, "Y:\m3u\jazz.m3u") > >> > > >> > right=playlist(reload=300000, "Y:\m3u\pop.m3u") > >> > > >> > > >> > > >> > #creating mono sources out of these two input sources > >> > > >> > leftchannel=mean(left) > >> > > >> > rightchannel=mean(right) > >> > > >> > > >> > > >> > #this is the part I don't know how to continue, i was looking for a > >> > command > >> > how to combine two (mono) signals to one (stereo) signal both on one > >> > channel > >> > each. Didn't find any hint though. Isn't this possible? > >> > > >> > combine= _________________ ? > >> > > >> > > >> > > >> > > >> > > output.icecast(%mp3(msg="",stereo=true,bitrate=128),fallible=true,description=channelid,url=channelurl1,mount=channelname,host="live-server",port=8080,password="foo",combine) > >> > > >> > > >> > > >> > Alex > >> > > >> > > >> > > >> > > >> > > >> > Von: Alexander Dal Farra [mailto:ale...@dm...] > >> > Gesendet: Montag, 8. Juli 2013 16:13 > >> > An: sav...@li... > >> > Betreff: 2 different Sources on Left and Right Channel Output? > >> > > >> > > >> > > >> > Hi, > >> > > >> > > >> > > >> > I am trying to compile two sources of files to ONE output stream in > >> > stereo > >> > with one source on the LEFT channel and the other one on the RIGHT > >> > channel. > >> > I think this should be doable with LS, but I might need one or two > >> > hints. > >> > Anyone have a tipp? > >> > > >> > > >> > > >> > Thanks! > >> > > >> > > >> > > >> > Alex > >> > > >> > > >> > > >> > > >> > > >> > > ------------------------------------------------------------------------------ > >> > See everything from the browser to the database with AppDynamics > >> > Get end-to-end visibility with application monitoring from AppDynamics > >> > Isolate bottlenecks and diagnose root cause in seconds. > >> > Start your free trial of AppDynamics Pro today! > >> > > >> > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > >> > _______________________________________________ > >> > Savonet-users mailing list > >> > Sav...@li... > >> > https://lists.sourceforge.net/lists/listinfo/savonet-users > >> > > >> > >> > >> > >> -- > >> -- Xavier Cazin > >> > >> > >> > ------------------------------------------------------------------------------ > >> See everything from the browser to the database with AppDynamics > >> Get end-to-end visibility with application monitoring from AppDynamics > >> Isolate bottlenecks and diagnose root cause in seconds. > >> Start your free trial of AppDynamics Pro today! > >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Savonet-users mailing list > >> Sav...@li... > >> https://lists.sourceforge.net/lists/listinfo/savonet-users > > > > > > > > > ------------------------------------------------------------------------------ > > See everything from the browser to the database with AppDynamics > > Get end-to-end visibility with application monitoring from AppDynamics > > Isolate bottlenecks and diagnose root cause in seconds. > > Start your free trial of AppDynamics Pro today! > > > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > > _______________________________________________ > > Savonet-users mailing list > > Sav...@li... > > https://lists.sourceforge.net/lists/listinfo/savonet-users > > > > > > -- > -- Xavier Cazin > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Savonet-users mailing list > Sav...@li... > https://lists.sourceforge.net/lists/listinfo/savonet-users > > -- -- Xavier Cazin |