mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-09-25 08:10:12 +00:00
@@ -585,7 +585,7 @@ class FFmpegVideoRemuxerPP(FFmpegVideoConvertorPP):
|
||||
|
||||
@staticmethod
|
||||
def _options(target_ext):
|
||||
return self.stream_copy_opts()
|
||||
return FFmpegPostProcessor.stream_copy_opts()
|
||||
|
||||
|
||||
class FFmpegEmbedSubtitlePP(FFmpegPostProcessor):
|
||||
@@ -678,7 +678,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
|
||||
@staticmethod
|
||||
def _options(target_ext):
|
||||
audio_only = target_ext == 'm4a'
|
||||
yield from self.stream_copy_opts(not audio_only)
|
||||
yield from FFmpegPostProcessor.stream_copy_opts(not audio_only)
|
||||
if audio_only:
|
||||
yield from ('-vn', '-acodec', 'copy')
|
||||
|
||||
|
@@ -57,6 +57,7 @@ class ModifyChaptersPP(FFmpegPostProcessor):
|
||||
self.write_debug('Expected and actual durations mismatch')
|
||||
|
||||
concat_opts = self._make_concat_opts(cuts, real_duration)
|
||||
self.write_debug('Concat spec = %s' % ', '.join(f'{c.get("inpoint", 0.0)}-{c.get("outpoint", "inf")}' for c in concat_opts))
|
||||
|
||||
def remove_chapters(file, is_sub):
|
||||
return file, self.remove_chapters(file, cuts, concat_opts, self._force_keyframes and not is_sub)
|
||||
@@ -332,6 +333,6 @@ class ModifyChaptersPP(FFmpegPostProcessor):
|
||||
continue
|
||||
opts[-1]['outpoint'] = f'{s["start_time"]:.6f}'
|
||||
# Do not create 0 duration chunk at the end.
|
||||
if s['end_time'] != duration:
|
||||
if s['end_time'] < duration:
|
||||
opts.append({'inpoint': f'{s["end_time"]:.6f}'})
|
||||
return opts
|
||||
|
Reference in New Issue
Block a user