<html><span style="font-size:13px; line-height:1.6em">On Monday, December 16, 2013 12:22 CET, Stuart Morgan &lt;stuart@tase.co.uk&gt; wrote:</span><br />&nbsp;<blockquote>On Monday 16 Dec 2013 12:07:05 Marius Schrecker wrote:<br />&gt; Hi,<br />&gt;<br />&gt; After recenrt updates (I&#39;m not sure what) I&#39;m noticing slightly more<br />&gt; jerkyness and jitter on some videos and (possibly unrelated) wandering<br />&gt; audio sync on others.<br />&gt;<br />&gt; System is a dual core opteron with nvidia 620 video adapter doing vdpau<br />&gt; rendering and jitterometer tells me that when playing affected full<br />&gt; 1080@25p content frame rate varies at +- 1-2 Hz of 25 and both CPU cores<br />&gt; are running at around 15% capacity. One of my recent changes was upgrading<br />&gt; the Nvidia driver from 304 to 310 and google tells me that teghre was a<br />&gt; substantial performance increase bertween these two drivers. Something that<br />&gt; might be causing my CPU 
 usage and bus speed to drop so much that I&#39;m<br />&gt; getting throughput errors.<br />&gt;<br />&gt; What&#39;s the best way to test the hypothesis?<br /><br />Change the minimum cpu speed.<br /><br />sudo echo {valid_speed} &gt;<br />/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq<br /><br />Where {valid_speed} is something above the minimum from<br />cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies<br /><br />You may need to try different values to find the best one, assuming it works at<br />all.<br /><br />These are the scripts I use to automatically boost my cpu speed during<br />playback of video with vdpau, with them I get stutter/jitter issues.<br /><br />-----------------<br /><br />frequencyup.sh<br /><br />#!/bin/bash<br /><br />echo 1800000 | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq<br />&gt; /dev/null<br /><br />-------------------<br /><br />frequencydown.sh<br /><br />#!/bin/bash<br /><br />echo 1000000 | 
 sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq<br />&gt; /dev/null<br /><br />--------------------<br /><br />This is in my /etc/sudoers file<br />{username} ALL=(ALL) PASSWD: ALL, NOPASSWD: /usr/bin/tee<br />/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq<br /><br />--------------------<br /><br />Finally I trigger the scripts with the &quot;Playback started&quot; and &quot;Playback<br />stopped&quot; system events. I also trigger the slower clockspeed when paused, and<br />unpaused but that bit&#39;s optional.<br />--<br />Stuart Morgan<br />MythTV<br />_______________________________________________<br />mythtv-users mailing list<br />mythtv-users@mythtv.org<br />http://www.mythtv.org/mailman/listinfo/mythtv-users</blockquote><br />Brilliant Stuart! &nbsp;That&#39;s just what I wanted.<br /><br />I may ask for help triggeringb from system events but will adjust the speeds manually first and see if that solves my problems.<br /><br />Cheers!<br /><br 
 />Marius<br /><br /><br />&nbsp;</html>