dmlc / dmlc/decord

DECORDArrayCopyFromTo failed reading video

Open
#336 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.5k
Forks
232
PR merge metrics
No merged PRs in 30d

Description

/github/workspace/src/runtime/ndarray.cc:171: Check failed: from_size == to_size (20736 vs. 15552) DECORDArrayCopyFromTo: The size must exactly match

Got this error when reading a 12 frame small video with resolution 72 x 72.

I can read it successfully using cv2, got 3 channel video.
But when I use decord, it gaves me 4 channel video and failed when I call `vr.get_batch([0, 1, 2, 3])`

![Image](https://github.com/user-attachments/assets/578f794f-3333-4cca-9706-0c1c57e12a5a)

![Image](https://github.com/user-attachments/assets/0b59dd53-7693-4190-a280-78d69df6df11)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.