From a94bfd6cfe07874f600f0e3c2edd071a1a0a0c4e Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sat, 20 Mar 2021 09:15:45 +0530 Subject: [PATCH] [splitchapters] Fix for older ffmpeg Older versions of ffmpeg doesn't allow `-to` as an input option Closes #180 --- yt_dlp/postprocessor/ffmpeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py index 363f10e6d..b0b05f4fc 100644 --- a/yt_dlp/postprocessor/ffmpeg.py +++ b/yt_dlp/postprocessor/ffmpeg.py @@ -797,7 +797,7 @@ def _ffmpeg_args_for_chapter(self, number, chapter, info): return ( destination, ['-ss', compat_str(chapter['start_time']), - '-to', compat_str(chapter['end_time'])]) + '-t', compat_str(chapter['end_time'] - chapter['start_time'])]) def run(self, info): chapters = info.get('chapters') or []