Skip to content

Instantly share code, notes, and snippets.

@kyv
Created September 28, 2014 00:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyv/4a38b77df1f3d92a04a7 to your computer and use it in GitHub Desktop.
Save kyv/4a38b77df1f3d92a04a7 to your computer and use it in GitHub Desktop.
liquidSoapPlaylistToIcecast
#!/usr/bin/liquidsoap
set("log.file.path","./video.log")
set("frame.video.width", 320)
set("frame.video.height",240)
set("frame.video.samplerate",12)
# Videos
list = playlist("~/Downloads/Firefly/list.m3u")
source = video.fade.in(transition="fade",duration=3.,list)
# Let's see the video
output.graphics(fallible=true,drop_audio(source))
source = mksafe(source)
output.icecast(%gstreamer(
channels=2,
audio="vorbisenc",
muxer="webmmux streamable=\"true\"",
video="vp8enc",
log=5),
genre="en-vivo",
url="http://ki-ai.org",
format="video/webm",
icy_metadata="true",
host="localhost",
port=8000,
password="hackme",
mount="/tv.webm",
source)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment