Commit 4e180ee6 authored by totalreset's avatar totalreset
Browse files

updated stuff to version v1.5

parent 6f5b4c7d
# Changelog
## v0.4.1
## v1.3
- 14th Dicember 2020. Added ffmpeg script that takes audio from video streamed sended via RTMP and send it into liquidsoap. Live programs are working in audio only aswell.
## v1.2
- 27th November 2020. Video Live player added, live shows soon. Font color changes at refresh. "The Archive" added. New domains now! phreakuency.tk
## v0.3.2
## v1.1
- 10th October 2020. Graphics from Alix added, video streaming support and css modified
## v0.1.0
## v1.0
- 13th September. 24/7 Auto dj script with smart fading. Jingles are added and difference between day and night playlists.
## v0.0.7
## v0.7
- 16th May. Website created and support to multiple inputs/outputs with icecast.
## v0.0.1
## v0.1
- Somewhen in spring 2020. beginning of corona. First website and streaming server set up with icecast2. Realese party happened streaming Mark's bedroom party.
#!/usr/bin/liquidsoap
# Lines starting with # are comments, they are ignored.
# Put the log file in some directory where
# you have permission to write.
set("log.file.path","/tmp/<script>.log")
......@@ -7,21 +9,28 @@ set("log.file.path","/tmp/<script>.log")
# can also be done by passing the -v option to liquidsoap.
set("log.stdout", true)
# Set harbor stuff.
set("harbor.user","xxxxxxx")
set("harbor.bind","0.0.0.0")
set("harbor.password","xxxxxxxxxx")
# A bunch of files and playlists,
# supposedly all located in the same base dir.
security = single("~/phreakuencyradiodata/error/error23.ogg")
security = single("~/xxxxxxxx/error/error23.ogg")
day = playlist("~/phreakuencyradiodata/tracks/day.pls")
night = playlist("~/phreakuencyradiodata/sets/night.pls")
jingles = playlist("~/phreakuencyradiodata/jingles/jingles.m3u")
day = playlist("~/xxxxxxxxxx/tracks/day.pls")
night = playlist("~/xxxxxxxxx/sets/night.pls")
jingles = playlist("~/xxxxxxxxxxx/jingles/jingles.m3u")
# Play user requests if there are any,
# otherwise one of our playlists,
# and the default file if anything goes wrong.
radio = fallback([ request.queue(id="request"),
switch([({ 6h-22h }, day),
({ 22h-6h }, night)]),
switch([({ 6h-23h }, day),
({ 23h-6h }, night)]),
security])
# Add the normal jingles
radio = random(weights=[1,3],[ jingles, radio ])
......@@ -29,13 +38,14 @@ radio = random(weights=[1,3],[ jingles, radio ])
# Add the ability to relay live shows
full =
fallback(track_sensitive=false,
[input.http("http://putyoururl.com/mount.ogg"),
[input.harbor(id="xxxxxxxx", password="xxxxxxxxx", user="xxxxxxxx", buffer=30.0, max=60.0, port=xxxxxx, "xxxxxxxxx"),
radio])
# Output the full stream in OGG and MP3
output.icecast(%mp3,
host="totalreset.tk",port=8099,password="xxxxxxxxxxx",name="Phreakuency Radio", description="Underground Internet Music Radio.",
host="xxxxxxxxxxx",port=xxxx,password="xxxxxxxxxxx",name="Phreakuency Radio", description="Underground Internet Music Radio.",
mount="phreakuency.mp3",full)
output.icecast(%vorbis,
host="totalreset.tk",port=8099,password="xxxxxxxxxxx",name="Phreakuency Radio", description="Underground Internet Music Radio.",
host="xxxxxxxxxx",port=xxxxx,password="xxxxxxxxxx",name="Phreakuency Radio", description="Underground Internet Music Radio.",
mount="phreakuency.ogg",full)
#!/usr/bin/env bash
set -eux
rtmp_url='rtmp://totalreset.tk/phreak/live'
liquidsoap_input='icecast://source:fuckthepasswords@icecast.totalreset.tk:8023/phreaklive'
while [ true ]
do
ffmpeg -i $rtmp_url -vn -acodec libvorbis -content_type application/ogg -f ogg $liquidsoap_input
#ffmpeg -i $rtmp_url $liquidsoap_input \
# -vn \
# -c:a vorbis \
# -f ogg $liquidsoap_input
sleep 5
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment