stdout is binary

This commit is contained in:
j 2017-04-28 17:09:12 +02:00
parent a175238d09
commit 0963abac9b
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ def stream(video, target, profile, info, audio_track=0, flags={}):
os.unlink(enc_target)
if os.path.exists(target):
os.unlink(target)
stdout = stdout.replace('\r\n', '\n').replace('\r', '\n')
stdout = stdout.decode('utf-8').replace('\r\n', '\n').replace('\r', '\n')
return False, stdout
if format == 'webm' and audio_only:
cmd = ['mkvmerge', '-w', '-o', target, '--cues', '-1:all', enc_target]