aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/postprocessor/ffmpeg.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan@gmail.com>2021-02-03 19:06:09 +0530
committerpukkandan <pukkandan@gmail.com>2021-02-05 04:11:39 +0530
commitde6000d913fd35643cb6faf89919665ddd9ab225 (patch)
tree6960b6211f37df02e81189f88bdcbd3267edfcfd /youtube_dlc/postprocessor/ffmpeg.py
parentff88a05cff49ec1a2d6b93c0a420b63537fd6f42 (diff)
downloadhypervideo-pre-de6000d913fd35643cb6faf89919665ddd9ab225.tar.lz
hypervideo-pre-de6000d913fd35643cb6faf89919665ddd9ab225.tar.xz
hypervideo-pre-de6000d913fd35643cb6faf89919665ddd9ab225.zip
Multiple output templates for different file types
Syntax: -o common_template -o type:type_template Types supported: subtitle|thumbnail|description|annotation|infojson|pl_description|pl_infojson
Diffstat (limited to 'youtube_dlc/postprocessor/ffmpeg.py')
-rw-r--r--youtube_dlc/postprocessor/ffmpeg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dlc/postprocessor/ffmpeg.py b/youtube_dlc/postprocessor/ffmpeg.py
index a364237ce..948c34287 100644
--- a/youtube_dlc/postprocessor/ffmpeg.py
+++ b/youtube_dlc/postprocessor/ffmpeg.py
@@ -578,7 +578,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
in_filenames.append(metadata_filename)
options.extend(['-map_metadata', '1'])
- if '__infojson_filepath' in info and info['ext'] in ('mkv', 'mka'):
+ if '__infojson_filename' in info and info['ext'] in ('mkv', 'mka'):
old_stream, new_stream = self.get_stream_number(
filename, ('tags', 'mimetype'), 'application/json')
if old_stream is not None:
@@ -586,7 +586,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
new_stream -= 1
options.extend([
- '-attach', info['__infojson_filepath'],
+ '-attach', info['__infojson_filename'],
'-metadata:s:%d' % new_stream, 'mimetype=application/json'
])