Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Are you running ffmpeg from cgi or something? That's normally the only way that ffmpeg would be outputting to that logfile.
Yes, I am making the command call via PHP, so I can just pipe output to /dev/null?
What do you think of the CPU usage of ffmpeg? Is it normal? In some cases 5-10 instances of ffmpeg will run but surely that shouldn't reach 90% CPU usage. AND Webmin does not record this level of usage why?
What you're looking for is 2> as this will redirect stderr. If you just want to turn it off for now then do this in your command call:
ffmpeg blah blah blah 2>/dev/null
It's important for you to know that this isn't fixing the errors, it's just ignoring them. You need to figure out why ffmpeg is outputting so much and fix the root of the problem.
As far as cpu usage, yes, ffmpeg is quite capable of taking up a lot, depending on what you're doing with it. Working with video can be very resource intensive, so don't be surprised when it slows things down. This is why it's probably smarter to not try to do your video processing in realtime.
The following is part of the entry made in the /var/log/httpd/error_log. As you can see its the normal output and that file is full of ffmpegs normal output. Maybe it goes in there because of the warnings that ffmpeg makes about the "output buffer too small"?
That output seems to show that the problem is more with libmp3lame than with ffmpeg. Perhaps the rather low audio bitrate and samplerate have something to do with it. Then again, it could be a bug either in liblame or in the way ffmpeg communicates with it.
I suggest trying some tests. Try encoding to a different format, such as mp2, aac, or ogg. Also try encoding a .wav file with lame directly, using both the same settings, and more normal ones (e.g. 44100 samplerate) and see if you get similar errors.
That output seems to show that the problem is more with libmp3lame than with ffmpeg
You are correct, I have searched around and some of the suggestions from other mailing lists in the past was to upgrade libmp3lame and I have done so but it still persists. I am sure it is a libmp3lame problem but don't know how to fix it. Lucky its not that critical and it at least does convert. But i still need to fix it!
Originally Posted by syg00
It's more likely you've not understood loadavg.
Has nothing to do (directly) with CPU usage - it's the average number of tasks in the runq plus those in uninterruptable sleep.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4391 apache 20 0 26772 7280 2892 R 84.9 0.4 0:02.55 ffmpeg
You are right, I might not have understood correctly. In the above case, I assumed that ffmpeg is making 84.9% usage of the CPU at that instant in time. Please correct me.