コード例 #1
0
def _preset_selection_changed(w):
    encs = renderconsumer.non_user_encodings
    if disable_audio_encoding == True:
        encs = renderconsumer.get_video_non_user_encodigs()

    enc_index = w.get_active()
    ext = encs[enc_index].extension
    widgets.file_panel.extension_label.set_text("." + ext)
コード例 #2
0
    def __init__(self, selection_changed_callback):
        self.widget = Gtk.ComboBoxText()
        encs = renderconsumer.non_user_encodings

        if disable_audio_encoding == True:
            encs = renderconsumer.get_video_non_user_encodigs()

        for encoding in encs:
            self.widget.append_text(encoding.name)

        self.widget.set_active(0)
        self.widget.set_sensitive(False)
        self.widget.connect("changed",
                            lambda w, e: selection_changed_callback(w), None)
コード例 #3
0
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