mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-15 13:43:04 +00:00
Compare commits
2 Commits
00828e2c93
...
e13945a2fe
Author | SHA1 | Date | |
---|---|---|---|
|
e13945a2fe | ||
|
ca04e1bf49 |
@ -146,7 +146,8 @@ class FFmpegPostProcessor(PostProcessor):
|
|||||||
self._paths[basename] = location
|
self._paths[basename] = location
|
||||||
|
|
||||||
self._versions = {}
|
self._versions = {}
|
||||||
executables = {'basename': ('ffmpeg', 'avconv'), 'probe_basename': ('ffprobe', 'avprobe')}
|
# NB: probe must be first for _features to be poulated correctly
|
||||||
|
executables = {'probe_basename': ('ffprobe', 'avprobe'), 'basename': ('ffmpeg', 'avconv')}
|
||||||
if prefer_ffmpeg is False:
|
if prefer_ffmpeg is False:
|
||||||
executables = {k: v[::-1] for k, v in executables.items()}
|
executables = {k: v[::-1] for k, v in executables.items()}
|
||||||
for var, prefs in executables.items():
|
for var, prefs in executables.items():
|
||||||
@ -799,8 +800,11 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
|
|||||||
yield ('-map', '-0:%d' % old_stream)
|
yield ('-map', '-0:%d' % old_stream)
|
||||||
new_stream -= 1
|
new_stream -= 1
|
||||||
|
|
||||||
yield ('-attach', infofn,
|
yield (
|
||||||
'-metadata:s:%d' % new_stream, 'mimetype=application/json')
|
'-attach', infofn,
|
||||||
|
f'-metadata:s:{new_stream}', 'mimetype=application/json',
|
||||||
|
f'-metadata:s:{new_stream}', 'filename=info.json',
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class FFmpegMergerPP(FFmpegPostProcessor):
|
class FFmpegMergerPP(FFmpegPostProcessor):
|
||||||
|
Loading…
Reference in New Issue
Block a user