summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/postprocessor
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-03-30 06:02:41 +0200
committerPhilipp Hagemeister <[email protected]>2014-03-30 06:08:22 +0200
commit62fec3b2fffd12949da6fe057ce08d5bab2b7db5 (patch)
treeaa649497a9e71a9503060a5d0c9ac6f634d9a871 /youtube_dl/postprocessor
parente79162558eca2e53a0cd5252102945bed7041601 (diff)
downloadyoutube-dl-62fec3b2fffd12949da6fe057ce08d5bab2b7db5.tar.gz
youtube-dl-62fec3b2fffd12949da6fe057ce08d5bab2b7db5.zip
Add new --encoding option (Fixes #2650)
Diffstat (limited to 'youtube_dl/postprocessor')
-rw-r--r--youtube_dl/postprocessor/ffmpeg.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py
index c22f2cdc6..98b5eccb4 100644
--- a/youtube_dl/postprocessor/ffmpeg.py
+++ b/youtube_dl/postprocessor/ffmpeg.py
@@ -53,8 +53,9 @@ class FFmpegPostProcessor(PostProcessor):
if self._downloader.params.get('verbose', False):
self._downloader.to_screen(u'[debug] ffmpeg command line: %s' % shell_quote(cmd))
- p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- stdout,stderr = p.communicate()
+ bcmd = [self._downloader.encode(c) for c in cmd]
+ p = subprocess.Popen(bcmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ stdout, stderr = p.communicate()
if p.returncode != 0:
stderr = stderr.decode('utf-8', 'replace')
msg = stderr.strip().split('\n')[-1]