Skip to content

Tensor G5 HDR Tonemapping Fix#42

Draft
JoshAtticus wants to merge 7 commits intomainfrom
google-pixel-10-fix
Draft

Tensor G5 HDR Tonemapping Fix#42
JoshAtticus wants to merge 7 commits intomainfrom
google-pixel-10-fix

Conversation

@JoshAtticus
Copy link
Owner

@JoshAtticus JoshAtticus commented Feb 15, 2026

Google had a skill issue and broke BT.2020 and HLG encoding in their c2.google.hevc.encoder and c2.google.avc.encoder hardware encoders on the Tensor G5. Because of this, compressing HDR videos encoded in either of these HDR colour spaces to H.265 or H.264 will always fail on devices with the Tensor G5.

AV1 was notably unaffected for whatever reason.

This PR is an experimental test to see if forcing SDR tonemapping when compressing BT.2020 and HLG content to either of these codecs will fix the issues on Tensor G5 devices (Pixel 10 series).

Solves #38

This is probably related to all the other GPU skill issues Google has done with the Tensor G5

Screenshot 2026-02-15 at 6 06 43 PM

@github-actions
Copy link

github-actions bot commented Feb 15, 2026

✅ Build Successful

Debug APK Ready
Download from Artifacts

Note: You may need to uninstall the existing version before installing this debug build.

Build Logs
Downloading https://services.gradle.org/distributions/gradle-8.13-bin.zip
.............10%.............20%.............30%.............40%.............50%.............60%.............70%.............80%.............90%.............100%

Welcome to Gradle 8.13!

Here are the highlights of this release:
 - Daemon JVM auto-provisioning
 - Enhancements for Scala plugin and JUnit testing
 - Improvements for build authors and plugin developers

For more details see https://docs.gradle.org/8.13/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:checkKotlinGradlePluginConfigurationErrors SKIPPED
> Task :app:checkDebugAarMetadata
> Task :app:processDebugNavigationResources
> Task :app:generateDebugResValues
> Task :app:compileDebugNavigationResources
> Task :app:mapDebugSourceSetPaths
> Task :app:generateDebugResources
> Task :app:packageDebugResources
> Task :app:mergeDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :app:parseDebugLocalResources
> Task :app:processDebugMainManifest
> Task :app:processDebugManifest
> Task :app:javaPreCompileDebug
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets
> Task :app:compressDebugAssets
> Task :app:desugarDebugFileDependencies
> Task :app:mergeDebugJniLibFolders
> Task :app:checkDebugDuplicateClasses
> Task :app:mergeDebugNativeLibs
> Task :app:processDebugManifestForPackage
> Task :app:mergeExtDexDebug
> Task :app:mergeLibDexDebug

> Task :app:stripDebugDebugSymbols
Unable to strip the following libraries, packaging them as they are: libandroidx.graphics.path.so. Run with --info option to learn more.

> Task :app:processDebugResources
> Task :app:validateSigningDebug
> Task :app:writeDebugAppMetadata
> Task :app:writeDebugSigningConfigVersions

> Task :app:compileDebugKotlin
w: file:///home/runner/work/Compressor/Compressor/app/src/main/java/compress/joshattic/us/CompressorViewModel.kt:789:20 'constructor(p0: EditedMediaItem, vararg p1: EditedMediaItem): EditedMediaItemSequence' is deprecated. Deprecated in Java.
w: file:///home/runner/work/Compressor/Compressor/app/src/main/java/compress/joshattic/us/CompressorViewModel.kt:899:62 'static field LATITUDE: String' is deprecated. Deprecated in Java.
w: file:///home/runner/work/Compressor/Compressor/app/src/main/java/compress/joshattic/us/CompressorViewModel.kt:900:62 'static field LONGITUDE: String' is deprecated. Deprecated in Java.
w: file:///home/runner/work/Compressor/Compressor/app/src/main/java/compress/joshattic/us/MainActivity.kt:129:28 'val LocalClipboardManager: ProvidableCompositionLocal<ClipboardManager>' is deprecated. Use LocalClipboard instead which supports suspend functions.
w: file:///home/runner/work/Compressor/Compressor/app/src/main/java/compress/joshattic/us/MainActivity.kt:350:28 'val LocalClipboardManager: ProvidableCompositionLocal<ClipboardManager>' is deprecated. Use LocalClipboard instead which supports suspend functions.

> Task :app:compileDebugJavaWithJavac NO-SOURCE
> Task :app:processDebugJavaRes
> Task :app:mergeDebugJavaResource
> Task :app:dexBuilderDebug
> Task :app:mergeProjectDexDebug
> Task :app:packageDebug
> Task :app:createDebugApkListingFileRedirect
> Task :app:assembleDebug

BUILD SUCCESSFUL in 4m 31s
36 actionable tasks: 36 executed

@JoshAtticus JoshAtticus added bug Something isn't working high priority This issue is of high priority experiment This PR is an experiment to try and fix an issue labels Feb 15, 2026
@JoshAtticus JoshAtticus linked an issue Feb 15, 2026 that may be closed by this pull request
6 tasks
@JoshAtticus JoshAtticus moved this from Ready to In progress in Compressor Roadmap Feb 15, 2026
@Alveel
Copy link

Alveel commented Feb 15, 2026

It seems the build failed even though the pipeline action is marked as succeeded.

@JoshAtticus
Copy link
Owner Author

JoshAtticus commented Feb 16, 2026

It seems the build failed even though the pipeline action is marked as succeeded.

Oops, sorry about that. I'll try and fix it soon, I've been working really hard for a month now and now it's causing burnout.

@JoshAtticus
Copy link
Owner Author

/rebuild

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working experiment This PR is an experiment to try and fix an issue high priority This issue is of high priority

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

[BUG] unable to convert (HDR video?) to H264 or H265

2 participants