Skip to content

Commit b927a47

Browse files
committed
fix is_split default for video
1 parent aadc259 commit b927a47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/mediafiles/process_ffmpeg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def process_path(args, path, include_timecode=False, **kwargs) -> str | None:
267267
source_rate = int(audio_stream.get("sample_rate") or 44100)
268268

269269
duration = float(audio_stream.get("duration") or probe.format.get("duration") or 0)
270-
is_split = args.always_split or (args.split_longer_than and duration > args.split_longer_than)
270+
is_split = args.always_split or (not video_stream and args.split_longer_than and duration > args.split_longer_than)
271271

272272
try:
273273
assert bitrate > 0

0 commit comments

Comments
 (0)