diff --git a/comfy_api/latest/_input_impl/video_types.py b/comfy_api/latest/_input_impl/video_types.py index b08a6fc9a..6a0b6afae 100644 --- a/comfy_api/latest/_input_impl/video_types.py +++ b/comfy_api/latest/_input_impl/video_types.py @@ -494,6 +494,11 @@ class VideoFromFile(VideoInput): if self._save_remuxed(container, path, open_kwargs, metadata): return + if video_stream is None: + raise ValueError( + f"Cannot store the audio of '{self.__file}' in this container, and there is no video " + "stream to re-encode it alongside." + ) if bit_depth is None: bit_depth = source_bit_depth if isinstance(path, io.BytesIO):