Jump to content

ffmpeg 95% CPU untilization


Go to solution Solved by Luke,

Recommended Posts

Posted

Discovered a problem the other night.  Was trying to watch a movie on a htpc using Emby Theater.  The video was VERY choppy.  Went down to where the server is stored and heard the fans running wide open.  Pulled up task manager and kept seeing ffprobe.exe and ffmpeg.exe each popping in and out.  When ffmpeg.exe pops in, it eats up 95% of the CPU (2 yr old intel i3).

 

The only way I can stop is to rename the folder these two programs are in.

 

These two programs reside here:

Appdata->Roaming->MediaBrowser-Server->ffmpe->20160410

 

I have to rename the "20160410" folder to make it stop.  I cannot kill the apps sine they keep popping in/out so quickly.  After I reboot the machine, somehow these two programs start popping in and out again.  This happens immediately after a reboot, so no devices are trying to access the server at all.

 

Emby Server is on v3.0.6060.0

 

Log file attached.

 

I keep seeing this over and over and over in the log :

 

2016-08-17 19:40:54.1354 Error App: No playable vobs found in bluray structure, skipping ffprobe.
2016-08-17 19:40:54.2354 Error App: Error getting BDInfo
    *** Error Report ***
    Version: 3.0.6060.0
    Command line: C:\Users\SERVER\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
    Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1
    Processor count: 4
    64-Bit OS: True
    64-Bit Process: True
    Program data path: C:\Users\SERVER\AppData\Roaming\MediaBrowser-Server
    Application Path: C:\Users\SERVER\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe
    Unable to locate BD structure.
    System.Exception
       at BDInfo.BDROM..ctor(String path)
       at MediaBrowser.MediaEncoding.BdInfo.BdInfoExaminer.GetDiscInfo(String path)
       at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.GetBDInfo(String path)

 

server-63607059510.txt

Posted

What exactly is the problem?

Posted

So you get errors because you're renaming a vital part of Emby Server, just because that part is using a lot of CPU which is totally normal? :lol::rolleyes:

Posted (edited)

Rms8 it sounds as though there was a scan running in your library.

Ffprobe will usually run during a library scan.

 

Ffmpeg will hog all it can from your CPU, this is why the emby team use it and kill in your processes. That is what you are witnessing.

 

As a side note: While transcoding, ffmpeg will go hard on your CPU until it has completed the transcode.

 

At least that is what it sounds like is happening to me.

 

Don't rename the folder, and let the scan finish.

Edited by chef
Posted (edited)

So what most are saying is that some scan is taking place, and that scan uses ffmpeg.exe?  What scan might this be?  And why would it utilize 95% of my CPU, essentially disabling the entire machine from doing anything else?

 

 

I rebooted the server and the 2 programs again were consuming 95-97%.

 

I did notice that it was ~ 35% into a Library scan.  So I let it finish to see if everything would throttle down and return to normal.

 

About an hour later all was normal.

 

Thanks!

Edited by rms8
Posted

The scan uses ffmpeg and ppprobe for media analysis and image extraction. You may want to go into the metadata settings and disable features that you don't care about

Posted (edited)

The scan uses ffmpeg and ppprobe for media analysis and image extraction. You may want to go into the metadata settings and disable features that you don't care about

 

 

Okay, so I thought it was "resolved" or at least explained...

 

 

I walked into the room with the server and heard the fans ramping up and down...up and down......opened task manager and saw the CPU keep peaking at 100% over and over again.  This time there were 2 instances of ffprobe.exe, and that would go away immediately followed by ffmpeg.exe.

 

So, I opened the dashboard to see if any scheduled tasks were running.  This time I could see no tasks running, yet something was causing 100% CPU utilization.

 

What can I do to stop this behavior?

 

 

I had to create a new folder and move ffprobe.exe and ffmpeg.exe into it to stop the programs from constantly running and running the CPU at 100%.  I could not see anything running from the server dashboard, so I do not know why they keep running.

server-63607101646.zip

Edited by rms8
  • Solution
Posted

The latest stable release has an issue causing folder rips to be reprobed on every scan. it is resolved for the next release.

  • Like 2
Posted

The latest stable release has an issue causing folder rips to be reprobed on every scan. it is resolved for the next release.

okay.

 

Is there a beta I can load which has this fix already?

 

If not, I'll just keep those programs in a different folder.  I'll move them back once the load containing the fix can be applied.

 

thanks luke!

Happy2Play
Posted

Yes, you can change your auto-update level to beta (Dashboard-Settings-Automatic Updates-Automatic update level).

 

You can see all the changes here.

AFFASocial
Posted (edited)

I have fixed many of these issues as I explained in a previous POST  was using system explorer to tame and manage many processes and which core to use for certain apps,  im now using Process Explorer as it does not hang ,,,,  one thing i discovered  is if most all other apps  like say freemake, when compiling movies while the server is running,  I have concluded that most all other apps are assignrd to either core 2 and 3  or set other apps to a single core either core 2 or 3 and I have clearly discovered if any app is specifically set to only core 4 the system will bog  down even if its using low cpu and low memory under 30%  I hope this can shed some light   KUDOS  from AFFA the SYSTEM Stresser   :)

 

also I have set many system apps like services css.exe etc to idle as apposed to normal and this to makes a huge difference. a brief example

is I run a Email Server, xENFORO, WINGFTP, LOARAGON= APACHE MYSQL PHP, AND A PRIVATE local search, and Emby and when im doing nothing except running all the server apps my system runs at 0 to 2% cpu  and 18% memory at all times  

 

here is example of a load on my system and everuthing still runs lightning fast

 

usage.jpg

Edited by cnjnorton
Posted

I have fixed many of these issues as I explained in a previous POST  was using system explorer to tame and manage many processes and which core to use for certain apps,  im now using Process Explorer as it does not hang ,,,,  one thing i discovered  is if most all other apps  like say freemake, when compiling movies while the server is running,  I have concluded that most all other apps are assignrd to either core 2 and 3  or set other apps to a single core either core 2 or 3 and I have clearly discovered if any app is specifically set to only core 4 the system will bog  down even if its using low cpu and low memory under 30%  I hope this can shed some light   KUDOS  from AFFA the SYSTEM Stresser   :)

 

also I have set many system apps like services css.exe etc to idle as apposed to normal and this to makes a huge difference. a brief example

is I run a Email Server, xENFORO, WINGFTP, LOARAGON= APACHE MYSQL PHP, AND A PRIVATE local search, and Emby and when im doing nothing except running all the server apps my system runs at 0 to 2% cpu  and 18% memory at all times  

 

 

My server has literally nothing but Emby Server and Firefox core installed on it.  It's a bare bones install.  Not even Win7SP1 is installed.  Just the very basics.

 

 

I have loaded the Beta, and for now it appears to be running smoothly.  I'll check it out later today to see if those two programs start popping in/out again.

AFFASocial
Posted

I added a picture with everything running not just EMBY and im compiling a 1920x1080p full screeen movie  and all my servers soft runs as if it is without the LOAD

Posted (edited)

The latest stable release has an issue causing folder rips to be reprobed on every scan. it is resolved for the next release.

Ah ha! So don't worry rms8 you weren't losing your mind! Well done!

Edited by chef

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...