Skip to content

Conversation

@Pawloland
Copy link
Contributor

I was inspired by the extra loudness feature activated with a gesture and wanted something similar, but for video brightness/ gamma correction. It is useful when watching in direct sunlight on the not bright enough screen or when watching very dark movies in general. The color math heavy lifting is done with the code originally from https://github.com/MasayukiSuda/GPUVideo-android library that is MIT licensed. I forked it https://github.com/Pawloland/GPUVideo-android to make it up to date enough to run it's demo sample app on modern Android (in my fork there is only the movie player filter functionality, I removed camera and media file editing option, because I didn't feel like fixing scoped storage and camera API, and the thing that I needed in cloudstream was just the exoplayer part, which I upgraded to Media3). I copied the source code from my fork into cloudstream codbase with minimal changes, mainly paths in packages and imports, plus relying on PlayerResize enum for scaling types used in cloudstream. There are a lot more effects inside, which I didn't remove. Maybe someone would be intrigued by this and build nice UI for changing contrast, exposure, hue, saturation, vibrance or white balance to name a few.
Bellow is a demo of it in action when playing Big Buck Bunny video file. From my quick empirical tests it behaves as expected on rotations, changes of the scaling to fit, fill and zoom, and it seams to works fine on TV layout.

output.mp4

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant