Vidvox / hap-qt-codec

A QuickTime codec for Hap video
Other
198 stars 27 forks source link

Previewing HAP Alpha files in QT7 and MPEG Streamclip produce artifacts #41

Closed ejoflow closed 5 years ago

ejoflow commented 7 years ago

Noticed that when I load HAP (with Alpha) encoded files into Quicktime7 or MPEG Streamclip, there is extra color information that is being produced. I'm unable to convert these files properly with a matted black background. Export produces the same color artifacts. In the files below you will see what the HAP with Alpha looks like (top) and the expected result.

screen shot 2017-08-24 at 10 23 15 am screen shot 2017-08-24 at 10 23 43 am
Sunsneezer commented 7 years ago

TL;DR this is normal straight alpha filtering from the software you used to generate the picture not a Hap issue.

That looks to me like what happens when you render stuff with straight alpha this stuff is meant to make semi-transparent pixels the same color instead of being contaminated by the background color. The effect is dramatic because of the very large glow going on, spreading the semi transparent pixels far and wide.

Quicktime 7 and MPEG streamclip must not be displaying the video using the alpha channel as I don't think they support it. Try importing this file into After Effects to verify it and I bet it will be all right. If you never need this video to be on top on bright stuff, or need a file that works without the alpha you can use premultiplied alpha.

See also: https://www.provideocoalition.com/alpha-channels-premultiplied-vs-straight/

bangnoise commented 5 years ago

Closing this. If you believe this is due to an issue in the Hap QT codec please add more information about the steps taken to encode your files.