Files
Vladimir ChopineandCopilot 1e2605069f feat: close major V1 PRD gaps for UniversalVideoIO
Adds advanced save controls, load-video resize options, archive-sequence master preset, FFmpeg capability self-check cache, optional UV_TranscodeVideo utility node, Comfy registry metadata scaffolding, updated docs/workflows, and expanded tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-25 10:23:41 -06:00

41 lines
1.0 KiB
Python

import os
import sys
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
from core.command_builder import build_video_command
def test_build_video_command_has_codec_and_output():
cmd = build_video_command(
ffmpeg_path="ffmpeg",
input_pattern="/tmp/frame_%06d.png",
output_path="out.mp4",
fps=24,
profile_name="youtube_h264",
overwrite=True,
)
assert "-c:v" in cmd
assert cmd[-1] == "out.mp4"
def test_build_video_command_advanced_overrides():
cmd = build_video_command(
ffmpeg_path="ffmpeg",
input_pattern="/tmp/frame_%06d.png",
output_path="out.mov",
fps=30,
profile_name="prores_422hq_master",
overwrite=False,
audio_path="/tmp/audio.wav",
pix_fmt_override="yuv422p10le",
quality_args_override="-qscale:v 7",
color_range="tv",
colorspace="bt709",
)
assert "-n" in cmd
assert "-shortest" in cmd
assert "yuv422p10le" in cmd
assert "-qscale:v" in cmd
assert "bt709" in cmd