MCPcopy Create free account
hub / github.com/JasonLSC/GSCodec_Studio / _build_encode_cmd

Method _build_encode_cmd

gsplat/compression/video_codec.py:127–135  ·  view source on GitHub ↗

Dispatches to the appropriate command builder based on codec type.

(self, input_path: Path, output_path: Path, params: Dict[str, Any])

Source from the content-addressed store, hash-verified

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)."""

Callers 1

encodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected