liquidsoap icon indicating copy to clipboard operation
liquidsoap copied to clipboard

Scrolling text is jerky

Open gdhgdhgdh opened this issue 4 years ago • 4 comments

With 1.5.0+git@82acd8f0 and this script, the scrolling text from the all add_text sources is quite jumpy. I used native here to illustrate with the simplest possible text generation

A speed of 60 pixels per second at 30fps should be really smooth, and it mostly is, but every couple of seconds, there's a judder:

#!/usr/bin/liquidsoap

set("init.allow_root",true)
set("frame.video.width", 640)
set("frame.video.height",368)
set("frame.video.samplerate",30)
set("frame.audio.size", 1470)

v = blank()

v = video.add_text.native("qwertyuiopasdfghjklzxcvbnm1234567890",speed=60,x=300,y=250,v)

output.file(%theora(quality=1), "/host/anonymous.theora", v)

I've attached a ZIP of a raw Theora video showing that every second or two, the scrolling will judder very noticably.

This doesn't seem like a typical 25 / 30fps mismatch, because it's not a regular jump.

anonymous.zip

gdhgdhgdh avatar May 04 '20 22:05 gdhgdhgdh

Hi!

We have a game plan for the next major release to fix this and other issues you reported. We plan on implementing a layer content type, similar to what is done in OBS, to make these kind of video editing automation more efficient.

toots avatar Jul 23 '20 04:07 toots

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 20 '21 00:01 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 20 '21 23:07 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 13 '22 10:08 stale[bot]