|
|
|
|
|
by Daiz
1855 days ago
|
|
To add to the resources here, I also ran into this issue a long time ago myself and wrote this little test tool for it some five years ago[1]: https://daiz.github.io/yuv-to-rgb-in-html5-video/ Sad to see that even today the results don't line up with the expected... and in different ways than before, even? Something the article doesn't touch upon is that colorspace assumptions can also vary between different video formats across browsers (at least back when I made this test), which adds another unfortunate dimension into the color accuracy mess. Anyway, good to see more attention brought on the subject once again, though unlike the article, I would personally say that if we're going to make assumptions in the absence of concrete colorspace information, I think we should rather consistently assume BT.709 rather than BT.601, for the simple reason that we can reasonably expect that basically any camera in existence today would likely record in BT.709 by default, and I'd expect most editing software with their HD presets and whatnot to default to BT.709 as well. [1] A related comment I wrote on HN about it back in the day: https://news.ycombinator.com/item?id=12022163 |
|