dmlc / dmlc/decord

Frame accessing from H.265(HEVC) videos issues

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

Description

I get different frames count when using decord and opencv to access information from HEVC videos. Also, when I try to load certain segment from video, the clip is totally different compared to moviepy which receives time stamp directly.

`vr = de.VideoReader(video_path)`
`cap = cv2.VideoCapture(video_path)`
`num_frames = cap.get(cv2.CAP_PROP_FRAME_COUNT)`
`if int(num_frames) != len(vr):`
` print(num_frames)`
` print(len(vr))`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the frame-count comparison between decord's VideoReader and OpenCV's cv2.VideoCapture on the reported H.265/HEVC videos. Compare the segment selected by decord with moviepy's timestamp-based result, then determine the expected frame count and clip boundaries; the issue is resolved when these behaviors are consistent or the codec limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
opencv, python
Domain
computer-vision
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.