• Riskable@programming.dev
    link
    fedilink
    English
    arrow-up
    13
    ·
    8 months ago

    I really like WebP. It has a super annoying issue though: Animated WebP can’t take advantage of hardware acceleration.

    And the real problem there is that WebM doesn’t support looping. So if you want an auto playing, looping gif-like video you have to use WebP and thus, give up on hardware acceleration.

      • Riskable@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 months ago

        No, actually! There’s no metadata option in .WebM to tell it to loop! It’s not in the spec (which is just a subset of matroska).

        The format literally does not support looping. Whereas the .WebP spec does provide a looping option:

        https://datatracker.ietf.org/doc/rfc9649/

        It’s in the ANIM chunk which specifies the “loop count”. If it’s zero, loop forever.

        WebM has no built-in loop flag 🤷