mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-10 20:11:29 +08:00
Name the real cause when an audio-only source cannot be stored
The transcode fallback needs a video stream, so an audio-only source whose codec the destination cannot store failed with "No video stream found in file", hiding the codec that actually stopped the save.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user