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

Janne Grunau janne-mythtv at grunau.be
Tue Oct 7 19:41:45 UTC 2008

On Tuesday 07 October 2008 21:07:12 MythTV wrote:
> #5749: Internal player stutters on 720p content
> Comment(by gigem):
>  Replying to [comment:32 janne]:
>  > and again, it looks like the audio is to blame. It stores
>  > compressed
>  video frames until AV-sync is should be ok. but fails then to
> decode/play the audio properly.
>  As soon as we get the audio 100ms ahead of the video, we start
> consuming the stored video packets.  The problem is that we then
> continue consuming the stored video packets until they are exhausted.

That seems to be happening on systems which exhibit the problem. It 
doesn't happen on my system. Here are stored video packets stored or 
consumed according to AV-sync status.

>  In the mean time, we run out of audio data and get the underruns. 
> We need to detect when we are running out of audio data and start
> storing video packets again until we get more audio data.

There is a bug/race condition in the code which does that if your 
analysis is correct.

My last patch should reveal that's happening with the audio.


More information about the mythtv-dev mailing list