use byte array for communication
This commit is contained in:
parent
90e4b63d4c
commit
997e236cb9
@ -508,7 +508,7 @@ class FFmpegConcatPP(FFmpegPostProcessor):
|
|||||||
for path in files:
|
for path in files:
|
||||||
encoded_path = encodeFilename(path, True)
|
encoded_path = encodeFilename(path, True)
|
||||||
files_cmd += u'file \'%s\'\n' % path
|
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:
|
if p.returncode != 0:
|
||||||
stderr = stderr.decode('utf-8', 'replace')
|
stderr = stderr.decode('utf-8', 'replace')
|
||||||
msg = stderr.strip().split('\n')[-1]
|
msg = stderr.strip().split('\n')[-1]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user