|
|
@ -176,8 +176,8 @@ class VideoFileParser:
|
|
|
|
IOError: ffprobe execution failed
|
|
|
|
IOError: ffprobe execution failed
|
|
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
command = [parser] + commandArgs + [inputFile.encode(getfilesystemencoding())]
|
|
|
|
|
|
|
|
if PY3:
|
|
|
|
if PY3:
|
|
|
|
|
|
|
|
command = [parser] + commandArgs + [inputFile]
|
|
|
|
completedProcess = subprocess.run(
|
|
|
|
completedProcess = subprocess.run(
|
|
|
|
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8"
|
|
|
|
command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding="utf-8"
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -187,6 +187,7 @@ class VideoFileParser:
|
|
|
|
)
|
|
|
|
)
|
|
|
|
return completedProcess.stdout
|
|
|
|
return completedProcess.stdout
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
|
|
|
|
command = [parser] + commandArgs + [inputFile.encode(getfilesystemencoding())]
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
completedProcess = subprocess.check_output(
|
|
|
|
completedProcess = subprocess.check_output(
|
|
|
|
command, stderr=subprocess.STDOUT
|
|
|
|
command, stderr=subprocess.STDOUT
|
|
|
|