Setting SEEK and LENGTH on movie and audio#121
Draft
mellbergsimon wants to merge 7 commits intosvt:mainfrom
Draft
Setting SEEK and LENGTH on movie and audio#121mellbergsimon wants to merge 7 commits intosvt:mainfrom
mellbergsimon wants to merge 7 commits intosvt:mainfrom
Conversation
added 6 commits
March 20, 2026 23:24
Signed-off-by: Simon Mellberg <mellbergsimon@example.com>
Signed-off-by: Simon Mellberg <mellbergsimon@example.com>
Signed-off-by: Simon Mellberg <mellbergsimon@example.com>
…et.cjs Signed-off-by: Simon Mellberg <mellbergsimon@example.com>
Signed-off-by: Simon Mellberg <mellbergsimon@example.com>
Signed-off-by: Simon Mellberg <mellbergsimon@example.com>
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Seek and Length
Description
This PR attempts to add functionality for setting the seek and length options for caspar. This enables the user to quickly select where to start and end the video or audio.
Changes
I needed to add 2 more variables to the item.data field. Specifically:
data: { name: item.name, caspar: { server: item?._filter?.serverId, target: item.name, ...(DEFAULT_VALUES[item.type] || {}) }, duration: asset.calculateDurationMs(item), + medialength: Number.parseInt(item?.duration), + framerate: asset.frameRateFractionToDecimal(item?.framerate) }Not the most beautiful implementation and I appreciate tips how to improve this.
The Seek field itself is expected by Caspar to be in frames:

This is not the most intuitive solution and I know we discussed there being some sort of drop down selector for these in the future.
General usage:
3 points of selection. Left (seek), right (length) and the entire bar. Small rounding error can occur when dragging bar from start to end.
general.usage.mov
I tried to limit the amount of userefs and divide the component into smaller manageable chunks. But I am still a little bit unsure about the SUIT naming convention. I really tried my best with the naming scheme in this, but I am sure I have made mistakes.
Fixes #68
New issue?
I tried to implement that if the duration is changed, the length setting should follow but after changing the duration field it seems to lock until the item in the rundown is pressed once again.
duration.locks.after.editing.mov
My though process was that we could clamp the duration so that it would not be possible to write a larger value than what the media actually has. But the duration field could also used in making counters with a defined time so I am not sure what the best solution going forward would be.
White theme
The colors i selected does not look good on white theme. I would like some assistance selecting a good color palate that works on all themes.
Type of change
How Has This Been Tested?
I have tested it against my own Linux caspar server filled with different testing media.
Test Configuration:
Checklist: