[mythtv] AVSync2 Improvements

Peter Bennett pb.mythtv at gmail.com
Sun Mar 3 22:09:13 UTC 2019



On 3/2/19 5:35 PM, Peter Bennett wrote:
>
>
> 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
I found the problem with the car racing video from Mark - misdetection 
of frame rate - see patch in ticket
https://code.mythtv.org/trac/ticket/13419
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-dev/attachments/20190303/d716724f/attachment.html>


More information about the mythtv-dev mailing list