From 7e62c2eb6d13ebf0fdd24c90c2f439177d485081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Sat, 6 Feb 2016 18:51:05 +0100 Subject: [PATCH] [FFmpegSubtitlesConvertorPP] fix not working when srt is used as the intermediate format between ttml/dfxp and other format It was trying to use the ttml/dfxp file with ffmpeg, which doesn't have support for them. I broke it in e04398e397d4a4f7e0d0994355d5a94c22441e7c. --- youtube_dl/postprocessor/ffmpeg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index 22d7ac65ac..6daa6a8b46 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -508,6 +508,7 @@ def run(self, info): with io.open(srt_file, 'wt', encoding='utf-8') as f: f.write(srt_data) + old_file = srt_file ext = 'srt' subs[lang] = {