linkedin / LiTr

Lightweight hardware accelerated video/audio transcoder for Android.
BSD 2-Clause "Simplified" License
609 stars 85 forks source link

HDR to SDR transcoding with tone map #276

Open alexvasilkov opened 2 months ago

alexvasilkov commented 2 months ago

By default HDR videos are transcoded into SDR, but resulting colors look washed out.

I can transcode HDR videos into HDR, but such videos can't be correctly played on devices without HDR support, the colors will look washed out.

It would be great if LiTR supports tone mapping, it looks like it can be done using Open GL somehow. At least androidx.media3 transcoder has a special flag for that. I don't want to use media3 library, its API is pretty bad and it lacks some features that I need (progress tracking, custom media sources support, etc). So it would really be great if LiTR could handle HDR to SDR transcoding.

Thanks for the library and your time :)

izzytwosheds commented 2 months ago

That is a very interesting suggestion. We will look into this.