androidx / androidx/media

OverlayShaderProgram does not support HDR colors yet

Open
#723 8 comments 1 reaction 2 assignees View on GitHub

@kggibson is already working on this.

Since Mar 9, 2026.

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

Description

Compiled and installed demo-transformer onto my Pixel 7 Pro.
Selected a video recorded on my pixel.
Choose video effect overlay logo & timer.
Clicked export.
Failed.

VERY surprised you don't support videos created on your own phone

Caused by: java.lang.IllegalArgumentException: OverlayShaderProgram does not support HDR colors yet.
                                                               at androidx.media3.common.util.Assertions.checkArgument(Assertions.java:55)
                                                               at androidx.media3.effect.OverlayShaderProgram.<init>(OverlayShaderProgram.java:58)
                                                               at androidx.media3.effect.OverlayEffect.toGlShaderProgram(OverlayEffect.java:44)
                                                               at androidx.media3.effect.OverlayEffect.toGlShaderProgram(OverlayEffect.java:27)
                                                               at androidx.media3.effect.DefaultVideoFrameProcessor.getGlShaderProgramsForGlEffects(DefaultVideoFrameProcessor.java:707)
                                                               at androidx.media3.effect.DefaultVideoFrameProcessor.createOpenGlObjectsAndFrameProcessor(DefaultVideoFrameProcessor.java:606)
                                                               at androidx.media3.effect.DefaultVideoFrameProcessor.access$100(DefaultVideoFrameProcessor.java:70)
                                                               at androidx.media3.effect.DefaultVideoFrameProcessor$Factory.lambda$create$0$androidx-media3-effect-DefaultVideoFrameProcessor$Factory(DefaultVideoFrameProcessor.java:258)
                                                               at androidx.media3.effect.DefaultVideoFrameProcessor$Factory$$ExternalSyntheticLambda0.call(Unknown Source:20)
                                                               at java.util.concurrent.FutureTask.run(FutureTask.java:264)
                                                               at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                                                               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
                                                               at java.lang.Thread.run(Thread.java:1012)

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.