androidx / androidx/media

Running renderers of different threads during playback

Open
#1,791 2 comments 0 reactions 1 assignee View on GitHub

@microkatz is already working on this.

Since Oct 14, 2024.

enhancement
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

[REQUIRED] Use case description

https://github.com/google/ExoPlayer/issues/5796#issuecomment-517748828
ExoPlayer currently do audio and video render one after the other. Running renderers of different threads during playback, to improve rendering performance.

We have enabled experimental asynchronous MediaCodec queueing when playing an 8K(HEVC + AAC) content. It's still found the video frames dropping. We invested that MediaCodec decode video and audio quickly in asynchronous mode, but the decoded audio frame consumed slowly during playback(because of the ExoPlayerInternalThread not switched with sufficient frequency), it causes the video frame drops for A/V sync.

Proposed solution

Running renderers in parallel during playback , rather than one after the other.

Alternatives considered

N/A

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.