Skip to content

implement layer level AUTO_LENGTH override to support AUTO play for all producers #1650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

TomKaltz
Copy link
Member

@TomKaltz TomKaltz commented Jun 26, 2025

This PR adds layer level AUTO_LENGTH to PLAY, LOADBG and LOAD to override auto play behavior at the layer level. This allows auto play functionality with infinite length producers (decklink, bluefish, looping content, etc.). Previously, infinite length producers couldn't use timed auto play since their nb_frames() returns infinity. With this change, users can now specify AUTO_LENGTH with any producer to override nb_franes. The implementation tracks separate auto_length overrides for foreground and background producers at the layer level.

This PR also adds a layer level CALL FRAMES_LEFT that allows you to query, set and clear the AUTO_LENGTH overide to augment auto play functionality at runtime. CALL 1-0 FRAMES_LEFT 200 will change the AUTO_LENGTH override so that the auto transition will occur 200 frames from when the command was executed, effectively starting a countdown clock of the specified frames. It will also set AUTO play to true if there is a background producer loaded. CALL 1-0 FRAMES LEFT CLEAR will remove any AUTO_LENGTH override and also disable auto play.

notable autoplay behavior

  • If a producer's actual length is shorter than the supplied AUTO_LENGTH (ffmpeg producer with short file or IN, OUT creating a shorter than AUTO_LENGTH clip), then the last frame is repeated until LENGTH frame count is achieved.
  • You can use IN, OUT(or LENGTH), LOOP and AUTO_LENGTH together with ffmpeg producer to create a custom looping clip that will loop until AUTO_LENGTH frame count is achieved.

closes #1644

@TomKaltz TomKaltz force-pushed the tk-length-override branch from 686f853 to 4d218f4 Compare June 26, 2025 04:04
TomKaltz added 2 commits June 28, 2025 09:51
-add layer level call with FRAMES_LEFT overrides
@TomKaltz TomKaltz changed the title implement layer level LENGTH override to support AUTO play for all producers implement layer level AUTO_LENGTH override to support AUTO play for all producers Jun 29, 2025
@TomKaltz TomKaltz marked this pull request as ready for review June 29, 2025 03:49
@TomKaltz TomKaltz requested a review from Julusian June 29, 2025 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RFC: auto play for infinite length producers
1 participant