meta-pytorch / meta-pytorch/torchcodec
Add frame index to output with metadata.
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 125
- Avg merge
- 22h 47m
- Merged PRs (30d)
- 54
Description
🚀 The feature
Currently, VideoDecoder.get_frame_at() returns a Frame which has the decoded data as a tensor, the pts in seconds and the duration in seconds. We should also return the frame index.
Motivation, pitch
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the VideoDecoder.get_frame_at() entry point and inspect the Frame structure it returns. Trace how decoded data, PTS, and duration are populated, then verify that the returned frame also exposes its frame index while preserving the existing metadata.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100