[mythtv] FFmpeg mediacodec problem
Peter Bennett
pb.mythtv at gmail.com
Thu Jun 14 18:59:14 UTC 2018
Hi Aman
mediacodec playback is working quite well now in mythfrontend, but I
have a problem with ffmpeg as follows:
When decoding 3840x2160 content, there is pixellation caused by dropped
frames. The frames are being dropped because of apparent inconsistent
behavior in ffmpeg.
MythTV calls avcodec_send_packet to send the next packet. It receives
-11 return code (EAGAIN) indicating it must call avcodec_receive_frame
and then try to send again. We call avcodec_receive_frame and it is also
getting a -11 return code indicating it must send a packet before it can
receive. According to the documentation this will never happen. MythTV
then reports an error, drops the packet and moves on to the next one.
This is happening many times. eventually the avcodec_receive_frame works
and we receive a frame, but later the pattern repeats.
I tried turning on ffmpeg debug logging but I did not see any message
from that.
Please advise what should be done. Let me know if you need more information.
Peter
More information about the mythtv-dev
mailing list