LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 02-10-2004, 12:25 PM   #1
taoweijia
Member
 
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?
thanks
Jeff
 
Old 02-10-2004, 12:30 PM   #2
jtshaw
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, 01:29 PM   #3
taoweijia
Member
 
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, 01:49 PM   #4
snacky
Member
 
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, 03:31 PM   #5
taoweijia
Member
 
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%.
 
  


Reply



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 08:04 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08: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 04:45 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM
mplayer - 99% vs 5% cpu usage. freychef Linux - Software 1 01-12-2004 01:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:11 PM.

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