Unable to load frame N from MediaVideo #1981
-
Hi, I am encountering an issue while I am trying to run the model to get inferences over a full video (.avi). Specifically I get 'Unable to load frame N from MediaVideo' towards the last frame. I have already tried to run rencode the video through ffmpeg, but I am still running into this issue. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thank you for starting a new discussion! We appreciate your input and will review it soon. Warning A friendly reminder that this is a public forum. Please be cautious when clicking links, downloading files, or running scripts posted by others.
Stay safe and happy SLEAPing! Best regards, |
Beta Was this translation helpful? Give feedback.
Hi @Thomasbush9,
Please let us know your installation method / environment info. Also please provide the full error message.
Here are some things you can try:
Verify Video Integrity: Even after re-encoding, the video might still contain corrupted frames. You can check for any errors in the video file using ffmpeg:
ffmpeg -v error -i input.avi -f null - 2>error.log
This command will log any decoding errors to
error.log
. If there are issues, consider removing or repairing the problematic frames.Inspect Frame N: It might help to extract frame N directly to see if it can be read:
ffmpeg -i input.avi -vf "select=eq(n\,N)" -vframes 1 frameN.jpg
If this fails, the frame might be corrupted.
Let …