vtdec: Fails to decode some kinds of 10bit HDR footage
When testing a HDR10 60fps 4K test clip from the Kodi samples library, vtdec
fails to play it completely.
The error message is as follows:
0:00:00.667358334 71926 0x600003f4ad90 ERROR vtdec vtdec.c:1218:gst_vtdec_session_output_callback:<vtdechw0> Error decoding frame -17694
which indicates kVTVideoDecoderReferenceMissingErr
. It's not a critical error, and should ideally be worked around instead of aborting completely. It's of course hard to find any documentation about this error, but VLC for example only restarts the encoding session when this error is encountered.
It's not clear why and when this error can be expected, it definitely doesn't happen for all kinds of HDR 10bit footage (a quick recording of similar kind from a relatively modern iPhone has no issues being played back), but that's the only case where I was able to reproduce it.