You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there. I have just started to use DLC recently and I faced a issue when I want to extract the frames from the videos. The format of videos are H264 MP4 and I get this error in terminal:
INFO:console:Frame extraction failed. Video files must be corrupted.
INFO:console:failed to extract frames: worker is None
Hi @mojtaba-movement-analyst. Let me help you find the source of the problem. Could you answer the following questions?
Besides the mentioned errors, can you see other outputs in the terminal?
Have you tried opening the video in other software (e.g. a video player) and can you verify that it is not corrupted?
Is your error specific to this particular video? Did you try frame extraction on other videos?
You could try to convert the video to a different format and see if the error still persists, by running this command in your WSL terminal: ffmpeg -i <input_video.mp4> <converted_video.avi> (replacing the input and output fields with the appropriate paths).
If the problem persists, would you mind sharing the video with us via a download link?
Hi @deruyter92. Thank you so much for your response. I converted the videos to mkv format and the problem solved. I don't know where the problem was but we could also extract the frames using older version of DLC.
By the way I tried to use an avi format video to test it but the same error occurred. It happened on our department powerful PC and also on my laptop.
Please let me know if I could share something to you in order to debug DLC.
Yes it would be interesting if I could try to reproduce the problem with your video, especially since you are mentioning inconsistent behavior for different versions of DeepLabCut. Could you share the problematic video with us? If you could post a download link in your reply, I will have a look at it! Thanks in advance!
mojtaba-movement-analyst commented on Dec 17, 2025
@deruyter92 Sorry for sending the videos late. These two videos are just two from multiple ones. None of them can be used for frame extraction.
I also have a question about undistorted images in 3D calibration. How they should look like? I could not find any example to see and compare to mine. Thank you in advance for your support.
Thanks! I have tested the integrity of you files using ffprobe, ffmpeg and manual inspection. I can find nothing wrong with these videos. Also, I could successfully extract the frames with DeepLabCut (version 3.0rc13) on my machines (Ubuntu and Windows).
For me it is difficult to pinpoint why these videos were not successfully processed in your original attempt - especially since you don't mention seeing other error messages (e.g. 'Frame selection failed...' or 'Frame [...] not found'). I am glad that you found other ways to extract the frames, and hope that these workarounds are sufficient for you.
It begs the question if the "Unsupported codec ..." is causing the problem
However, after converting the video to various formats/codecs what made the difference in adding the same video again in the "add new videos" in "manage project" tab.
this begs the question: why am I getting the errors about video format when, in fact, the problem is with file management?
I have the same problem. Originally, it worked, but not on later-added videos. So I created a new project, and neither the new nor the earlier videos worked.
After upgrading had the same issue, commented in #3448
mp4 videos, can be opened in vlc. Debug with example video:
ffmpeg: ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
ffmpeg_path: bin/ffmpeg
Recent logs
10:24:56.245 | INFO | deeplabcut.gui | Use all bodyparts
10:25:06.365 | INFO | deeplabcut.gui | Videos added to analyze:
{PosixPath('/data/Deeplabcut/test-02-2026-09-16/videos/04-01.mp4')}
Current video files:
{PosixPath('/data/Deeplabcut/test-02-2026-09-16/videos/04-01.mp4')}
10:25:08.224 | INFO | deeplabcut.gui.console | Config file read successfully.
10:25:08.225 | INFO | deeplabcut.gui.console | Frame extraction failed. Video files must be corrupted.
10:25:10.692 | INFO | deeplabcut.gui.console | failed to extract frames: worker is None
Activity
deruyter92 commentedon Dec 5, 2025
Hi @mojtaba-movement-analyst. Let me help you find the source of the problem. Could you answer the following questions?
You could try to convert the video to a different format and see if the error still persists, by running this command in your WSL terminal:
ffmpeg -i <input_video.mp4> <converted_video.avi>(replacing the input and output fields with the appropriate paths).If the problem persists, would you mind sharing the video with us via a download link?
mojtaba-movement-analyst commentedon Dec 5, 2025
Hi @deruyter92. Thank you so much for your response. I converted the videos to mkv format and the problem solved. I don't know where the problem was but we could also extract the frames using older version of DLC.
By the way I tried to use an avi format video to test it but the same error occurred. It happened on our department powerful PC and also on my laptop.
Please let me know if I could share something to you in order to debug DLC.
deruyter92 commentedon Dec 8, 2025
@mojtaba-movement-analyst, good to hear that the conversion is a good workaround for now.
Yes it would be interesting if I could try to reproduce the problem with your video, especially since you are mentioning inconsistent behavior for different versions of DeepLabCut. Could you share the problematic video with us? If you could post a download link in your reply, I will have a look at it! Thanks in advance!
mojtaba-movement-analyst commentedon Dec 17, 2025
@deruyter92 Sorry for sending the videos late. These two videos are just two from multiple ones. None of them can be used for frame extraction.
I also have a question about undistorted images in 3D calibration. How they should look like? I could not find any example to see and compare to mine. Thank you in advance for your support.
deruyter92 commentedon Dec 18, 2025
Hi @mojtaba-movement-analyst, just to make sure: where can I find the videos? Maybe could you share a download link?
mojtaba-movement-analyst commentedon Dec 19, 2025
@deruyter92 Sorry I forgot to paste the link :)
here you are:
https://drive.google.com/drive/folders/1srrIarf4GgQjzD8ksnKh5cN5DHZta0gR?usp=drive_link
P:S: We managed to use them as a .mp4 file for extracting frames on a Macbook Air!
deruyter92 commentedon Dec 22, 2025
Thanks! I have tested the integrity of you files using
ffprobe,ffmpegand manual inspection. I can find nothing wrong with these videos. Also, I could successfully extract the frames with DeepLabCut (version 3.0rc13) on my machines (Ubuntu and Windows).For me it is difficult to pinpoint why these videos were not successfully processed in your original attempt - especially since you don't mention seeing other error messages (e.g. 'Frame selection failed...' or 'Frame [...] not found'). I am glad that you found other ways to extract the frames, and hope that these workarounds are sufficient for you.
mikeumo commentedon Jan 24, 2026
I have exactly the same issue (same error message). It appeared in 3.0.0rc8 and in 3.0.0rc13
INFO:console:Frame extraction failed. Video files must be corrupted.
INFO:console:failed to extract frames: worker is None
I have mp4 files and I cannot extract frames with "automatic" extraction and "kmeans" algorithm.
here is ffprobe:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'aaa.MP4':
Metadata:
major_brand : mp41
minor_version : 538120216
compatible_brands: mp41
creation_time : 2025-07-28T21:50:14.000000Z
firmware : HD8.01.02.50.00
Duration: 00:10:28.06, start: 0.000000, bitrate: 45278 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 45002 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc (default)
Metadata:
creation_time : 2025-07-28T21:50:14.000000Z
handler_name : GoPro AVC
vendor_id : [0][0][0][0]
encoder : GoPro AVC encoder
timecode : 01:57:05:06
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
Metadata:
creation_time : 2025-07-28T21:50:14.000000Z
handler_name : GoPro AAC
vendor_id : [0][0][0][0]
timecode : 01:57:05:06
Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
Metadata:
creation_time : 2025-07-28T21:50:14.000000Z
handler_name : GoPro TCD
timecode : 01:57:05:06
Stream #0:3(eng): Data: bin_data (gpmd / 0x646D7067), 59 kb/s (default)
Metadata:
creation_time : 2025-07-28T21:50:14.000000Z
handler_name : GoPro MET
Stream #0:4(eng): Data: none (fdsc / 0x63736466), 13 kb/s (default)
Metadata:
creation_time : 2025-07-28T21:50:14.000000Z
handler_name : GoPro SOS
Unsupported codec with id 0 for input stream 2
Unsupported codec with id 100359 for input stream 3
Unsupported codec with id 0 for input stream 4
It begs the question if the "Unsupported codec ..." is causing the problem
However, after converting the video to various formats/codecs what made the difference in adding the same video again in the "add new videos" in "manage project" tab.
this begs the question: why am I getting the errors about video format when, in fact, the problem is with file management?
HTH.
kldachun22 commentedon Feb 27, 2026
i meet a simillar problem in DLCrc9. You should choose copy videos when first created project.
ShambreTaylor commentedon Sep 16, 2026
I have the same problem. Originally, it worked, but not on later-added videos. So I created a new project, and neither the new nor the earlier videos worked.
After upgrading had the same issue, commented in #3448
mp4 videos, can be opened in vlc. Debug with example video:
Runtime
DeepLabCut core libraries
GUI libraries
External tools
Recent logs
C-Achard commentedon Sep 16, 2026
Hello @ShambreTaylor, thanks for the report, please see #3448.
Keeping this open until 3.0.2 is released.