<div dir="ltr">I think I found my problem. I had forgotten I had set my refresh rate to 24Hz.<div><br></div><div style>Sander</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 8:57 AM, Sander Jansen <span dir="ltr"><<a href="mailto:s.jansen@gmail.com" target="_blank">s.jansen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I'm having issues playing back certain videos using mplayer and vaapi. It usually results in the audio getting out of sync pretty quickly with video not being able to keep up. mplayer usually will spit out a message that the system is too slow to play this, but system almost uses no CPU !?</div>

I'm using the latest Intel drivers (2.21.6) and va-intel-driver 1.0.20 on a Ivy Bridge hardware (Intel NUC*). <div>Comparing two videos where one doesn't work and the other plays fine:</div><div><br><div><div>
slow.mp4**</div><div>1<span style="white-space:pre-wrap">   </span>video<span style="white-space:pre-wrap">   </span>H264 High@3.1, 2588.880 secs, 1833 kbps, 1280x720 @ 25.000000 fps</div><div>2<span style="white-space:pre-wrap">       </span>audio<span style="white-space:pre-wrap">   </span>MPEG-4 AAC LC, 2588.885 secs, 152 kbps, 44100 Hz</div>

</div><div><br></div><div>plays_fine.mp4</div><div><div>1<span style="white-space:pre-wrap">    </span>video<span style="white-space:pre-wrap">   </span>H264 High@3.1, 548.666 secs, 2913 kbps, 1280x720 @ 24.000029 fps<br>
</div><div>2<span style="white-space:pre-wrap">     </span>audio<span style="white-space:pre-wrap">   </span>MPEG-4 AAC LC, 548.687 secs, 256 kbps, 44100 Hz</div><div><br></div><div><br></div><div>Is this perhaps an issue of framerate? I also have the same exact problem when I switch from vaapi to the gl backend of mplayer. The x11 backend seems to work fine (no sync issues), but shows frame tearing.</div>

<div><br></div><div><br></div></div><div>*<a href="http://www.intel.com/content/www/us/en/motherboards/desktop-motherboards/desktop-board-d33217gke.html" target="_blank">http://www.intel.com/content/www/us/en/motherboards/desktop-motherboards/desktop-board-d33217gke.html</a> <br>

</div></div><div>**<a href="https://www.youtube.com/watch?v=Wm174EquYLc" target="_blank">https://www.youtube.com/watch?v=Wm174EquYLc</a> (video can be downloaded with the various command line tools like youtube-dl)</div>
<div><br></div>
</div>
</blockquote></div><br></div>