Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-10-2004, 12:25 PM
|
#1
|
Member
Registered: Sep 2003
Posts: 163
Rep:
|
how to reduce cpu usage by mplayer?
i am using mplayer 0.92 version and it is taking 40 % of cpu, having two mplayer instances plus x windows takes 100 percent..... can't stand it...
is there a way to make it less cpu hungry?
thanks
Jeff
|
|
|
02-10-2004, 12:30 PM
|
#2
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
What is it you are doing when it is taking up all that cpu power? Watching a video? Those video codecs are CPU hogs.
|
|
|
02-10-2004, 01:29 PM
|
#3
|
Member
Registered: Sep 2003
Posts: 163
Original Poster
Rep:
|
they are just avi files, encoded by indeo5.....this damn codec caused all these cpu headaches.
once i encoded them with mencoder, they run quite well...
thanks jtshaw for your comments
|
|
|
02-10-2004, 01:49 PM
|
#4
|
Member
Registered: Feb 2004
Distribution: Debian
Posts: 286
Rep:
|
If you have an even slightly modern graphics card, make sure you've got XV support in X, and always use -vo xv. Best done by editing ~/.mplayer/config and writing "vo=xv" in it. Depending on your circumstances, -vo dga or -vo gl might be preferable.
To tell how much of CPU usage is due to decoding video and sound, try "mplayer divxfile.avi -vo null". I'm sure what you'll find is that the overhead is tiny - in theory a p300 could probably play most high resolution divx movies. The real issue is how efficient your display and scaling mechanisms are.
|
|
|
02-10-2004, 03:31 PM
|
#5
|
Member
Registered: Sep 2003
Posts: 163
Original Poster
Rep:
|
it is the indeo5 codec which takes a lot os cpu, after i mencoded the AVIs into ffmpeg, I am happy, cpu usage dropped by 20%.
|
|
|
All times are GMT -5. The time now is 05:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|