From 0ba57801cf07a86edbba55f3ec2407186fbdd4cb Mon Sep 17 00:00:00 2001 From: Inoland Date: Sun, 7 Dec 2025 11:04:37 +0400 Subject: [PATCH] Update media_helper.py --- src/comfyui_ino_nodes/class_helpers/media_helper.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/comfyui_ino_nodes/class_helpers/media_helper.py b/src/comfyui_ino_nodes/class_helpers/media_helper.py index 86b0e80..8f3b3b0 100644 --- a/src/comfyui_ino_nodes/class_helpers/media_helper.py +++ b/src/comfyui_ino_nodes/class_helpers/media_helper.py @@ -1,3 +1,5 @@ +from pathlib import Path + from inopyutils import InoMediaHelper class InoConvertVideoToMP4: @@ -32,7 +34,14 @@ class InoConvertVideoToMP4: if not enabled: return (False, "Node is disabled", "",) - convert = await InoMediaHelper.video_convert_ffmpeg(input_path, output_path, change_resolution, change_fps, max_resolution, fps) + convert = await InoMediaHelper.video_convert_ffmpeg( + input_path=Path(input_path), + output_path=Path(output_path), + change_res=change_resolution, + change_fps=change_fps, + max_res=max_resolution, + max_fps=fps + ) return (convert["success"], convert["msg"], convert, )