[mythtv] Ticket #5749: Internal player stutters on 720p content

David Engel david at istwok.net
Wed Oct 8 02:56:34 UTC 2008


On Tue, Oct 07, 2008 at 04:06:35PM -0500, David Engel wrote:
> On Tue, Oct 07, 2008 at 09:41:45PM +0200, Janne Grunau wrote:
> > My last patch should reveal that's happening with the audio.
> 
> I hadn't noticed you had a new patch until I saw this.  Trac doesn't
> send an email when only an attachment is added.
> 
> Your latest changes is exactly what I was doing to try first myself.

I had a family event scheduled for me this evening so I got a late
start and didn't has as much time as I'd hoped.  I think I made some
good progress, though.

I uploaded a new log to Trac for your v2 diff.  It includes some
additional logging added by me to track when lastapts is set.
MpegPreProcessPkt gets called when a change in fps is detected and it
zeros out lastapts.  If this occurs while we are processing stored
video packets, lastaps doesn't get reset to anything meaningful until
we finish processing all of the stored video packets and another audio
packet is processed.

This probably isn't the proper fix, but as a test, I commented out the
the following line in MpegPreProcessPkt:

                lastapts = lastvpts = lastccptsu = 0;

That resulted in smooth playback for me.

David
-- 
David Engel
david at istwok.net


More information about the mythtv-dev mailing list