hap icon indicating copy to clipboard operation
hap copied to clipboard

ffmpeg Codec Update (HAPR specifically)

Open basicmonkey opened this issue 2 years ago • 3 comments

The recent updates to HAP encoding methods are really interesting and do seem to have an impact on image quality in the nuanced areas where you can see the difference between a master and a HAP encode (some noise/chroma aliasing).

It would be amazingly useful to have access to these in ffmpeg. Is there any chance of Tom or Vittorio kindly updating their work in ffmpeg to make this happen?

Many thanks,

James

basicmonkey avatar Mar 02 '23 15:03 basicmonkey

Hi, We did it a while ago already. You can find a link to our Shutter Encoder fork on our website: https://demolition-studios.tilda.ws/ And in the distribution there is an updated ffmpeg version with more Hap formats support including Hap R

leavittx avatar Jun 27 '25 11:06 leavittx

Hi Lev @leavittx , Can you redirect me to the ffmpeg source code with Hap-R support ? FFMPEG master branch code doesn't mention BC7 or HapR: https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/hapdec.c https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/hapenc.c If I can be of any help, I'm not against contributing to finition. Thanks!

mattbeghin avatar Jun 27 '25 15:06 mattbeghin

Our fork is here: https://github.com/DemolitionStudios/FFmpeg/tree/hap_bc6h Would be nice to get it into FFmpeg master, at least the bc7 part, which should be cross-platform, not sure if it's easy to get bc6h part though. GDeflate isn't a part of Hap specification, so it can be skipped I think. I don't have time to make a pull request to FFmpeg, so if you feel like doing it, feel free to! There are no unit tests for the new code and it can be cleared from the TODOs

leavittx avatar Jun 28 '25 08:06 leavittx