Dispatches to the appropriate command builder based on codec type.
(self, input_path: Path, output_path: Path, params: Dict[str, Any])
| 125 | # --- Command Builders: Encoder --- |
| 126 | |
| 127 | def _build_encode_cmd(self, input_path: Path, output_path: Path, params: Dict[str, Any]) -> List[str]: |
| 128 | """Dispatches to the appropriate command builder based on codec type.""" |
| 129 | builders = { |
| 130 | "vvenc": self._build_vvenc_encode_cmd, |
| 131 | "vtm": self._build_vtm_encode_cmd, |
| 132 | "hm": self._build_hm_encode_cmd, |
| 133 | "ffmpeg": self._build_ffmpeg_encode_cmd, |
| 134 | } |
| 135 | return builders[self.video_codec_type](input_path, output_path, params) |
| 136 | |
| 137 | def _build_vvenc_encode_cmd(self, i_path: Path, o_path: Path, p: Dict[str, Any]) -> List[str]: |
| 138 | """Builds the encoding command for vvenc (vvencapp).""" |