RPi-Distro / vlc

GNU General Public License v2.0
41 stars 4 forks source link

High cpu with image demuxer #29

Open SvenVD opened 3 years ago

SvenVD commented 3 years ago

Hi,

On my raspberry pi 2 I got 100% usage of one core when trying to display an image.

For example the following commandcvlc https://images.rpisurv.net/example.png

Is this a bug or is there any way to reduce the cpu usage?

Thanks

jc-kynesim commented 3 years ago

I can't argue that that isn't undesirable behaviour. It looks like VLC is treating a still image as if it was a video that just happens to be playing the same picture over and over and I'm going to guess repeats the scaling & colour conversion for every "frame". This is effectively free on any faintly recent x86 but not on a Pi2. That being said it is an issue with the base VLC, not something we've done to it and it is unlikely to be something that is easy to fix without breaking something else so if we come across an easy fix we'll do it but I'm not hopeful. Sorry.