ff
This commit is contained in:
@@ -97,12 +97,13 @@ class FileProperties():
|
|||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# ffprobe -hide_banner -show_format -of json
|
||||||
ffprobeOutput, ffprobeError, returnCode = executeProcess(["ffprobe",
|
ffprobeOutput, ffprobeError, returnCode = executeProcess(["ffprobe",
|
||||||
"-hide_banner",
|
"-hide_banner",
|
||||||
"-show_format",
|
"-show_format",
|
||||||
"-of", "json",
|
"-of", "json",
|
||||||
self.__sourcePath],
|
self.__sourcePath]) #,
|
||||||
context = self.context)
|
#context = self.context)
|
||||||
|
|
||||||
if 'Invalid data found when processing input' in ffprobeError:
|
if 'Invalid data found when processing input' in ffprobeError:
|
||||||
raise Exception(f"File {self.__sourcePath} does not contain valid stream data")
|
raise Exception(f"File {self.__sourcePath} does not contain valid stream data")
|
||||||
@@ -156,13 +157,13 @@ class FileProperties():
|
|||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# ffprobe -hide_banner -show_streams -of json
|
||||||
ffprobeOutput, ffprobeError, returnCode = executeProcess(["ffprobe",
|
ffprobeOutput, ffprobeError, returnCode = executeProcess(["ffprobe",
|
||||||
"-hide_banner",
|
"-hide_banner",
|
||||||
"-show_streams",
|
"-show_streams",
|
||||||
"-of", "json",
|
"-of", "json",
|
||||||
self.__sourcePath],
|
self.__sourcePath]) #,
|
||||||
context = self.context)
|
#context = self.context)
|
||||||
|
|
||||||
if 'Invalid data found when processing input' in ffprobeError:
|
if 'Invalid data found when processing input' in ffprobeError:
|
||||||
raise Exception(f"File {self.__sourcePath} does not contain valid stream data")
|
raise Exception(f"File {self.__sourcePath} does not contain valid stream data")
|
||||||
|
|||||||
Reference in New Issue
Block a user