meta-pytorch / meta-pytorch/torchcodec

Option to choose output color format

Open
#516 3 comments 0 reactions 0 assignees View on GitHub

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

Hi is it possible to stop the decoder from converting a video from bgr to rgb?

Motivation, pitch

Sometimes it is better to keep the images in bgr especially if running a live system at fast speed because cameras usually output frames in bgr. I would like the decoder to replicate that behaviour.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the decoder path that converts frames from BGR to RGB and review how output formats are represented. Confirm the desired behavior for camera-originated frames and add coverage for selecting BGR output. Done means callers can choose BGR without automatic conversion while existing RGB behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
audio-video-rtc
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.