diff --git a/comfy_api/latest/_input_impl/video_types.py b/comfy_api/latest/_input_impl/video_types.py index ffd105c18..72f149978 100644 --- a/comfy_api/latest/_input_impl/video_types.py +++ b/comfy_api/latest/_input_impl/video_types.py @@ -389,7 +389,9 @@ class VideoFromComponents(VideoInput): VideoCodec.H264: "libx264", VideoCodec.VP9: "libvpx-vp9", } - ffmpeg_codec = codec_map.get(resolved_codec, "libx264") + if resolved_codec not in codec_map: + raise ValueError(f"Unsupported codec: {resolved_codec}") + ffmpeg_codec = codec_map[resolved_codec] extra_kwargs = {} if resolved_format != VideoContainer.AUTO: