Gentoo Archives: gentoo-user

From: Daniel Troeder <daniel@×××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Why does high-res video drop frames at 60% CPU?
Date: Wed, 07 Jul 2010 11:28:04
Message-Id: 4C34648F.3040506@admin-box.com
In Reply to: Re: [gentoo-user] Why does high-res video drop frames at 60% CPU? by App Deb
1 On 07/07/2010 12:35 PM, App Deb wrote:
2 > You have dual core so 60% means:
3 >
4 > 50% (full one core) is for decoding,
5 >
6 > and the rest 10% is for audio, resizing etc.
7 Oh - didn't think about this - yes... you could be seeing the wrong
8 thing in "top". If you have more than 1 CPU/Core you should push "1" in
9 "top" to get separate statistics per CPU/Core. Push "W" to save your
10 settings. (Use "s" to change statistics collection time, "1" sec. is good.)
11
12 Use "htop" to see threads. As far as I know "top" won't show those. So
13 you can't check if your multi-threaded mplayer is really using more than
14 1 thread/process.
15
16 BTW: On my core2duo 2,4 GHz I have no problems watching H.264 encoded
17 1080p videos with AAC sound. All decoding is done in software. When I
18 use original mplayer 720p is possible without problem, 1080p only with
19 low bitrate. For high bitrate 1080p I need the mt-version.
20
21 Daniel
22
23
24 >
25 > You can't play the video correctly because your "decoder" is not
26 > multithreaded and uses just the one CPU at its fullest.
27 >
28 > Try using multithreaded version of mplayer "mplayer-mt" (in some overlay
29 > probably) with "lavdopts=threads=2" in mplayer config.
30 >
31 > On Wed, Jul 7, 2010 at 5:17 AM, Grant <emailgrant@×××××.com
32 > <mailto:emailgrant@×××××.com>> wrote:
33 >
34 > I've been using VDPAU acceleration to play back Blu-Ray rips for a
35 > while, but the extra layer is getting to be quite a hassle so I'm
36 > trying to get decent performance via software decoding. It has
37 > actually come a long way since the last time I tried and playing
38 > Blu-Ray rips via mplayer is nearly watchable. I'm using a dual-core
39 > 3.1Ghz CPU and one of the cores is only taxed up to 60% during
40 > playback, but frames are still being dropped constantly. Does anyone
41 > know where the bottleneck might be?
42 >
43 > - Grant
44 >
45 >

Replies

Subject Author
Re: [gentoo-user] Why does high-res video drop frames at 60% CPU? Mick <michaelkintzios@×××××.com>