Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Switch LTXVPreprocess to libx264 (#7776)

comfyanonymous5acb7058577c
diff --git a/comfy_extras/nodes_lt.py b/comfy_extras/nodes_lt.py
index 525889200..ff3fe5cdc 100644
--- a/comfy_extras/nodes_lt.py
+++ b/comfy_extras/nodes_lt.py
@@ -385,7 +385,7 @@ def encode_single_frame(output_file, image_array: np.ndarray, crf):
container = av.open(output_file, "w", format="mp4")
try:
stream = container.add_stream(
- "h264", rate=1, options={"crf": str(crf), "preset": "veryfast"}
+ "libx264", rate=1, options={"crf": str(crf), "preset": "veryfast"}
)
stream.height = image_array.shape[0]
stream.width = image_array.shape[1]