Jump to content

Poor video decoding performance on RPi4


Recommended Posts

maximilianm
Posted

Hi,
 
I just tried out the new version 3.0.12 on a RPi4 with a fresh Raspbian install. I installed the .deb package and did a rpi-update. The old OSD problem is gone and navigation in the app is smooth. However the playback is not smooth. Its not an extreme stutter but it is noticeable. I enabled the "stats for nerds": It says video render is the (new) libmpv and hardware accel is v4l2m2m-copy. Remarkable is the framedrop counter: it counts multiple frames every second, but 'decoder dropped' is 0. If I set hardware accel to none, the frame drop counter goes up with the same speed, which lets me think that there is no hardware decode in the first place. If I play the exact same URL with mpv (the standalone mpv, not mpv as plugin) I get a really smooth playback without any frames dropped. So apparently mpv can use HW decoding on my setup and therefore emby with libmpv should do so, too.

 

Then I tried an other one and installed Emby Theater form the sources. Like this:

sudo apt-get install nodejs npm git libavformat-dev libmpv1
cd /opt/
sudo git clone https://github.com/MediaBrowser/emby-theater-electron
cd emby-theater-electron
sudo git checkout 3.0.12
sudo npm install electron --unsafe-perm=true
sudo npm install
sudo gcc -Wl,--no-as-needed -shared -lavformat -o node_modules/electron/dist/libffmpeg.so

And run it with 'npm start' (as non-root)... Result: Playback is working with low res videos (480p) only and no HW-accel.

 

I need some help :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...