Support non-strict duration

This commit is contained in:
Austin Mroz
2026-01-30 10:46:11 -08:00
parent 37c2a960cb
commit fa8241f85e
3 changed files with 78 additions and 45 deletions

View File

@@ -35,7 +35,12 @@ class VideoInput(ABC):
pass
@abstractmethod
def as_trimmed(self, start_time: float|None=None, duration: float|None=None) -> VideoInput|None:
def as_trimmed(
self,
start_time: float | None = None,
duration: float | None = None,
strict_duration: bool = False,
) -> VideoInput | None:
"""
Create a new VideoInput which is trimmed to have the corresponding start_time and duration