def update_video_encoder_settings(self):
     settings = rav1eSettings(
         speed=self.widgets.speed.currentText(),
         tile_columns=self.widgets.tile_columns.currentText(),
         tile_rows=self.widgets.tile_rows.currentText(),
         tiles=self.widgets.tiles.currentText(),
         single_pass=self.widgets.single_pass.isChecked(),
         max_muxing_queue_size=self.widgets.max_mux.currentText(),
         extra=self.ffmpeg_extras,
         extra_both_passes=self.widgets.extra_both_passes.isChecked(),
         pix_fmt=self.widgets.pix_fmt.currentText().split(":")[1].strip(),
     )
     encode_type, q_value = self.get_mode_settings()
     settings.qp = q_value if encode_type == "qp" else None
     settings.bitrate = q_value if encode_type == "bitrate" else None
     self.app.fastflix.current_video.video_settings.video_encoder_settings = settings
Exemplo n.º 2
0
 def update_video_encoder_settings(self):
     settings = rav1eSettings(
         speed=self.widgets.speed.currentText(),
         tile_columns=self.widgets.tile_columns.currentText(),
         tile_rows=self.widgets.tile_rows.currentText(),
         tiles=self.widgets.tiles.currentText(),
         single_pass=self.widgets.single_pass.isChecked(),
         max_muxing_queue_size=self.widgets.max_mux.currentText(),
         extra=self.ffmpeg_extras,
         pix_fmt=self.widgets.pix_fmt.currentText().split(":")[1].strip(),
     )
     if self.mode == "QP":
         qp = self.widgets.qp.currentText()
         settings.qp = int(
             qp.split(" ", 1)[0]
         ) if qp.lower() != "custom" else self.widgets.custom_qp.text()
     else:
         bitrate = self.widgets.bitrate.currentText()
         settings.bitrate = (bitrate.split(" ", 1)[0]
                             if bitrate.lower() != "custom" else
                             self.widgets.custom_bitrate.text())
     self.app.fastflix.current_video.video_settings.video_encoder_settings = settings