From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-135131-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1Rz2dg-0003ny-C0
	for garchives@archives.gentoo.org; Sun, 19 Feb 2012 09:01:00 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 4FBCEE0B67;
	Sun, 19 Feb 2012 09:00:49 +0000 (UTC)
Received: from mail-tul01m020-f181.google.com (mail-tul01m020-f181.google.com [209.85.214.181])
	by pigeon.gentoo.org (Postfix) with ESMTP id 8C97CE097E
	for <gentoo-user@lists.gentoo.org>; Sun, 19 Feb 2012 08:59:48 +0000 (UTC)
Received: by obbup10 with SMTP id up10so6833412obb.40
        for <gentoo-user@lists.gentoo.org>; Sun, 19 Feb 2012 00:59:47 -0800 (PST)
Received-SPF: pass (google.com: domain of lavi.kfir@gmail.com designates 10.60.8.197 as permitted sender) client-ip=10.60.8.197;
Authentication-Results: mr.google.com; spf=pass (google.com: domain of lavi.kfir@gmail.com designates 10.60.8.197 as permitted sender) smtp.mail=lavi.kfir@gmail.com; dkim=pass header.i=lavi.kfir@gmail.com
Received: from mr.google.com ([10.60.8.197])
        by 10.60.8.197 with SMTP id t5mr7826994oea.3.1329641987969 (num_hops = 1);
        Sun, 19 Feb 2012 00:59:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :content-type;
        bh=O4ACFEkqH0GJVm5li6feWDPETlCXW0GLZ3R8dhCle4U=;
        b=JA81ci5+VO5Tw5UL6HIcQIrIfnSxvKCAdjewvtBNP/YKi952VffzV4npQFWcfObMTn
         8P+1i/OsDsaT6wdrqHcIn7sg9piKc2EB5NuLoOjKU6a05mwbIrOZy5vu+p9p2+gh5PmA
         uY1YW5oAMBYUgtD7+dtAj6vGR1O2Wbwl5DDbE=
Received: by 10.60.8.197 with SMTP id t5mr6638950oea.3.1329641987894; Sun, 19
 Feb 2012 00:59:47 -0800 (PST)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.60.17.67 with HTTP; Sun, 19 Feb 2012 00:59:27 -0800 (PST)
In-Reply-To: <20120213053430.GA14059@waltdnes.org>
References: <CAHNvW1JxyY1LtscDDhZG4DRRHZDV6nD4VaEaP=Y1Em29ur98dg@mail.gmail.com>
 <4F379797.4070004@coolmail.se> <CAHNvW1LM2O8FU1W+0d5pK8Jc+6QwThA3CSEpOF7+4v4WptrPVw@mail.gmail.com>
 <20120213053430.GA14059@waltdnes.org>
From: Kfir Lavi <lavi.kfir@gmail.com>
Date: Sun, 19 Feb 2012 10:59:27 +0200
Message-ID: <CAHNvW1+N5M=qZXzTcWS9nJhHz8NYeJOCfGhGdANim+XT7QDF4A@mail.gmail.com>
Subject: Re: [gentoo-user] Slow not in sync movie playing with mplayer2,
 ffmpeg, x264 with intel core i5
To: gentoo-user@lists.gentoo.org
Content-Type: multipart/alternative; boundary=e89a8fb1ef425dedbd04b94d6624
X-Archives-Salt: b073983e-6dc0-4087-afe8-3d9c214ce3d9
X-Archives-Hash: e7b34f0666c3e80a9ed5a5fc8c6b200b

--e89a8fb1ef425dedbd04b94d6624
Content-Type: text/plain; charset=UTF-8

On Mon, Feb 13, 2012 at 7:34 AM, Walter Dnes <waltdnes@waltdnes.org> wrote:

