Open Moonbase59 opened 1 year ago
Should be fixed by #3233.
@smimram Not completely: Doesn’t throw an error with LS 2.2.0+git@661820a5a, but doesn’t respect x=
and y=
annotations:
v = image("Nite Radio Testbild.png")
a = sine(amplitude=lin_of_dB(-23.0), 1000.0)
logo = image("annotate:x=50,y=50,width=100,height=100:niteradio-cover.png")
v = mux_video(video=v, a)
v = add([v, logo])
output.audio_video(v)
Output (logo is in upper left corner instead at 50,50):
The image
operator now has arguments x
, y
etc. so that you can write
v = image("Nite Radio Testbild.png")
a = sine(amplitude=lin_of_dB(-23.0), 1000.0)
logo = image(x=50,y=50,width=100,height=100,"niteradio-cover.png")
v = mux_video(video=v, a)
v = add([v, logo])
output.audio_video(v)
(untested)
Yep, I know, but there are cases where it makes sense to build annotations in preprocessing, and it feels inconsistent that size works but position does not. :-)
Describe the bug The example "Adding videos" from the Liquidsoap Book p. 211 doesn’t work.
I try to add a logo to a video like shown in the book:
but Liquidsoap shows one of the dreaded type errors:
To Reproduce See above.
Expected behavior Examples working. Hee hee. ;-) I know documentation always lags behind but it’s real hard for a newbie trying to learn if examples don’t work.
Maybe just show how it should be done now, please? (I’m using
image
because it has aset
method, so I can exchange the image later, sovideo.add_image
in its current state won’t help here.)Version details
Install method
.deb
from release-assets