[Savonet-users] [savonet/liquidsoap] Trying to get harbor username and timestamp for dump filename (#661)

2018-11-17 Thread PB-SF
I set up a liquidsoap script for our radio station. Most things work really 
fine.
We use a input.harbor with authentication for our moderators

#Moderatoren Authentifizierung
def harbor_auth(port,user,password) = 
  (port == 8080 and user == "user1" and password == "pass1") or
  (port == 8080 and user == "user2" and password == "pass2")
end
auth1 = harbor_auth(8080)

#Live Moderatoren Harbor
moderator = input.harbor(id="Mod 
Harbor",port=8080,auth=auth1,icy=true,dumpfile="/path/to/recorded/dumps/$(user)_$(timestamp)-%m-%d-%Y-%H:%M:%S.mp3","modi")
output.dummy(id="Mod Dummy",fallible=true, moderator)

Each connection of a moderator schould create a dump file for our archive.
Is there a way to get the current username from the authentication in a 
variable to use it in the dump function of the input.harbor? Also tagged with a 
timestamp? So that the files are stored according to moderator and time?

My current script write the file in exactly that string i used in code above.
I tryed several ways to get the right syntax, but nothing worked.
For help, I would be grateful :)

Liquidsoap verison 1.3.3 on a ubuntu 14.04 dedicated server.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/661___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


[Savonet-users] [savonet/liquidsoap] Please learn me why add ssl sertificates to harbor.output.ssl (#660)

2018-11-17 Thread MisTERR0000
My site works on https Protocol. But the stream plays on https. explain how to 
create a link to play a stream over https.

My config:
`output.harbor.ssl(
%mp3(bitrate=128),
port = 8000, encoding = "UTF-8",
mount = "live",
radio)`

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/660___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] source mixing

2018-11-17 Thread Romain Beauxis
Hey there!

Le sam. 17 nov. 2018 à 09:35, Bernhard Schmidt  a écrit :
> I'm trying to use liquidsoap for merging multiple input files into a
> single stream, which then goes out to icecast. This raises a couple of
> questions: (hope you don't mind I list them here all at once)

Of course not!

> 1) So far mixing/merging seems to work with add(), although I'm not sure
> if this is the right way. (e.g. what is the difference to mix()?) Are
> there any limitations?

add() is the basic operator for sources. mix is more evolved, with telnet
interface and etc. Unless you plan on using that you should stick with add.

> 2) Apparently the more sources I add, the lower the volume gets.
> normalize() didn't seem to make a difference, so I added an amplify()
> with the volume equals the number of input-sources. Is this the right
> way to go?
>
> 
> pl0 = single("file1.wav")
> pl1 = single("file2.wav")
> pl1 = single("file3.wav")
>
> mixed = amplify(3.,add([pl0,pl1,pl2]))
> 

By default, if you have 3 sources, the volume of each source is divided by
3, and etc. This is to avoid clipping when adding sources. However, if 2 of
the added source, for instance, are silent, this will just end up dividing
the volume of the last one by 3.

I don't think that there's an easy default here that can work for
everybody. You can disable the normalization or use custom weights. I
believe the amplify above is equivalent to just doing:

mixed = add(normalize=false,[pl0,pl1,pl2])

> 3) When I want the sources to have different volumes, is it
> better/faster to use the weights in add(), or run each through an
> amplify() function?

I think it makes more sense to use custom weights just because that
processing is already going to happen there. Adding separate amplify()
shouldn't be very CPU intensive, though.

> 4) Is it possible to add an reverb effect?

We support LADSPA plugins. You should be able to find a ladspa reverb
plugin and use it with liquidsoap.

> 5) What is the best format for the sources to work with? Lossless I
> guess, WAV? FLAC?
> I'm intending to start multiple liquidsoap instances, so performance is
> important..

Internally, liquidsoap decodes everything and manipulates raw PCM audio.
Decoding isn't very CPU intensive but if you really want to minimize that
part you can use WAV input files.

Hope this helps, all the best with your project!
Romain
___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


[Savonet-users] source mixing

2018-11-17 Thread Bernhard Schmidt

Hi,

I'm trying to use liquidsoap for merging multiple input files into a 
single stream, which then goes out to icecast. This raises a couple of 
questions: (hope you don't mind I list them here all at once)


1) So far mixing/merging seems to work with add(), although I'm not sure 
if this is the right way. (e.g. what is the difference to mix()?) Are 
there any limitations?


2) Apparently the more sources I add, the lower the volume gets. 
normalize() didn't seem to make a difference, so I added an amplify() 
with the volume equals the number of input-sources. Is this the right 
way to go?



pl0 = single("file1.wav")
pl1 = single("file2.wav")
pl1 = single("file3.wav")

mixed = amplify(3.,add([pl0,pl1,pl2]))


3) When I want the sources to have different volumes, is it 
better/faster to use the weights in add(), or run each through an 
amplify() function?


4) Is it possible to add an reverb effect?

5) What is the best format for the sources to work with? Lossless I 
guess, WAV? FLAC?
I'm intending to start multiple liquidsoap instances, so performance is 
important..



Thanks in advance :)



___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users


Re: [Savonet-users] [savonet/liquidsoap] [Suggestion] RTMP Input / Server (#634)

2018-11-17 Thread Romain Beauxis
@smimram is right but it would also be nice to have native capacities in that 
department. Do y'all know if a good open source library?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/634#issuecomment-439624240___
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users