> On Sun, Feb 12, 2012 at 06:57:08PM +0200, Kfir Lavi wrote
>
> > No, it is all the videos that are 720p x264.
>
>   Is this a recently installed Gentoo?  I had a similar problem trying
> to play 1080i TV and also with NHL Gamecenter Live.  A fresh install
> will have almost all binaries using generic lowest-common-denominator
> 32 or 64 bit code, so that it will work on every machine with the target
> CPU.  Once I did "emerge system" + "emerge world" + rebuilt kernel and
> rebooted, it ran fine (for a 4+ year old Dell).  Now it can handle at
> least the minimum speed for NHL Gamecenter Live, and play 1080i from the TV
> tuner.  For CPU flags I use...
> CFLAGS="-O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe"
> CXXFLAGS="${CFLAGS}"
>
>  If that isn't your problem, can we see output from the 2 commands...
>
> cat /proc/cpuinfo (1 core is enough, thanks)
>
> head /proc/meminfo (does Memtotal: match what your BIOS shows on bootup?)
>
> --
> Walter Dnes <waltdnes@waltdnes.org>
>
> I did a compilation from the start. 3 times @system and 1 time @world.
I have used -march=native -mfpmath=sse and now movies do play well.
I'm still not sure why I had this problem.
I did use mmx and sse use flags, but did removed them.
Is it possible that my gcc didn't created good efficient binary before I
used recompiled world?
I really don't think so.
I didn't use -march=native, but did find what my gcc find as native
documented here:
http://gentoo-what-did-you-say.blogspot.com/2011/07/finding-cpu-flags-using-gcc.html

Regards,
Kfir

--e89a8fb1ef425dedbd04b94d6624
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br><div class=3D"gmail_quote">On Mon, Feb 13, 2012 at=
 7:34 AM, Walter Dnes <span dir=3D"ltr">&lt;<a href=3D"mailto:waltdnes@walt=
dnes.org">waltdnes@waltdnes.org</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">

On Sun, Feb 12, 2012 at 06:57:08PM +0200, Kfir Lavi wrote<br>
<div class=3D"im"><br>
&gt; No, it is all the videos that are 720p x264.<br>
<br>
</div> =C2=A0Is this a recently installed Gentoo? =C2=A0I had a similar pro=
blem trying<br>
to play 1080i TV and also with NHL Gamecenter Live. =C2=A0A fresh install<b=
r>
will have almost all binaries using generic lowest-common-denominator<br>
32 or 64 bit code, so that it will work on every machine with the target<br=
>
CPU. =C2=A0Once I did &quot;emerge system&quot; + &quot;emerge world&quot; =
+ rebuilt kernel and<br>
rebooted, it ran fine (for a 4+ year old Dell). =C2=A0Now it can handle at<=
br>
least the minimum speed for NHL Gamecenter Live, and play 1080i from the TV=
<br>
tuner. =C2=A0For CPU flags I use...<br>
CFLAGS=3D&quot;-O2 -march=3Dnative -mfpmath=3Dsse -fomit-frame-pointer -pip=
e&quot;<br>
CXXFLAGS=3D&quot;${CFLAGS}&quot;<br>
<br>
 =C2=A0If that isn&#39;t your problem, can we see output from the 2 command=
s...<br>
<br>
cat /proc/cpuinfo (1 core is enough, thanks)<br>
<br>
head /proc/meminfo (does Memtotal: match what your BIOS shows on bootup?)<b=
r>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
--<br>
Walter Dnes &lt;<a href=3D"mailto:waltdnes@waltdnes.org">waltdnes@waltdnes.=
org</a>&gt;<br>
<br>
</font></span></blockquote></div>I did a compilation from the start. 3 time=
s @system and 1 time @world. <br>I have used -march=3Dnative -mfpmath=3Dsse=
 and now movies do play well. <br>I&#39;m still not sure why I had this pro=
blem. <br>

I did use mmx and sse use flags, but did removed them. <br>Is it possible t=
hat my gcc didn&#39;t created good efficient binary before I used recompile=
d world?<br>I really don&#39;t think so.<br>I didn&#39;t use -march=3Dnativ=
e, but did find what my gcc find as native documented here: <a href=3D"http=
://gentoo-what-did-you-say.blogspot.com/2011/07/finding-cpu-flags-using-gcc=
.html">http://gentoo-what-did-you-say.blogspot.com/2011/07/finding-cpu-flag=
s-using-gcc.html</a><br>

<br>Regards,<br>Kfir<br></div>

--e89a8fb1ef425dedbd04b94d6624--