Skip to content

Conversation

@dotrgle
Copy link

@dotrgle dotrgle commented Dec 12, 2025

Optimizes media preview generation by implementing FFmpeg fast-seeking (-ss before input) to significantly reduce processing time for video segments and snapshots.

@lucaro lucaro self-requested a review December 12, 2025 10:21
.addArguments("-b:v", "2000k")
.addArguments("-filter:v", "scale=${this@CacheManager.config.cache.previewVideoMaxSize}:-1")
.addArguments("-tune", "zerolatency")
.addArguments("-preset", "slow")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This re-encoding is very deliberate to improve reliability when playing back the target sequences in the viewer. What was your reasoning to change this?

@lucaro
Copy link
Collaborator

lucaro commented Dec 12, 2025

Thank you very much for this pull request. I have one question regarding a change, otherwise I'd be happy to merge.

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.

2 participants