OttawaHacker Posted October 3, 2023 Posted October 3, 2023 Since I re-installed 23.8 Jammy with the extra ppa:liujianfeng1994 repo - I haven't been able to play any videos on my OPI5. All players I tried seem to have kernel issues decoding any h264. I've narrowed down the error message to a 4Gb memory limit with the selected version of the drivers but I was wondering if anyone had luck with playback. I had better luck with Jammy 23.4 and I regret upgrading. What is the recommendation? Should I try nightly with 6.6.0-rc1 kernel? I assume this one doesn't need panfork drivers anymore or are there other recommendations for h264 playback? 0 Quote
OttawaHacker Posted October 4, 2023 Author Posted October 4, 2023 I figured out a workaround if anyone else if having this issue. I added the following option in armbianEnv.txt - it will limit your memory to 4gb but fixes video decoding. I believe a real fix for the current 5.10.160 kernel would be an updated version of the panfrost drivers. @amazingfate - any chances you could look into a new build? extraargs="mem=4G" 0 Quote
OttawaHacker Posted October 4, 2023 Author Posted October 4, 2023 5 hours ago, amazingfate said: What video, what player? Any logs? All videos, all players - tried both vlc and mpv and tons of videos. Without the 4G limitation the playback is choppy (one frame every minute + tons of frames skipped) and they end up with all kinds of weird error messages. mpv shows this one [h264_rkmpp @ 0xffff833fb620] Doing slow software conversion The kernel ends up full of these messages Oct 04 01:51:28 kitchen-opi kernel: rga_mm: RGA_MMU unsupported memory larger than 4G! Oct 04 01:51:28 kitchen-opi kernel: rga_mm: scheduler core[4] unsupported mm_flag[0x0]! Oct 04 01:51:28 kitchen-opi kernel: rga_mm: rga_mm_map_buffer map dma_buf error! Oct 04 01:51:28 kitchen-opi kernel: rga_mm: job buffer map failed! Oct 04 01:51:28 kitchen-opi kernel: rga_mm: src channel map job buffer failed! Oct 04 01:51:28 kitchen-opi kernel: rga_mm: failed to map buffer Oct 04 01:51:28 kitchen-opi kernel: rga_job: rga_job_commit: failed to map job info Oct 04 01:51:28 kitchen-opi kernel: rga_job: request[240757] task[0] job_commit failed. Oct 04 01:51:28 kitchen-opi kernel: rga_job: rga request[240757] commit failed! Oct 04 01:51:28 kitchen-opi kernel: rga: request[240757] submit failed! Oct 04 01:51:28 kitchen-opi kernel: [drm:rockchip_vop2_mod_supported] *ERROR* Unsupported format modifier 0x800000100000351 Oct 04 01:51:28 kitchen-opi kernel: [drm:rockchip_vop2_mod_supported] *ERROR* Unsupported format modifier 0x800000100000351 According to this RK3588S Mali-G610 GPU (Orange Pi 5) video playback segfault · Issue #356 · rockchip-linux/mpp (github.com) there are some patches already in the mpp stack to fix that but limiting the memory to 4Gb does work with the current stack as well. 0 Quote
amazingfate Posted October 4, 2023 Posted October 4, 2023 All players based on ffmpeg 4.4 should have this issue. You can try ffplay v6.0: sudo apt install ffmpeg ffplay test.mp4 0 Quote
OttawaHacker Posted October 4, 2023 Author Posted October 4, 2023 2 hours ago, amazingfate said: ffplay test.mp4 Wow yes I can confirm that one works even without the memory limitation. Is there any way to get vlc to use ffmpeg 6? I assume they are linked to avcodec58 instead of avcodec60? I had the video playback working correctly in a previous Jammy version with your previous package. Is the 4Gb memory limit the best solution today? What do you recommend? 0 Quote
amazingfate Posted October 5, 2023 Posted October 5, 2023 A rebuild of vlc or mpv can use the new libavcodec60 package in ppa. I'm going to upload new packages to trigger rebuild. 1 Quote
archetech Posted October 5, 2023 Posted October 5, 2023 WHile your at it can you create a mesa panfork for lunar? Having only jammy is a bummer. Kinetic dont count nobodys using that interim release. 0 Quote
amazingfate Posted October 6, 2023 Posted October 6, 2023 lunar will soon be out of date. I will add support for the next LTS release. 1 Quote
OttawaHacker Posted October 12, 2023 Author Posted October 12, 2023 (edited) On 10/5/2023 at 11:12 AM, amazingfate said: A rebuild of vlc or mpv can use the new libavcodec60 package in ppa. I'm going to upload new packages to trigger rebuild. Million thanks sir! You saved the whole armbian for OPI5, your latest packages work like a charm with VLC - and that is a clean fix. My video playback is perfect again, if not better. Edited October 12, 2023 by OttawaHacker 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.