12345678910111213141516171819202122232425 |
- #!/usr/bin/env liquidsoap
- # A simple script that will both record to file and expose an http server.
- # The http server uses (aggressive) silence detection
- set('log.file', false)
- set('log.stdout', true)
- audioin = in()
- audioin = rewrite_metadata([("artist", "Direttoforo")], audioin)
- audioin = server.rms(id="rms", audioin)
- f = output.file(
- id="rec",
- %vorbis(quality=0.2, samplerate=44100, channels=2),
- "rec/%Y/%m/rec-%Y-%m-%d_%H-%M-%S.ogg",
- audioin
- )
- http = output.harbor(
- id="http",
- mount="/stream.ogg",
- %vorbis(quality=0.2, samplerate=44100, channels=2),
- #strip_blank(id="strip", max_blank=3., min_noise=0.2, track_sensitive=false, audioin)
- audioin
- )
|