From 997e236cb9e71069b71e8c87c31894db3cb98320 Mon Sep 17 00:00:00 2001 From: Anthony Weems Date: Fri, 2 May 2014 02:24:18 -0500 Subject: [PATCH] use byte array for communication --- 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 44b6c19f6..c92a97d99 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -508,7 +508,7 @@ class FFmpegConcatPP(FFmpegPostProcessor): for path in files: encoded_path = encodeFilename(path, True) files_cmd += u'file \'%s\'\n' % path - stdout, stderr = p.communicate(input=files_cmd) + stdout, stderr = p.communicate(input=bytes(files_cmd, 'utf-8')) if p.returncode != 0: stderr = stderr.decode('utf-8', 'replace') msg = stderr.strip().split('\n')[-1]