[mythtv] AVSync2 Improvements

Peter Bennett pb.mythtv at gmail.com
Sat Mar 2 22:35:37 UTC 2019

On 3/2/19 5:03 PM, Mark Spieth wrote:
> On 3/3/2019 2:58 AM, Mark Kendall wrote:
>> On Sat, Mar 2, 2019, 3:31 PM Peter Bennett <pb.mythtv at gmail.com 
>> <mailto:pb.mythtv at gmail.com>> wrote:
>>     > Stuttering occurs right at the start of the program with
>>     mediacodec
>>     > decoder. SW dec is fine. Either avsync method exhibits this so its
>>     > mediacodec related.
>>     >
>>     I am hoping that the direct render fixes it. Mark K said that he
>>     will be
>>     looking into direct render. Anyway I will download some of that
>>     file and
>>     see if I can do anything to understand what is happening,
>> Has anyone tried increasing the number of mediacodec video buffers? 
>> Its only 8 at the moment. I had similar problems with VideoToolBox 
>> decoding this week and increasing the buffer count was the key. 8 
>> gives you very little headroom for the simplest of system glitches.
>> Direct render is getting there - only problem is it crashes as soon 
>> as it tries to display anything:)
> Mark,
> I have tried to find this but failed :-(. where is this 
> constant/setting? I would like to try it as I suspect it fixes the 
> timing issue we are currently seeing with mediacodec.
> Thanks
> Mark

It is in VideoOutputOpenGL::CreateBuffers - however as I mentioned in my 
previous email, it seems the problem is with mis-detection of interlaced 
versus progressive, and changing the video buffers will likely cause 
android to terminate the app
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-dev/attachments/20190302/bd1fc46e/attachment.html>

More information about the mythtv-dev mailing list