Hello,
I'm playing a locally stored HEVC video track in MP4 container (it doesn't have any audio track) using ExoPlayer (media3 1.4.1) in Android 12L based AAOS. It plays fine after boot up, however subsequent play attempts tend to fail and PlayerView doesn't render any video frames. Upon debugging, AsynchronousMediaCodecCallback claims both availableInputBuffers and availableOutputBuffers to be empty and codec's callback onInputBufferAvailable and onOutputBufferAvailable aren't invoked.
MediaCodecRenderer's feedInputBuffer just keeps failing as it isn't able to dequeue an input buffer from platform's MediaCodec (c2.qti.hevc.decoder). Attaching debugger doesn't help as it changes timing and video renders fine.
So far, these workaround seems to help with successful video playback
-
initialize player and prepare 100 milliseconds after activity's onStart
-
or setup a MergingMediaSource and combine another mp4 having just an audio track of same length without any delay in activity's onState
Can the team provide any pointers for debugging this?
Hello,
I'm playing a locally stored HEVC video track in MP4 container (it doesn't have any audio track) using ExoPlayer (media3 1.4.1) in Android 12L based AAOS. It plays fine after boot up, however subsequent play attempts tend to fail and PlayerView doesn't render any video frames. Upon debugging,
AsynchronousMediaCodecCallbackclaims bothavailableInputBuffersandavailableOutputBuffersto be empty and codec's callbackonInputBufferAvailableandonOutputBufferAvailablearen't invoked.MediaCodecRenderer'sfeedInputBufferjust keeps failing as it isn't able to dequeue an input buffer from platform'sMediaCodec(c2.qti.hevc.decoder). Attaching debugger doesn't help as it changes timing and video renders fine.So far, these workaround seems to help with successful video playback
initialize player and prepare 100 milliseconds after activity's onStart
or setup a MergingMediaSource and combine another mp4 having just an audio track of same length without any delay in activity's onState
Can the team provide any pointers for debugging this?