From 8a7624df3d359b989d96b0027c6fb713a83ec1fd Mon Sep 17 00:00:00 2001 From: Anthony Weems Date: Fri, 9 May 2014 18:29:31 -0500 Subject: [PATCH] fixed str to byte pattern (compatible with 2.x and 3) --- 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 9d8c055d7..6096ef668 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -60,7 +60,7 @@ class FFmpegPostProcessor(PostProcessor): self._downloader.to_screen(u'[debug] ffmpeg command line: %s' % shell_quote(cmd)) p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE) if via_stdin: - stdout, stderr = p.communicate(input=bytes(stdin_cmd, 'utf-8')) + stdout, stderr = p.communicate(input=stdin_cmd.encode('utf-8')) else: stdout, stderr = p.communicate() if p.returncode != 0: