• Riskable@programming.dev
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    1
    ·
    1 day 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.

    • MonkderVierte@lemmy.zip
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      11 hours ago

      that WebM doesn’t support looping

      Isn’t that a player issue?

      Edit: i assume there is a metadata flag, in formats that support it? Or is it something different?

      • Riskable@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        4 hours 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 🤷