VLC 2.0 has 20% higher CPU usage?

macOS specific usage questions
JohnMcPayne
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Feb 2012 12:51

VLC 2.0 has 20% higher CPU usage?

Postby JohnMcPayne » 21 Feb 2012 17:38

I tried several video files and formats and noticed that the new version has a significant higher cpu usage than the previous version.
Can someone else look at this?
I had CPU usage around 35% with the old version, which was my main reason to use VLC because of its very low power consumption.
Now once a month I use to travel by train, it lasts 4h30min and till now, every time my battery was full enough for an additional hour. After I updated to 2.0 my Macbook Pro went into Sleep after 4 hours with an empty battery. So I tried to figure out why. I found out that now playing video files the CPU consumption has risen to about 55%.

If this is the case, then my question to the developers:
Why?

Please try to keep power consumption as low as possible.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 2.0 has 20% higher CPU usage?

Postby Jean-Baptiste Kempf » 21 Feb 2012 17:51

Can you try to delete libsamplerate_plugin.dylib and check if this is better?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

JohnMcPayne
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Feb 2012 12:51

Re: VLC 2.0 has 20% higher CPU usage?

Postby JohnMcPayne » 21 Feb 2012 18:21

Hey!

I deleted the file and this solved the problem. Now I have 35-40% CPU usage. Thank you.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 2.0 has 20% higher CPU usage?

Postby Jean-Baptiste Kempf » 21 Feb 2012 19:06

Please, can you try deleting libspeex_dsp_plugin.dylib too to see if the CPU gets lower?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

JohnMcPayne
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Feb 2012 12:51

Re: VLC 2.0 has 20% higher CPU usage?

Postby JohnMcPayne » 21 Feb 2012 19:18

There is no such file:

libspeex_plugin.dylib and libspeex_resampler_plugin.dylib, but no such with dsp.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 2.0 has 20% higher CPU usage?

Postby Jean-Baptiste Kempf » 22 Feb 2012 01:41

libspeex_resampler_plugin.dylib one and please report.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

JohnMcPayne
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Feb 2012 12:51

Re: VLC 2.0 has 20% higher CPU usage?

Postby JohnMcPayne » 22 Feb 2012 09:38

It jumps around, between 30% and 40%. It seems to stay around 30% more often than before. What are those plugins for? Is this a bug?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 2.0 has 20% higher CPU usage?

Postby Jean-Baptiste Kempf » 22 Feb 2012 12:44

So, this is better, right?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

JohnMcPayne
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Feb 2012 12:51

Re: VLC 2.0 has 20% higher CPU usage?

Postby JohnMcPayne » 22 Feb 2012 13:18

Yes, right. Deleting the first file helped the most -> about 10% fewer CPU usage.
Deleting the second file helped a little -> about 3-5% fewer CPU usage.

Deleting both I am back at the average CPU usage of the previous version of VLC.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 2.0 has 20% higher CPU usage?

Postby Jean-Baptiste Kempf » 22 Feb 2012 14:25

It should be lower than previous version, in fact.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

RTouris
New Cone
New Cone
Posts: 6
Joined: 13 Nov 2005 17:49
Location: Greece
Contact:

Re: VLC 2.0 has 20% higher CPU usage?

Postby RTouris » 22 Feb 2012 20:32

I also noticed such a behaviour from v. 2.0...I deleted all the old prefs via the script provided in the image and launched the new version / compared on similar files...On a MacBookPro 2,1 (2.33C2D / Radeon X1600) CPU usage went from 15% on v. 1.2.12 up to 30-35% on v. 2.0...Will try the resolution above and report back asap.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 2.0 has 20% higher CPU usage?

Postby Jean-Baptiste Kempf » 23 Feb 2012 02:11

Try to remove libsamplerate_plugin.dylib and libspeex_resampler_plugin.dylib too.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

JohnMcPayne
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Feb 2012 12:51

Re: VLC 2.0 has 20% higher CPU usage?

Postby JohnMcPayne » 23 Feb 2012 11:26

Can you recommend something I could try? Maybe if I completely remove VLC and reinstall new.

Should I only drag the App into the trash bin or are there any hidden pref files I should delete by hand?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 2.0 has 20% higher CPU usage?

Postby Jean-Baptiste Kempf » 23 Feb 2012 18:17

Do what I said. Remove those 2 modules and check again.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

misterpieter
New Cone
New Cone
Posts: 1
Joined: 24 Feb 2012 02:53

Re: VLC 2.0 has 20% higher CPU usage?

Postby misterpieter » 24 Feb 2012 03:03

i have a simular problem: my macbook is much slower with the new VLC
but I cant seem to find the 'libsamplerate_plugin.dylib' on the mac i even searched in the hidden files...
where is it located?

kdean
Big Cone-huna
Big Cone-huna
Posts: 629
Joined: 05 Dec 2007 17:47
VLC version: 2.2
Operating System: Mac OS
Location: Orlando, FL

Re: VLC 2.0 has 20% higher CPU usage?

Postby kdean » 24 Feb 2012 07:18

Right-click on VLC application and select "Show Package Contents", then go to Contents/MacOS/plugins

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 2.0 has 20% higher CPU usage?

Postby Jean-Baptiste Kempf » 24 Feb 2012 07:57

Ok, another great solution seems to be to use the linear profile and not the main one for the resampler.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

JohnMcPayne
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Feb 2012 12:51

Re: VLC 2.0 has 20% higher CPU usage?

Postby JohnMcPayne » 24 Feb 2012 13:21

@Jean Baptiste:
As I mentioned above I already deleted both files, but I have slightly higher CPU usage as with the previous version. I will try to use the linear profile.

Do I get a lesser quality with this profile?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 2.0 has 20% higher CPU usage?

Postby Jean-Baptiste Kempf » 24 Feb 2012 15:27

It should be better quality than without those 2 dylibs.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

JohnMcPayne
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Feb 2012 12:51

Re: VLC 2.0 has 20% higher CPU usage?

Postby JohnMcPayne » 24 Feb 2012 16:47

Yea, this helped. Thank you!
Now I have under 30% CPU usage most of the time. So the CPU usage change between VLC 1.xx and 2.0 is just a matter of sound quality, is that right?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 2.0 has 20% higher CPU usage?

Postby Jean-Baptiste Kempf » 24 Feb 2012 17:22

Yea, this helped. Thank you!
Now I have under 30% CPU usage most of the time. So the CPU usage change between VLC 1.xx and 2.0 is just a matter of sound quality, is that right?
Yes.
Can you confirm the results with SRC and linear? and Zero Order Hold?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

JohnMcPayne
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Feb 2012 12:51

Re: VLC 2.0 has 20% higher CPU usage?

Postby JohnMcPayne » 24 Feb 2012 18:07

Yes, I can confirm that.

With Zero Order Hold I get the best results which vary between 25-30% load.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 2.0 has 20% higher CPU usage?

Postby Jean-Baptiste Kempf » 24 Feb 2012 18:38

That would be even lower than 1.1.11 ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

JohnMcPayne
Blank Cone
Blank Cone
Posts: 16
Joined: 21 Feb 2012 12:51

Re: VLC 2.0 has 20% higher CPU usage?

Postby JohnMcPayne » 24 Feb 2012 18:42

Yes.
I had about 30% with 1.x.x.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 2.0 has 20% higher CPU usage?

Postby Jean-Baptiste Kempf » 24 Feb 2012 18:43

Good. We seem to have a solution then... :)
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 23 guests