On 2014-09-23 20:05, Jonathan wrote:
> Hi all. so, I have a question. I know it's possible to have liquidsoap 
> switch from playing a list of files, to having a live DJ come in. my 
> current setup is like this. I'm using Icecast to output from liquidsoap 
> on a mountpoint called "/autodj.mp3" Now what I do for right now is to 
> have a fallback in the icecast.xml file when the live mount point if 
> coming in, it will switch the listener to the live mount point. This is 
> being done by having a mountpoint that falls back on the 2 mount points 
> called "/stream.mp3" The authentications that I use for my DJs are 
> stored in the icecast.xml file. My 3 questions are,
> 1.
> How and what would be the easiest way to have transitions going into the 
> "/live.mp3" mountpoin and how can I do it with my current setup with 
> icecast keeping my icecast setup in tact with liquidsoap?

Joe Hartley over on the LAU list, once gave me an excellent script that
does this for you, liquidsoap streams 1 ogg and 1 mp3 stream to icecast
on port 8000 and expects your DJ to connect on port 8050. As soon as
he/she does so, liquidsoap starts streaming what you are sending on
8050, on the classic 8000 port (and also recording on the server). When
the DJ stops, the playlist resumes where it paused.

> 2.
> If I keep my icecast setup in tact will there be any conflict with my 
> fallback mountpoints?

I'm not sure how this script affects icecasts fallback points. I
configured it for quite some time now, and I don't have any fallback set
up directly in icecast, because i never needed them: the radio never
went down, and when the server is down, no fallback will help hehe...

> 3.
> I would like the live transition from the automation mount point to fade 
> out and either have a jingle play before the live mountpoint take into 
> affect, or just have it fade out and the live mount point start. If 
> anyone can shed some light on this, I would be grateful. Thanks all.

I think this is possible with the script but it isn't included in the on
i can provide you. Perhaps someone else will be able to tell you how to
achieve this :)



Here is what Joe gave me (between the dash lines) replace your radio.liq
file with this code, once you have edited it to work for you. (USE AT
OWN RISK and remember to back up your original config file in case
something goes wrong)
----------------------------------

#!/usr/local/bin/liquidsoap
# These allow sending commands to LS through telnet.
set("server.telnet",true)
set("server.telnet.port",6666)

# Set our log environment
set("log.file.path","/path/to/your.log")

# Build the input source
# /home/liquidsoap/playlist is a simple text file listing the audio
# files, or a folder that contain your music. files will play
# randomly.  In the case of Eargazm, they're all about 4 hours long.
radio = playlist("/home/liquidsoap/playlist")

# This defines the port and password for a live show connection.  We use
# Mixxx for most live shows, it runs on a separate machine that has the
# music library.  We have a DJ who doesn't use that new-fangled tech, he
# uses vinyl and CDs through a mixer, which feeds the Mac mentioned
# above,
# which then uses the program "butt" to encode the audio and stream it
# to
# the server running liquidsoap and icecast.  Butt is at
# http://butt.sourceforge.net/
# The port and password are whatever you want to use, they'll have to be
# defined in Mixxx or Butt or whatever you use to feed liquidsoap.
full_live = input.harbor("live", port=8050, password="NotTheRealPW")

# Finally, our input is defined to use full_live when active, radio if
# it's not:
input_src = fallback(track_sensitive=false, [full_live, radio])

# This section adds the flow information to input_src so that it
# registers
# itself and displays the show at http://flows.liquidsoap.fm/  The user
# and
# password come from signing up at that site before trying to register a
# connection.
input_src = register_flow(
  radio="Eargazm",
  website="http://eargazm.com/";,
  description="Rock n roll for adults",
  genre="Rock",
  user="eargazm",
  password="anotherphonypw",
  streams=[("mp3/192k","http://stream.eargazm.com:8000/hires.mp3";),
           ("vorbis/192k","http://stream.eargazm.com:8000/hires.ogg";)],
  input_src)

# There are 3 outputs - two streams and a file.
# Output the full stream in OGG and MP3
output.icecast(%mp3(bitrate=192),
   host="localhost",port=8000,password="NotTheRealPW",
   mount="hires.mp3",
   description = "Eargazm in your ear",
   url = "http://www.eargazm.com";,
   mksafe(input_src))
output.icecast(%vorbis.cbr(samplerate=44100, channels=2, bitrate=192),
   host="localhost",port=8000,password="NotTheRealPW",
   mount="hires.ogg",
   description = "Eargazm in your ear",
   url = "http://www.eargazm.com";,
   mksafe(input_src))
# Output a file of a live show, building a timestamp into the filename
output.file(%vorbis, append = false, fallible=true,
            "/path/to/your_newshows/%Y-%m-%d:%H.%M.%S.ogg",
            full_live)


----------------------------------

REMEMBER to edit the paths and the information TO SUIT YOUR CONFIG.

Hope it helps! In case the mailclient breaks the text, let me know and i
will attach the file for you in an off-list mail :)

*Set



------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to