Skip to content

Video corrupted when not on config.yaml #3548

Closed

Description

@dmg99

Is there an existing issue for this?

  • I have searched the existing issues

Operating System

Ubuntu 22.04.5 LTS

DeepLabCut version

3.0.0

What engine are you using?

pytorch

DeepLabCut mode

single animal

Device type

This was on CPU

Bug description 🐛

I tried to run deeplabcut.extract_frames(config_path, videos_list=[video_path]) and got the following message "Frame extraction failed. Video files must be corrupted."
It turns out that this was due to the fact that I had not added video_path to the list of videos in the config.yaml and line 272 ( videos = [v for v in cfg["video_sets"] if v in videos_list]) from frame_extraction.py was filtering it out.
I suggest that you please:

  • Make it raise a proper error (not just a print message)
  • Change the content of the "error" to the actual issue (Video not present in config.yaml, please add it first using deeplabcut.add_new_videos)

After adding it to the config all worked well. Thanks a lot

Steps To Reproduce

No response

Relevant log output

Anything else?

No response

Code of Conduct

Activity

  1. added
    bug
    config
    on Oct 9, 2026
  2. C-Achard commented on Oct 9, 2026

    @C-Achard
    Member

    Hi @dmg99,

    Thanks for the report; this should actually be fixed in 3.0.2 (#3449), it now raises:
    ValueError: None of the selected videos matched the video paths stored in the project configuration.

    If possible, you could upgrade and check on the latest version?
    If it's still unclear what to do next, let me know and we could open a feature request instead, since indeed it does not point to the helper currently.

    Best,
    Cyril

  3. added theissue type on Oct 9, 2026
  4. dmg99 commented on Oct 9, 2026

    @dmg99
    Author

    Super sorry I did not found the previous issue. Great is fixed, I close then

  5. C-Achard commented on Oct 9, 2026

    @C-Achard
    Member

    No problem! Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugconfig

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions