Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raise ValueError(f"{video} could not be loaded with cv.") #309

Open
fastaipod opened this issue Oct 29, 2024 · 2 comments
Open

raise ValueError(f"{video} could not be loaded with cv.") #309

fastaipod opened this issue Oct 29, 2024 · 2 comments

Comments

@fastaipod
Copy link

OS: Ubuntu 22.04.3 LTS
cuda: 12.2

I encountered the following error when loading a video in ComfyUI.

Import times for custom nodes:
   0.0 seconds: /workspace/ComfyUI/custom_nodes/websocket_image_save.py
   0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-WD14-Tagger
   0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Custom-Scripts
   0.0 seconds: /workspace/ComfyUI/custom_nodes/AIGODLIKE-ComfyUI-Translation
   0.0 seconds: /workspace/ComfyUI/custom_nodes/comfyui-workspace-manager
   0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite
   0.0 seconds: /workspace/ComfyUI/custom_nodes/rgthree-comfy
   0.0 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Advanced-ControlNet
   0.0 seconds: /workspace/ComfyUI/custom_nodes/efficiency-nodes-comfyui
   0.0 seconds: /workspace/ComfyUI/custom_nodes/comfyui_controlnet_aux
   0.1 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Manager
   0.1 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved
   0.2 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-KJNodes
   0.3 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-Crystools
   0.3 seconds: /workspace/ComfyUI/custom_nodes/ComfyUI-tbox

Setting output directory to: /video/output
Setting input directory to: /video/input
Starting server

To see the GUI go to: http://0.0.0.0:8188
got prompt
[ WARN:[email protected]] global cap_ffmpeg_impl.hpp:453 _opencv_ffmpeg_interrupt_callback Stream timeout triggered after 165581.395732 ms
[ WARN:[email protected]] global cap_ffmpeg_impl.hpp:453 _opencv_ffmpeg_interrupt_callback Stream timeout triggered after 165581.644175 ms
[ WARN:[email protected]] global cap_ffmpeg_impl.hpp:453 _opencv_ffmpeg_interrupt_callback Stream timeout triggered after 165581.661780 ms
[ WARN:[email protected]] global cap_ffmpeg_impl.hpp:453 _opencv_ffmpeg_interrupt_callback Stream timeout triggered after 165581.672745 ms
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x14b5e400a400] moov atom not found
!!! Exception during processing !!! /video/input/ai_daa98bcd-ef7b-4c15-86ff-8bd5a845fee8.mp4 could not be loaded with cv.
Traceback (most recent call last):
  File "/workspace/ComfyUI/execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "/workspace/ComfyUI/execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "/workspace/ComfyUI/execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "/workspace/ComfyUI/execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite/videohelpersuite/load_video_nodes.py", line 271, in load_video
    return load_video_cv(**kwargs)
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite/videohelpersuite/load_video_nodes.py", line 143, in load_video_cv
    (width, height, fps, duration, total_frames, target_frame_time) = next(gen)
  File "/workspace/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite/videohelpersuite/load_video_nodes.py", line 44, in cv_frame_generator
    raise ValueError(f"{video} could not be loaded with cv.")
ValueError: /video/input/ai_daa98bcd-ef7b-4c15-86ff-8bd5a845fee8.mp4 could not be loaded with cv.
@fastaipod
Copy link
Author

I encountered the same issue. Has this problem been resolved?

@AustinMroz
Copy link
Collaborator

The video isn't compatible with the method used for video loading, so there's not really much that can be fixed.

There's a newish Load Video FFmpeg which might work, but I wouldn't get your hopes up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants