def init(self): if which(GST_VALIDATE_COMMAND) and which( GST_VALIDATE_TRANSCODING_COMMAND): return True return False
def init(self): if which(GST_VALIDATE_COMMAND) and which(GST_VALIDATE_TRANSCODING_COMMAND): return True return False
GST_SECOND, Result, Protocols, mkdir, printc, Colors, get_data_file, \ kill_subprocess # # Private global variables # # # definitions of commands to use parser = argparse.ArgumentParser(add_help=False) parser.add_argument("--validate-tools-path", dest="validate_tools_path", default="", help="defines the paths to look for GstValidate tools.") options, args = parser.parse_known_args() GST_VALIDATE_COMMAND = which("gst-validate-1.0", options.validate_tools_path) GST_VALIDATE_TRANSCODING_COMMAND = which("gst-validate-transcoding-1.0", options.validate_tools_path) G_V_DISCOVERER_COMMAND = which("gst-validate-media-check-1.0", options.validate_tools_path) GST_VALIDATE_RTSP_SERVER_COMMAND = which("gst-validate-rtsp-server-1.0", options.validate_tools_path) ScenarioManager.GST_VALIDATE_COMMAND = GST_VALIDATE_COMMAND AUDIO_ONLY_FILE_TRANSCODING_RATIO = 5 # # API to be used to create testsuites # # """ Some info about protocols and how to handle them
from launcher.utils import path2url, url2path, DEFAULT_TIMEOUT, which, \ GST_SECOND, Result, Protocols, mkdir, printc, Colors, get_data_file, \ kill_subprocess # # Private global variables # # # definitions of commands to use parser = argparse.ArgumentParser(add_help=False) parser.add_argument("--validate-tools-path", dest="validate_tools_path", default="", help="defines the paths to look for GstValidate tools.") options, args = parser.parse_known_args() GST_VALIDATE_COMMAND = which("gst-validate-1.0", options.validate_tools_path) GST_VALIDATE_TRANSCODING_COMMAND = which("gst-validate-transcoding-1.0", options.validate_tools_path) G_V_DISCOVERER_COMMAND = which("gst-validate-media-check-1.0", options.validate_tools_path) GST_VALIDATE_RTSP_SERVER_COMMAND = which("gst-validate-rtsp-server-1.0", options.validate_tools_path) ScenarioManager.GST_VALIDATE_COMMAND = GST_VALIDATE_COMMAND AUDIO_ONLY_FILE_TRANSCODING_RATIO = 5 # # API to be used to create testsuites # # """