def get_args_vals_list_for_current_selections(): profile = get_current_profile() encoding_option_index = widgets.encoding_panel.encoding_selector.widget.get_active( ) quality_option_index = widgets.encoding_panel.quality_selector.widget.get_active( ) if widgets.render_type_panel.type_combo.get_active( ) == 1: # Preset encodings args_vals_list = renderconsumer.get_args_vals_tuples_list_for_encoding_and_quality( profile, encoding_option_index, -1) elif widgets.args_panel.use_args_check.get_active( ) == False: # User encodings args_vals_list = renderconsumer.get_args_vals_tuples_list_for_encoding_and_quality( profile, encoding_option_index, quality_option_index) else: # Manual args encodings buf = widgets.args_panel.opts_view.get_buffer() args_vals_list, error = renderconsumer.get_ffmpeg_opts_args_vals_tuples_list( buf) if error != None: dialogutils.warning_message("FFMPeg Args Error", error, gui.editor_window.window) return None return args_vals_list
def get_args_vals_list_for_current_selections(): profile = get_current_profile() encoding_option_index = widgets.encoding_panel.encoding_selector.widget.get_active() quality_option_index = widgets.encoding_panel.quality_selector.widget.get_active() if widgets.render_type_panel.type_combo.get_active() == 1: # Preset encodings -1) encoding_option = renderconsumer.non_user_encodings[widgets.render_type_panel.presets_selector.widget.get_active()] args_vals_list = encoding_option.get_args_vals_tuples_list(profile) elif widgets.args_panel.use_args_check.get_active() == False: # User encodings args_vals_list = renderconsumer.get_args_vals_tuples_list_for_encoding_and_quality( profile, encoding_option_index, quality_option_index) args_vals_list.append(("ar", str(widgets.encoding_panel.sample_rate_selector.get_selected_rate()))) else: # Manual args encodings if widgets.args_panel.text_buffer == None: # Normal height args panel buf = widgets.args_panel.opts_view.get_buffer() else: # Small heights with dialog for setting args buf = widgets.args_panel.text_buffer args_vals_list, error = renderconsumer.get_ffmpeg_opts_args_vals_tuples_list(buf) if error != None: dialogutils.warning_message("FFMPeg Args Error", error, gui.editor_window.window) return None return args_vals_list
def get_args_vals_list_for_current_selections(): profile = get_current_profile() encoding_option_index = widgets.encoding_panel.encoding_selector.widget.get_active() quality_option_index = widgets.encoding_panel.quality_selector.widget.get_active() if widgets.render_type_panel.type_combo.get_active() == 1: # Preset encodings -1) encoding_option = renderconsumer.non_user_encodings[widgets.render_type_panel.presets_selector.widget.get_active()] args_vals_list = encoding_option.get_args_vals_tuples_list(profile) elif widgets.args_panel.use_args_check.get_active() == False: # User encodings args_vals_list = renderconsumer.get_args_vals_tuples_list_for_encoding_and_quality( profile, encoding_option_index, quality_option_index) args_vals_list.append(("ar", str(widgets.encoding_panel.sample_rate_selector.get_selected_rate()))) else: # Manual args encodings if widgets.args_panel.text_buffer == None: # Normal height args panel buf = widgets.args_panel.opts_view.get_buffer() else: # Small heights with dialog for setting args buf = widgets.args_panel.text_buffer args_vals_list, error = renderconsumer.get_ffmpeg_opts_args_vals_tuples_list(buf) if error != None: dialogutils.warning_message("FFMPeg Args Error", error, gui.editor_window.window) return None return args_vals_list
def get_args_vals_list_for_render_data(render_data): profile = mltprofiles.get_profile_for_index(render_data.profile_index) args_vals_list = renderconsumer.get_args_vals_tuples_list_for_encoding_and_quality( profile, render_data.encoding_option_index, render_data.quality_option_index) # sample rate not supported # args rendering not supported return args_vals_list
def get_args_vals_list_for_current_selections(): profile = get_current_profile() encoding_option_index = widgets.encoding_panel.encoding_selector.widget.get_active() quality_option_index = widgets.encoding_panel.quality_selector.widget.get_active() if widgets.render_type_panel.type_combo.get_active() == 1: # Preset encodings args_vals_list = renderconsumer.get_args_vals_tuples_list_for_encoding_and_quality( profile, encoding_option_index, -1) elif widgets.args_panel.use_args_check.get_active() == False: # User encodings args_vals_list = renderconsumer.get_args_vals_tuples_list_for_encoding_and_quality( profile, encoding_option_index, quality_option_index) else: # Manual args encodings buf = widgets.args_panel.opts_view.get_buffer() args_vals_list, error = renderconsumer.get_ffmpeg_opts_args_vals_tuples_list(buf) if error != None: dialogutils.warning_message("FFMPeg Args Error", error, gui.editor_window.window) return None return args_vals_list
def get_args_vals_list_for_render_data(render_data): profile = mltprofiles.get_profile_for_index(render_data.profile_index) if render_data.use_preset_encodings == 1: # Preset encodings encs = renderconsumer.non_user_encodings if disable_audio_encoding == True: encs = renderconsumer.get_video_non_user_encodigs() encoding_option = encs[render_data.presets_index] args_vals_list = encoding_option.get_args_vals_tuples_list(profile) else: # User encodings args_vals_list = renderconsumer.get_args_vals_tuples_list_for_encoding_and_quality( profile, render_data.encoding_option_index, render_data.quality_option_index) # sample rate not supported # args rendering not supported return args_vals_list