[Partner Nodes] fix: respect VideoSlice trim when resizing videos (#14213)

This commit is contained in:
Alexander Piskun
2026-06-01 19:09:57 +03:00
committed by GitHub
parent 412d9ac33a
commit 0b610bd63a
3 changed files with 46 additions and 0 deletions

View File

@@ -75,6 +75,12 @@ class VideoFromFile(VideoInput):
self.__file.seek(0)
return self.__file
def get_active_trim_window(self) -> tuple[float, float]:
start_time = self.__start_time
if start_time < 0:
start_time = max(self._get_raw_duration() + start_time, 0.0)
return float(start_time), float(self.__duration)
def get_dimensions(self) -> tuple[int, int]:
"""
Returns the dimensions of the video input.