View previous topic :: View next topic |
Author |
Message |
Oak Apprentice
Joined: 25 Jan 2005 Posts: 239 Location: Sweden
|
Posted: Sun Feb 25, 2007 5:17 pm Post subject: mplayer/mencoder only uses one core? |
|
|
I've tried searching an answer for this with no luck.
I'm running amd64 on a Core2Duo E6600 (2.4 GHz) which works excellent.
It does however seem like mplayer/mencoder only uses one of the cores for playing an encoding.
I'm currently encoding an xvid using mencoder, and according to top this process takes up 99,9%, but since I have a dual core system there should be 2 processes using maximum cpu
There is no problem at all watching a 1080p x264 movie at the same time as encoding an xvid, since the two programs then uses one core each.
Is there someway to configure mplayer to always use both cores? _________________ GCC-4.3.3-r1 - march=core2, gentoo-sources-2.6.30-r2 SMP x86_64 @ Core2Duo 2.4GHz, 4GB RAM |
|
Back to top |
|
|
The_P Apprentice
Joined: 13 Mar 2004 Posts: 248
|
Posted: Sun Feb 25, 2007 5:50 pm Post subject: |
|
|
I'm not sure if I understood you correctly. You just looked how many processes are open to determine if both cores are working?
You can have multiple threads within one process working on different cores. |
|
Back to top |
|
|
Oak Apprentice
Joined: 25 Jan 2005 Posts: 239 Location: Sweden
|
Posted: Sun Feb 25, 2007 6:00 pm Post subject: |
|
|
Ok, maybe I wasn't clear enough. my mencoder process uses 99,9%, but is only using 49.9% of my total cpu usage. I believe that there is some way of configuring mplayer/mencoder for dual-core.
[Edit]
I assume that this means that it's not using both cores.
[/Edit] _________________ GCC-4.3.3-r1 - march=core2, gentoo-sources-2.6.30-r2 SMP x86_64 @ Core2Duo 2.4GHz, 4GB RAM |
|
Back to top |
|
|
The_P Apprentice
Joined: 13 Mar 2004 Posts: 248
|
|
Back to top |
|
|
Oak Apprentice
Joined: 25 Jan 2005 Posts: 239 Location: Sweden
|
Posted: Sun Feb 25, 2007 6:19 pm Post subject: |
|
|
Thanks. I will google some more.
[Edit]
After some reading i found out that one (the only?) solution is to emerge gcc-4.3.0 which has support for the core 2 duo and can optimize mplayer for this.
[/Edit] _________________ GCC-4.3.3-r1 - march=core2, gentoo-sources-2.6.30-r2 SMP x86_64 @ Core2Duo 2.4GHz, 4GB RAM |
|
Back to top |
|
|
|