VLC 3.0.6 uses CPU even when "idle"

macOS specific usage questions
kneutron
New Cone
New Cone
Posts: 1
Joined: 10 Apr 2019 17:05

VLC 3.0.6 uses CPU even when "idle"

Postby kneutron » 10 Apr 2019 17:28

OS: El Capitan 10.11
HW: 2008 iMac Core 2 Duo @ 2.8GHz, 6GB RAM, booting off an external SSD - Samsung T5 500GB

--VLC 3.0.6 Vetinari - when I have a couple of videos (.mp4 and .webm) loaded in the playlist queue, VLC shows as using ~5% CPU when doing nothing (video not playing, just showing the playlist.) Right now I have (7) .mp4 files in the queue and VLC is showing 13.5% to 14% CPU usage in 'top' even though it should be idle.

--Anyone else seeing this? Occasionally it prevents the iMac from sleeping when the display is put to sleep (running up the electricity bill.)

--I'm also experiencing a problem when playing DVDs - having to use the "F" and "G" keys to adjust audio delay up to (2) seconds to sync the audio.

--Workaround - I wrote a small script to stop/resume CPU for VLC, hope it helps... FYI when CPU is stopped for VLC you will see a beachball when the mouse is in its window.

BEGIN vlc-stop-resume.sh

Code: Select all

#!/bin/bash # VLC uses CPU when videos are loaded in playlist, even supposedly Idling # Temp. suspend CPU and resume when needed # pass any arg e.g. '1' to resume CPU # REF: https://www.ostechnix.com/suspend-process-resume-later-linux/ myvlc=`pidof VLC` if [ "$1" = "" ]; then kill -STOP "$myvlc" else kill -CONT "$myvlc" fi echo 'STAT should be T for stopped process' # custom output ps -exf -o pid,user,stime,time,command,pri,ni,state "$myvlc"
--Save ^^ to ~/bin and don't forget to chmod +x it :mrgreen:

Mostafa_Zeinali
New Cone
New Cone
Posts: 1
Joined: 24 Jul 2019 12:21

Re: VLC 3.0.6 uses CPU even when "idle"

Postby Mostafa_Zeinali » 24 Jul 2019 12:28

I have the exact same issue here:
Specs: Asus, G750JW,
Processor Intel(R) Core(TM) i7-4700HQ CPU @ 2.40GHz, 2401 Mhz, 4 Core(s), 8 Logical Processor(s)
OS Name Microsoft Windows 10 Enterprise
Version 10.0.17763 Build 17763
Installed Physical Memory (RAM) 16.0 GB

VLC Version is: 3.0.7.1 Vetinari

When I open VLC, with an empty playlist, everything is fine. As soon as I add mp3 files to the playlist, "without playing any file", CPU usage of VLC goes on 20% and sits at 20%, Memory stays at 17 mb which is normal, and power usage jumps to "very high" and stays there.
And ALL 8 cores jump to 20%,

datihein
New Cone
New Cone
Posts: 2
Joined: 28 Sep 2019 13:06

Re: VLC 3.0.6 uses CPU even when "idle"

Postby datihein » 28 Sep 2019 13:21

I have the same issue on macOS (10.14.6) with VLC 3.0.8. It happens for an individual audio file, or for a playlist of audio files.

If an audio file is paused, then the VLC and coreaudio processes consume a lot of CPU. If an audio file is stopped, then CPU consumption drops to zero or nearly zero.

This is a problem for laptop users (such as myself) because the high CPU consumption quickly drains the laptop battery.

It seems unnecessary for a paused audio playback to be consuming any CPU. Cannot the playback state be saved on pause and restored on resume?

Draika
New Cone
New Cone
Posts: 1
Joined: 13 Nov 2019 15:01

Re: VLC 3.0.6 uses CPU even when "idle"

Postby Draika » 13 Nov 2019 15:03

Same problem in VLC 3.0.7, Ubuntu 18.04 installed via snap
I have a massive playlist and it is eating up half the CPU of my Ryzen 3600X, more than minecraft is. I don't understand why this isn't a bigger issue.

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: VLC 3.0.6 uses CPU even when "idle"

Postby unidan » 14 Nov 2019 11:14

Hi, 3.0.7 is not the last version, please update to the last 3.0.x before reporting.
Otherwise, do you reproduce with 4.0.0 development version ?


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 36 guests