Bad FPS on Raspberry Pi 5

Hi!

I have tried to upload an mp4, 720p video on Anthias player using Raspberry Pi 5. The FPS is very low (around 15-20 FPS). How do I fix this issue? The Pi 5 was connected to a Haier 65’ TV using standard HDMI port and a cooling case. As you see, it doesn’t really utilize the whole RAM. How do I improve the FPS?

@danonchik, let me check this one. How did you install Anthias on your Raspberry Pi 5?
If you installed Anthias on top of Raspberry Pi OS Lite, have you tried increasing the shared memory (SHM_SIZE in bin/upgrade_containers.sh)? If you are to adjust the value of SHM_SIZE, you could re-run ./bin/upgrade_containers.sh.

In the meantime, I’ll take a closer look.

@danonchik, have you tried updating /boot/firmware/config.txt and modify gpu_mem_1024 or gpu_mem (if the former doesn’t work) to a higher value? Make sure to reboot the device after changing the config.

I think you might have a power problem based on the CEC error. Are you using the required recommended 27W power supply for a RPI 5 board?

I will check it in a couple of days. Thanks!

Got it, thanks @danonchik.

Hi,

I do have the same problem. I installed Anthias over Raspi OS Lite 64 bit and everything works fine until the video playback. The video plays with low fps. I tried to increase “gpu_mem_1024=512” and changed “export SHM_SIZE_KB=“$(echo “$TOTAL_MEMORY_KB” * 0.3 | bc | cut -d’.’ -f1)” to “export SHM_SIZE_KB=“$(echo “$TOTAL_MEMORY_KB” * 0.6 | bc | cut -d’.’ -f1)”.

A 720p video plays well, but 1080p has low fps.

But the video playback is still with low fps. Any ideas what may cause the problem?

Thanks.

Have you tried increasing the GPU memory via the boot config file?

  • Edit `/boot/firmware/config.txt` and make sure that a gpu_mem config is present.
  • If not, add the following config: gpu_mem=<desired_memory_in_mib>. For instance, `gpu_mem=2048`.

Thanks for your answer.

I edited the `/boot/firmware/config.txt` an added `gpu_mem=2048`. After a reboot there was no change in the video playback. Low fps as before :frowning:

Edit: I’ve installed VLC-Player on the raspi an played the file with hardware acceleration. The video played well with full fps. Is there an option in anthias the enable hardware acceleration?

@jgims, did you run VLC directly at the host machine?

Videos are being played inside the container so it might have something do with the issue.

Have you tried updating /boot/firmware/config.txt and changed the value of dtoverlay from vc4-kms-v3d to vc4-fkms-v3d?

Yes, VLC was running at the host machine.

I tried to change vc4-kms-v3d to vc4-fkms-v3d in the “/boot/firmware/config.txt”. Now I can’t see the video, only video noise.

@jgims, thanks. You can now revert it to the previous setting.

This is exactly what a recent rework targets. The old way the player drew video was capped at roughly 8 to 12 frames per second, because each frame made a slow round trip through the CPU before being shown. The video path was rebuilt to draw frames directly on the screen (#2975) and to pace them to the display (#3006), which removes that cap. Please update to the latest release and your Pi 5 video should be much smoother. Marking this as solved. If it is still choppy on the latest, share the video details and we will look.

One correction on this thread, because this comes up a lot.

The “CEC error” line in System Info was not evidence of a power problem. Before 2026.08.1 that card was built on libcec, which cannot select the kernel CEC device, so the query often failed and the card reported an error regardless of the display, the cable or the power supply. It told you nothing about the health of the Pi.

That was rewritten in 2026.08.1 on the kernel CEC API. The card now separates the cases: “No CEC display detected” for a display that does not answer CEC, which is normal and not a fault, “No CEC adapter” for hardware with no CEC at all, and “CEC error” only when a query genuinely fails.

If you do want to know whether a Pi 5 is being underpowered, 2026.08.2 added a real check for it. The web interface now warns you when the power supply cannot hold its voltage, based on the under-voltage flags the hardware itself reports. That is the signal to watch, not the CEC card.

For the original question about frame rate, the video rework in my earlier reply is the fix. Current release: Release 2026.08.2 · Screenly/Anthias · GitHub