With MPEG2 HW decoding enabled on LE 12 (nightly, 08/29) certain MPEG2 videos result in the following errors from the kernel:
Sep 04 07:02:37 LibreELEC kernel: sun50i-iommu 30f0000.iommu: Page fault for 0x0000000000007000 (master 1, dir rd)
Sep 04 07:02:39 LibreELEC kernel: cedrus 1c0e000.video-codec: frame processing timed out!
And in Kodi the experience is a spinning disc while the player is trying to start the video. If you use CEC remote it will result in a Kodi lock-up (but shell is still responsive), if you try to stop and restart the video it will also result in a Kodi lock-up. I tried doing a video clip for uploading with:
ffmpeg -ss 00:00:00 -to 00:01:00 -i mpeg2-h6-decode-full.mkv -c copy -map 0 mpeg2-h6-decode.mkv
And it result in these warnings in ffmpeg and a working video in Kodi (original video still does not work and is 2GB):
[matroska @ 0x556df9223f40] Non-monotonous DTS in output stream 0:0; previous: 2018, current: 1951; changing to 2018. This may result in incorrect timestamps in the output file.
[matroska @ 0x556df9223f40] Non-monotonous DTS in output stream 0:0; previous: 2018, current: 1985; changing to 2018. This may result in incorrect timestamps in the output file.
Here is the sample, copied with dd partially, that results in this issue:
Thanks chewitt for the tip.