Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-10-2004, 01:25 PM   #1
Registered: Sep 2003
Posts: 163

Rep: Reputation: 30
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?
Old 02-10-2004, 01:30 PM   #2
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
What is it you are doing when it is taking up all that cpu power? Watching a video? Those video codecs are CPU hogs.
Old 02-10-2004, 02:29 PM   #3
Registered: Sep 2003
Posts: 163

Original Poster
Rep: Reputation: 30
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
Old 02-10-2004, 02:49 PM   #4
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
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.
Old 02-10-2004, 04:31 PM   #5
Registered: Sep 2003
Posts: 163

Original Poster
Rep: Reputation: 30
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%.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync reduce cpu usage dtra Linux - Software 0 05-25-2005 09:04 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 09:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 05:45 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 06:55 AM
mplayer - 99% vs 5% cpu usage. freychef Linux - Software 1 01-12-2004 02:42 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration