mirror of https://github.com/yt-dlp/yt-dlp.git
[splitchapters] Fix for older ffmpeg
Older versions of ffmpeg doesn't allow `-to` as an input option Closes #180
This commit is contained in:
parent
a515a78dd3
commit
a94bfd6cfe
|
@ -797,7 +797,7 @@ class FFmpegSplitChaptersPP(FFmpegPostProcessor):
|
|||
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 []
|
||||
|
|
Loading…
Reference in New Issue