Page 1 of 1

ffmpeg taking CPU

PostPosted: Wed Feb 07, 2018 7:36 pm
by jaspersk
I have had my system running for about a month and a half. When I "check updates" it says I am running the latest version. In the past, I don't recall ffmpeg taking any CPU. It was only xeoma taking 15-20% CPU. However, now when I look at top ffmpeg is taking 30% in addition to xeoma. I restarted xeoma core service and it did not help. I assume this is not normal since it was not the case in the past. Can you help me figure out what might be going on? No one is connected to the system so I don't know what is going on. The system is running on Ubuntu 16.04 headless server.

Re: ffmpeg taking CPU

PostPosted: Wed Feb 28, 2018 4:27 pm
by jaspersk
For anyone else checking this post, I determined that ffmpeg CPU was due to enabling the web server. I deleted the web server and ffmpeg disappeared. It is no longer taking cpu.

So feedback for the developer would be to fix web server so it doesn't work until there is a request at the port. The port that was configured in the Xeoma web server settings was not open on my firewall so I am confident there was no one requesting traffic from the port. Apache and Ngnix don't take CPU unless there is a request for a web page so why was the Xeoma web server eating CPU? Is there something else that I am missing?

Re: ffmpeg taking CPU

PostPosted: Fri Mar 02, 2018 10:34 am
by Admin_P
Hello! Please note the 2 checkboxes in the "Web Server" settings: Turn on the broadcast with sound over WebRTC (Pro only) and Turn broadcasting with sound on (flv). Checking any of those enables ffmpeg required for encoding - this accounts for the additional load.
Thank you for the suggestion, we'll consider enabling ffmpeg only when requests are made via the web port.

Re: ffmpeg taking CPU

PostPosted: Fri Mar 02, 2018 6:16 pm
by jaspersk
Thank you! That makes sense now since I did add sound after the original install

Overall I am very happy with Xeoma and it is working great on a remote VPS.

Re: ffmpeg taking CPU

PostPosted: Wed Mar 07, 2018 9:52 am
by Admin_P
Good to hear! We hope that you'll continue to enjoy Xeoma.