def check_exes(args: Args): """ Checking required executables :param args: the Args """ if not find_executable('ffmpeg'): print('No ffmpeg') terminate() validate_inputs(args) if args.chunk_method == 'vs_ffms2' and (not find_executable('vspipe')): print('vspipe executable not found') terminate()
def setup_encoder(project: Project): """ Setup encoder params and passes :param project: the Project """ encoder = ENCODERS[project.encoder] # validate encoder settings settings_valid, error_msg = encoder.is_valid(project) if not settings_valid: print(error_msg) terminate() if project.passes is None: project.passes = encoder.default_passes project.video_params = encoder.default_args if project.video_params is None \ else shlex.split(project.video_params) validate_inputs(project)
def setup_encoder(args: Args): """ Settup encoder params and passes :param args: the Args """ encoder = ENCODERS[args.encoder] # validate encoder settings settings_valid, error_msg = encoder.is_valid(args) if not settings_valid: print(error_msg) terminate() if args.passes is None: args.passes = encoder.default_passes args.video_params = encoder.default_args if args.video_params is None \ else shlex.split(args.video_params) validate_inputs(args)