Gentoo Archives: gentoo-user

From: Kfir Lavi <lavi.kfir@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Slow not in sync movie playing with mplayer2, ffmpeg, x264 with intel core i5
Date: Sun, 19 Feb 2012 09:01:00
Message-Id: CAHNvW1+N5M=qZXzTcWS9nJhHz8NYeJOCfGhGdANim+XT7QDF4A@mail.gmail.com
In Reply to: Re: [gentoo-user] Slow not in sync movie playing with mplayer2, ffmpeg, x264 with intel core i5 by Walter Dnes
1 On Mon, Feb 13, 2012 at 7:34 AM, Walter Dnes <waltdnes@××××××××.org> wrote:
2
3 > On Sun, Feb 12, 2012 at 06:57:08PM +0200, Kfir Lavi wrote
4 >
5 > > No, it is all the videos that are 720p x264.
6 >
7 > Is this a recently installed Gentoo? I had a similar problem trying
8 > to play 1080i TV and also with NHL Gamecenter Live. A fresh install
9 > will have almost all binaries using generic lowest-common-denominator
10 > 32 or 64 bit code, so that it will work on every machine with the target
11 > CPU. Once I did "emerge system" + "emerge world" + rebuilt kernel and
12 > rebooted, it ran fine (for a 4+ year old Dell). Now it can handle at
13 > least the minimum speed for NHL Gamecenter Live, and play 1080i from the TV
14 > tuner. For CPU flags I use...
15 > CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe"
16 > CXXFLAGS="${CFLAGS}"
17 >
18 > If that isn't your problem, can we see output from the 2 commands...
19 >
20 > cat /proc/cpuinfo (1 core is enough, thanks)
21 >
22 > head /proc/meminfo (does Memtotal: match what your BIOS shows on bootup?)
23 >
24 > --
25 > Walter Dnes <waltdnes@××××××××.org>
26 >
27 > I did a compilation from the start. 3 times @system and 1 time @world.
28 I have used -march=native -mfpmath=sse and now movies do play well.
29 I'm still not sure why I had this problem.
30 I did use mmx and sse use flags, but did removed them.
31 Is it possible that my gcc didn't created good efficient binary before I
32 used recompiled world?
33 I really don't think so.
34 I didn't use -march=native, but did find what my gcc find as native
35 documented here:
36 http://gentoo-what-did-you-say.blogspot.com/2011/07/finding-cpu-flags-using-gcc.html
37
38 Regards,
39 Kfir

Replies