[mythtv] Seg Fault in mediacodec

David Engel david at istwok.net
Thu Jul 5 16:34:29 UTC 2018


On Wed, Jul 04, 2018 at 02:51:31PM -0400, Peter Bennett wrote:
> On 07/04/2018 11:27 AM, Aman Gupta wrote:
> > You can also try setting the ffmpeg loglevel to trace which will show
> > much more detailed info about each output buffer being returned from the
> > decoder. A segv in memcpy is pretty low level so it's unclear if this is
> > something we would be able to fix in ffmpeg ourselves.
> > 
> The output is attached. From it we can see that 18 packets were sent in,
> then 8 frames were retrieved and it seg faulted on retrieving the ninth. In
> the code it is trying to memcpy the frame from the buffer returned by
> mediacodec to the buffer allocated by ffmpeg when it hits the seg fault.

On the unlikely chance the problem is specific to copying decorded
frames from graphics memory, I disabled the Surface support in Kodi so
it uses OpenGL for rendering like we currently do.  It still worked
which reinforces the problem is with us or ffmpeg.

David
-- 
David Engel
david at istwok.net


More information about the mythtv-dev mailing list