[mythtvnz] mythtv 0.25 jitter/judder

Brett mythicalbeast at slingshot.co.nz
Fri Jun 15 07:05:09 BST 2012


On Fri, 2012-06-15 at 01:31 +1000, Jean-Yves Avenard wrote:
> On 14 June 2012 20:07, Brett <mythicalbeast at slingshot.co.nz> wrote:
> > The commit related to refreshrate vs. frame_interval was
> >
> 
> you're saying that by reverting commit
> 8fd44c8f6b0c7c2053a61c2590c781961023c8bb you get smooth playback?
> 
By reverting parts of it..yes.
The reverting changes on lines: 1947, 1949, 1950 & 1956 required.
Line 1947 is crucial.

I'm experimenting to see the effects of the other variable changes.

The calculation on line 1979 & 1804 has changed w.r.t. mythtv0.24+fixes
// 0.25+fixes
if (avsync_used > refreshrate)
                {
                    avsync_adjustment += refreshrate;
                }
                else if (avsync_used < 0 - refreshrate)
                {
                    avsync_adjustment -= refreshrate;
                }
 
//0.24+fixes
if (avsync_avg > frame_interval * 3 / 2)
                {
                    avsync_adjustment += refreshrate;
                    lastsync = true;
                }
                else if (avsync_avg < 0 - frame_interval * 3 / 2)
                {
                    avsync_adjustment -= refreshrate;
                    lastsync = true;
                }
// far as I can tell refreshrate = frame_interval at playback speed x1..

Brett




More information about the mythtvnz mailing list