2 ms·
Yeah, having done some work on this in the past I think both are true: the standard should decode deterministically, but it's also quite complicated, so most of
by pjc50 5y ago
Yeah, having done some work on this in the past I think both are true: the standard should decode deterministically, but it's also quite complicated, so most of them are buggy.
(A colleague of mine filed something like 30% of all the bugs on the H265 bug tracker, for instances where the reference implementation produced different results than the textual specification. Because we'd written a parser for the English text ..)
There is also the concept of a "profile", a set of features which an encoder/decoder may limit itself to on small hardware. http://blog.mediacoderhq.com/h264-profiles-and-levels/ http://blog.mediacoderhq.com/h264-profiles-and-levels/
- josephg 5y agoWhenever I hear things like this I’m surprised there’s no set of reference videos & reference decoded frames. Like: “this video file should decode into this uncompressed video. This video file should decode into this other uncompressed video” - etc, with a large combinations of encoder features. Like a video equivalent of the commonmark test suite[1] I was playing with email parsers a couple of years ago and I still don’t know if my cobbled together email parser works correctly with all emails. 40 years after RFC822 it seems there’s still no standard, reference set of email message test cases to process to verify an email parser is correct & robust. [1] https://spec.commonmark.org/0.30/spec.json https://spec.commonmark.org/0.30/spec.json
- pjc50 5y agoOh, those exist, in fact that's what we were working on making! It's just that they're commercial products e.g. https://www.hhi.fraunhofer.de/en/departments/vca/technologies-and-solutions/h264-avc/h264-bitstream-test-suite.html https://www.hhi.fraunhofer.de/en/departments/vca/technologie... https://www.allegrodvt.com/video-ip-compliance-streams/compliance-streams-validation-verification/h264-avc-elementary-streams/ https://www.allegrodvt.com/video-ip-compliance-streams/compl...