ComfyUI/comfy_api/latest/_input_impl
Arthur R Longbottom 1fe5e3f86c Fix VideoFromComponents.save_to crash when writing to BytesIO
When `get_container_format()` or `get_stream_source()` is called on a
tensor-based video (VideoFromComponents), it calls `save_to(BytesIO())`.
Since BytesIO has no file extension, `av.open` can't infer the output
format and throws `ValueError: Could not determine output format`.

The sibling class `VideoFromFile` already handles this correctly via
`get_open_write_kwargs()`, which detects BytesIO and sets the format
explicitly. `VideoFromComponents` just never got the same treatment.

This surfaces when any downstream node validates the container format
of a tensor-based video, like TopazVideoEnhance or any node that calls
`validate_container_format_is_mp4()`.

Three-line fix in `comfy_api/latest/_input_impl/video_types.py`.
2026-02-27 10:27:28 -08:00
..
__init__.py ComfyAPI Core v0.0.2 (#8962) 2025-07-29 22:17:22 -04:00
video_types.py Fix VideoFromComponents.save_to crash when writing to BytesIO 2026-02-27 10:27:28 -08:00