MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / remove_substrings_from_keys

Function remove_substrings_from_keys

lightx2v/utils/utils.py:430–434  ·  view source on GitHub ↗
(original_dict, substr)

Source from the content-addressed store, hash-verified

428 result = _run_mux("copy") if prefer_copy else _run_mux("aac", ["-b:a", "192k"])
429
430 if result.returncode != 0 and prefer_copy:
431 # Fallback to AAC re-encode if stream copy fails
432 result = _run_mux("aac", ["-b:a", "192k"])
433
434 if result.returncode != 0:
435 stderr = result.stderr.decode(errors="ignore") if result.stderr else "Unknown error"
436 logger.warning(f"Audio mux failed, keep silent video. Error: {stderr}")
437 if os.path.exists(tmp_path):

Callers 1

load_encodersMethod · 0.90

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected