Re:Apngasm Wants To Promote Animated PNGs As An Alternative ...
by mistercow on Monday August 26, 2013 @01:26PM
(#6278437)
Can you elaborate on why it's impractical? I understand that at a gut level you have the concept of "full blown video", but I'm not sure instinct is faithful to reality.
[ Parent
| on HN ]
Re:Apngasm Wants To Promote Animated PNGs As An Alternative ...
by randyrand on Monday August 26, 2013 @03:38PM
(#6279388)
Not a proper answer - but h.264 has one clear goal, good compression ratios at good quality. Performance is secondary and as such h.264 is pretty expensive. This makes it a little silly for small assets where filesize is not a concern.
Little emoticon stuff makes more sense with GIF which are very inefficient with filesize but with very very little performance overhead.
This is just 'my gut' like you have said. A proper analysis of the performance of h.264/GIF vs resolution would be nice though.
Re:Apngasm Wants To Promote Animated PNGs As An Alternative ...
by mistercow on Monday August 26, 2013 @04:42PM
(#6279800)
I expect that the performance issues with small assets are probably minor (and smart phones have hardware acceleration for it). H.264 is expensive to encode, but the decoding cost is much lower, and is also adjustable at the cost of the compression ratio. If you want transparency, then the workaround you currently have to do with going through an off-screen canvas is another story for performance.
I can think of one other hypothetical problem, although it would need testing to confirm: block sizes. h.264 works with block sizes that are a multiple of 4, and AFAIK codecs often perform sub-optimally with input that cuts off mid-block. For large videos that doesn't matter much, since you don't usually focus on the edge of a video, but for a small asset, it might be a problem. Someone with more knowledge of h.264 might be able to correct me on this.