Compare commits

...

2 Commits

Author SHA1 Message Date
pukkandan
e13945a2fe
[ffmpeg] Fix features detection 2022-04-27 05:36:06 +05:30
pukkandan
ca04e1bf49
[Metadata] Remove filename from attached info-json 2022-04-27 01:19:06 +05:30

View File

@ -146,7 +146,8 @@ class FFmpegPostProcessor(PostProcessor):
self._paths[basename] = location
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:
executables = {k: v[::-1] for k, v in executables.items()}
for var, prefs in executables.items():
@ -799,8 +800,11 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
yield ('-map', '-0:%d' % old_stream)
new_stream -= 1
yield ('-attach', infofn,
'-metadata:s:%d' % new_stream, 'mimetype=application/json')
yield (
'-attach', infofn,
f'-metadata:s:{new_stream}', 'mimetype=application/json',
f'-metadata:s:{new_stream}', 'filename=info.json',
)
class FFmpegMergerPP(FFmpegPostProcessor):