vtdec: Seeking sometimes freezes output and causes kVTVideoDecoderBadDataErr
When using gst-play
with some files, in my case a HDR10 60fps 4K test clip from the Kodi samples library, seeking forward (2+ times for this example) causes vtdec
to get into a bad state where output frames are empty and the output callback signals kVTVideoDecoderBadDataErr
infinitely. When looking at the output, every few seconds a frame or two will appear, but it's frozen otherwise.
Note: This only happens if hardware acceleration is enabled. Software decoding works fine.
!6446 will make things a bit better (should error out at some point instead of just freezing and waiting until input runs out), but the issue still stands.
For the record, when using avdec_h265
no such issue can be seen.
Setup
- Operating System: macOS Sonoma 14.4
- Device: MacBook Pro (M1 Pro)
-
GStreamer Version: latest
main