Ffmpeg colour bugs

Open
#10 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Domain
documentation

Research direction

Start by reviewing the encoding guide and the linked FFmpeg tickets 9167, 9693, 10000, and 9772, plus the linked Flowframes discussion. The issue covers several color-tagging, extraction, gamma, and colorspace concerns but names no repository files or tests; a contribution would need a decided scope and an agreed definition of done.

Written by the indexing model from the issue text.

Description

So.. Pretty nice guide you have here, but I think you slightly misunderstood the situation.
It is true that "all unspecified things the same" they stick to bt601, but the problem isn't really that there are assumptions about unknown still image formats (or better yet *videos*, because from png to jpg and webp I'm really skeptical any of them wouldn't have pretty rigorously documented default properties).
Everything is kind of a disaster because despite all of this, the program is then completely silent about such decisions (including within the final metadata) - and it is then the video players that have to try to guess what the color matrix is for yuv-rgb conversion.
And this is only one of the many shortcomings.

Long story short we have:

  • files aren't tagged with their colorspace information (and I'd like to remember the SD=601 and HD=709 convention otherwise)
  • unless using zscale, forget about extracting videos to jpeg (unsure about the other way around?)
  • output pngs have wrong gamma (in one of the tags at least? depending on the software you may be good)
  • colorspace and scale are also busted in their own ways with linear gamma conversions

There are too what you could call "slight rounding errors" (the last three links here), but for once they seem pretty minor.

Dominant language
Dockerfile
Stars
56
Forks
8
PR merge metrics
No merged PRs in 30d

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.

More from AcademySoftwareFoundation/EncodingGuidelines

All issues in AcademySoftwareFoundation/EncodingGuidelines

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.