mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-13 20:27:27 +08:00
fixed str to byte pattern (compatible with 2.x and 3)
This commit is contained in:
parent
76adb9074a
commit
8a7624df3d
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user