Change CPU decoder output frames to use ITU709 colour space
Open
@bjuncek is already working on this.
Since Jan 25, 2022.
module: video
- Dominant language
- Python
- Stars
- 17.9k
- Forks
- 7.3k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 13
Description
GPU decoder outputs frame with ITU709 colour space, whereas CPU decoder uses the default colour space. We need to change the CPU decoder frames to use ITU709 colour space to match the GPU decoder output.
For verification, we could use pyav like this:
av_frames = torch.tensor(av_frame.to_rgb(src_colorspace="ITU709").to_ndarray())
and compare the CPU decoded frames against av_frames.
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.
Assessment
This issue has not been assessed yet.