Skip to content

[Question] HEVC video (without audio) not rendered in PlayerView #3026

@Ethan1983

Description

@Ethan1983

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions