[Metadata] Remove filename from attached info-json

This commit is contained in:
pukkandan 2022-04-27 01:18:50 +05:30
parent 00828e2c93
commit ca04e1bf49
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View file

@ -799,8 +799,11 @@ def _get_infojson_opts(self, info, infofn):
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):