Failed to measure duration/frame-count due to broken metadata.
- Dominant language
- C++
- Stars
- 2.5k
- Forks
- 232
- PR merge metrics
- No merged PRs in 30d
Description
I have a video that opencv can read, but the record will report an error, the code is as follows:
`
import time
from decord import VideoReader, cpu
path = r'X:\007\SaveImg\Cuda.mp4'
start = time.time()
vr = VideoReader(path, ctx=cpu(0))
startP = 0
imgs2 = vr.get_batch(range(startP, startP + 512)).asnumpy()
print(imgs2.shape, time.time() - start)
`
Error:
decord._ffi.base.DECORDError: [20:11:48] D:\a\decord\decord\src\video\video_reader.cc:270: [X:\007\SaveImg\Cuda.mp4] Failed to measure duration/frame-count due to broken metadata.
Process finished with exit code 1
The video is in the attachment,And Decord version==0.6.0
https://user-images.githubusercontent.com/46410827/182611605-4d9e3e6f-dd46-4d00-8938-e6f813e29476.mp4
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure with the attached MP4 and start at decord/src/video/video_reader.cc:270, which is named in the error. Trace how duration and frame count are measured for this file, then determine the expected behavior for broken metadata and verify it with an appropriate regression check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100