Add video stream copy remuxing
This commit is contained in:
@@ -13,6 +13,17 @@ def normal_deleted_frame_count(timeline: OutputTimeline) -> int:
|
||||
return missing_source_frames(timeline.consumed_source_frames)
|
||||
|
||||
|
||||
def preserves_entire_source_timeline(timeline: OutputTimeline) -> bool:
|
||||
return (
|
||||
not timeline.beginning_trimmed
|
||||
and not timeline.ending_trimmed
|
||||
and not timeline.dropped_frame_count
|
||||
and len(timeline.frames) == timeline.source_frame_count
|
||||
and [frame.source_frame for frame in timeline.frames]
|
||||
== list(range(timeline.source_frame_count))
|
||||
)
|
||||
|
||||
|
||||
def missing_source_frames_between_kept(timeline: OutputTimeline) -> int:
|
||||
return missing_source_frames([frame.source_frame for frame in timeline.frames])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user