From 8aac00e0858f9c29684323cc8a64622dd7cb90bc Mon Sep 17 00:00:00 2001 From: Anthony Weems Date: Fri, 2 May 2014 02:24:39 -0500 Subject: [PATCH] use encoded path for shell command --- youtube_dl/postprocessor/ffmpeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index c92a97d99..00a439a24 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -507,7 +507,7 @@ class FFmpegConcatPP(FFmpegPostProcessor): files_cmd = u'' for path in files: encoded_path = encodeFilename(path, True) - files_cmd += u'file \'%s\'\n' % path + files_cmd += u'file \'%s\'\n' % encoded_path stdout, stderr = p.communicate(input=bytes(files_cmd, 'utf-8')) if p.returncode != 0: stderr = stderr.decode('utf-8', 'replace')