I was experiencing video lag with 60 FPS Youtube videos on Raspberry PI 2 running LibreELEC 9.0. 60 FPS videos were choppy, video lagged behind audio and was completely unwatchable.
After playing around with overclocking settings I have found out that stock RPI2 GPU clock is just a little bit underpowered for 60FPS video. Small overclock should fix this issue.
By default RPI2 GPU clock speed is 250 MHz. By boosting GPU clock to 300 MHz I have solved Youtube 60 FPS video lag.
The overclocking procedure may be a little different depending on your Raspberry PI OS distribution. Only location of
config.txt file might be different, but otherwise fix should be the same.
In my case I’m using LibreELEC:
SSH into your LibreELEC box.
Mount boot partition as Read-Write mode:
mount -o remount,rw /flash
/flash/config.txtwith vi or nano. E.g.
force_turbo=0and set it to
1. Setting it to
1will disable dynamic CPU and GPU frequency scaling. With GPU overclock and dynamic scaling I have experienced the same lag.
gpu_freq=300to overclock your GPU.
/flash/config.txtshould look like this:
... force_turbo=1 gpu_freq=300 ...
Remount boot partition as Read only:
mount -o remount,ro /flash
Reboot your system
Because overclocking is small it should not require overvolting. In case you’re doing more serious overclock you might need to play around with
over_voltage option in
config.txt file. Overvolt at your own risk, because might lead to hardware failure. Read more about overclocking in official RPI documentation
That’s it Youtube 60 FPS video problem should be solved, by small overclock. You can pat yourself on the back, crack open your favorite drink and enjoy fluid 60 FPS Youtube videos.
As always if you have any questions or suggestion, feel free to comment below.