Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mplayer/mencoder only uses one core?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Oak
Apprentice
Apprentice


Joined: 25 Jan 2005
Posts: 239
Location: Sweden

PostPosted: Sun Feb 25, 2007 5:17 pm    Post subject: mplayer/mencoder only uses one core? Reply with quote

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
View user's profile Send private message
The_P
Apprentice
Apprentice


Joined: 13 Mar 2004
Posts: 248

PostPosted: Sun Feb 25, 2007 5:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Oak
Apprentice
Apprentice


Joined: 25 Jan 2005
Posts: 239
Location: Sweden

PostPosted: Sun Feb 25, 2007 6:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
The_P
Apprentice
Apprentice


Joined: 13 Mar 2004
Posts: 248

PostPosted: Sun Feb 25, 2007 6:03 pm    Post subject: Reply with quote

I just found this with a bit googleing.
http://lists.mplayerhq.hu/pipermail/mencoder-users/2007-January/004960.html
Back to top
View user's profile Send private message
Oak
Apprentice
Apprentice


Joined: 25 Jan 2005
Posts: 239
Location: Sweden

PostPosted: Sun Feb 25, 2007 6:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum