pi 4 will not play this specific h.265 video

  • So I've used this same Pi to play all kinds of h.265 up to and including 10bit 60fps 4k videos

    This specific video however it will run in to an infinite loop in the debug log of:

    Code
    2020-09-01 00:12:31.668 T:1667232624   ERROR: CMMALPool::GetBuffer - failed pool:0x99359c00 omvb:(nil) mmal:0x959f5090 timeout:500
    2020-09-01 00:12:31.668 T:1667232624   ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time
    2020-09-01 00:12:31.668 T:1667232624   ERROR: ffmpeg[635FF370]: [hevc] get_buffer() failed
    2020-09-01 00:12:31.668 T:1667232624   ERROR: ffmpeg[635FF370]: [hevc] thread_get_buffer() failed
    2020-09-01 00:12:31.668 T:1667232624   DEBUG: ffmpeg[635FF370]: [hevc] Error parsing NAL unit #0.

    This video will play perfectly on other decoders, including an Intel openelec device. I do have gpu_mem=320 set in the config.txt which was necessary to play a 10bit 4k movie when it had a very similar problem. This file however is a mere 480p. I'm not sure what's different about it.

    The only thing I could guess is: Chroma subsampling : 4:4:4 on the one that won't play - maybe the pi's decoder doesn't support it?

    Attached is a very small 5 second clip of the video element only/audio removed (muxed in to an mkv for convenience)

    Interestingly I also tried this on the latest milhouse build which is a little different, it plays the audio of the proper file while displaying no video (not a black screen, just whatever screen it was on)