media-tools
media-tools copied to clipboard
Feature request: Define specific pixel/color format combinations to test instead of checking all possible permutations
It's fantastic that the tool exposes all possible pixel format and colorimetry options for AV1 & VP9 codecs (e.g. bit depth, chroma subsampling, color primaries, matrix, etc), but right now selecting any of them results in media capabilities checks being performed for all possible permutations of the selected options. Selecting too many options can result in so many permutations that performing all those checks crashes the browser. However, a lot of those generated permutations don't actually make sense or need to be tested in real-world contexts. For example, BT.709 color primaries will likely never be used together with ST.2084 PQ transfer function; 8-bit coding will likely never be used with HDR/WCG video (BT.2020, ST.2084, HLG), etc.
I think it'd be more useful if, instead of generating all possible permutations of the selected options, the tool allowed the user to define specific combinations of pixel format and colorimetry options to test for, similar to the way a user would define an encoding profile in a video encoding tool. That'd significantly reduce computing resources necessary to perform all the tests, while also generating a results table that's much easier to read and interpret.