mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-17 14:45:42 +07:00
[splitchapters] Fix for older ffmpeg
Older versions of ffmpeg doesn't allow `-to` as an input option Closes #180
This commit is contained in:
@@ -797,7 +797,7 @@ def _ffmpeg_args_for_chapter(self, number, chapter, info):
|
|||||||
return (
|
return (
|
||||||
destination,
|
destination,
|
||||||
['-ss', compat_str(chapter['start_time']),
|
['-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):
|
def run(self, info):
|
||||||
chapters = info.get('chapters') or []
|
chapters = info.get('chapters') or []
|
||||||
|
|||||||
Reference in New Issue
Block a user