batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
1.85k stars 472 forks source link

[RK3588] H265 Plays in slow motion, ghosting in Kodi #9182

Open mo123 opened 1 year ago

mo123 commented 1 year ago

All video codecs, H264, AV1, Mpeg2/4, VP9 plays correctly hardware accelerated with rkmpp (HW). H265 also plays with rkmpp (HW) codec but in slow motion and video repeating, ghosting. On Armbian it plays normally. This is with the mpp package and patched ffmpeg of Rockchip and enabling DRM Prime Video Acceleration in Kodi Video Settings. https://github.com/rtissera/batocera.linux/commit/de063a6e3d826165118845ffb343cef331b6118d

From Rockchip _According to the log, the MPP works well, but something slow it down in the rendering flow(check the gap between "Received a frame" and "CreateImage").

Could be something related to NV15(NV12_10BIT) rendering or software deinterlacing?

Maybe you can use top to check the CPU usage, and make sure that the hardware IEP(V2) enabled in kernel config and dts_

Mpp and IEP is already enabled in the kernel dts files and Batocera RK3588 config file.

Perhaps the latest kernel update with several GPU, HDMI changes fixes it, Batocera still uses the 5.10 kernel commit from 22 April 2023. https://github.com/stvhay/kernel

I tried to build Batocera with the latest kernel commit above but Batocera Linux only showed the splash screen on Rock5B RK3588 and didn't boot further.

stvhay commented 1 year ago

I had some time to merge some patches to update the kernel, but no time to test. Clearly there is an issue and I need to half split the patches to try the problematic one.  I’ll do my best to make this happen but it might be next week.Sent from my iPhoneOn Jul 1, 2023, at 2:10 PM, mo123 @.> wrote: All video codecs, H264, AV1, Mpeg2/4, VP9 plays correctly hardware accelerated with rkmpp (HW). H265 also plays with rkmpp (HW) codec but in slow motion and video repeating, ghosting. On Armbian it plays normally. This is with the mpp package and patched ffmpeg of Rockchip and enabling DRM Prime Video Acceleration in Kodi Video Settings. @. From Rockchip _According to the log, the MPP works well, but something slow it down in the rendering flow(check the gap between "Received a frame" and "CreateImage"). Could be something related to NV15(NV1210BIT) rendering or software deinterlacing? Maybe you can use top to check the CPU usage, and make sure that the hardware IEP(V2) enabled in kernel config and dts Mpp and IEP is already enabled in the kernel dts files and Batocera RK3588 config file. Perhaps the latest kernel update with several GPU, HDMI changes fixes it, Batocera still uses the 5.10 kernel commit from 22 April 2023. https://github.com/stvhay/kernel I tried to build Batocera with the latest kernel commit above but Batocera Linux only showed the splash screen on Rock5B RK3588 and didn't boot further.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

Bluesmanuk commented 1 year ago

I also noticed the same issues when trying out the last beta on the Orange Pi 5.

But I also noted another issue. When playing some 8K sample files, whilst the videos played, they play zoomed in, so not all of the image can be seen.

It is great to see a big step forward though with the hardware acceleration working well with most content.

rtissera commented 6 months ago

RK3588 mainline linux kernel is coming along nicely, this is the proper fix we have to wait for. We can probably also have a look at more recent kernel and userspace patches from LibreElec team as they mostly focus on multimedia content / Kodi.