Closed MCOfficer closed 6 years ago
You need to use quotes:
video = playlist.safe(prefix="annotate:duration=\"3\":", "images.txt")
pretty sure i tried that... i'm on mobile atm, but i'll check tomorrow, thank you.
still no dice, even after copying your version literally. this is my script:
def fix_title(m) =
title = m["filename"]
title = string.sub(title, start=19, length=string.length(title) - 23)
[("title","#{title}")]
end
set("log.file.path", "./liquidsoap.log")
set("log.stdout", true)
set("log.level", 4)
set("gstreamer.max_buffers", 20)
set("server.telnet", false)
set("frame.video.width", 1280)
set("frame.video.height", 720)
#audio = playlist.safe("proghouse/library/")
audio = mksafe(single("test.mp3")) # didn't want to spam the log with >100 files
video = playlist.safe(prefix="annotate:duration=\"3\":", "images.txt")
source = mux_video(video=video, audio)
#source = video.volume(audio)
source = map_metadata(fix_title, source)
source = video.add_text(metadata="title", "<no title>", size=60, speed=0, x=20, y=-10, font="densia.otf", source)
output.youtube.live(key="foo", fallible=true, source)
here's the log (pastebin.com, hasteb.in):
edit: same thing happens with 'annotate:duration="3":'
edit 2: i resorted to change the images on every new track, using on_track
.
today i was messing with LS again, and it turns out that using playlist
(with escaped quotes) works as expected. only playlist.safe
is running into this error.
I'm trying to create a video with a slideshow (sort of). i'm tried to imitate the slideshow script from here.
i stripped away some fancypants stuff for better readability - if noone can reproduce this, i 'll put it here, too.
whenever i try to use
prefix=
, the output is spammed withi checked my syntax at least a dozen times. when i remove ´prefix`, everything is back to normal. i'm running the almost latest master (b44f282c4d8bc2e5cb6a514b226aa352e4db9bb4). I also found this E-Mail string, but apparently that was left unresolved.
Edit: thinking about it, there's probably a reason why you didn't use mux_video in the script- and then that (to me) cryptic comment at the end of the script also makes sense. damn. If that is the case, let me rephrase the question: how could i change images every now and then while still using a gstreamer output?