Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
111000@reddthat.comM to Memes @ Reddthat@reddthat.com · 2 years ago

What is .webp exactly

reddthat.com

message-square
123
fedilink
431

What is .webp exactly

reddthat.com

111000@reddthat.comM to Memes @ Reddthat@reddthat.com · 2 years ago
message-square
123
fedilink
  • cally [he/they]@pawb.social
    link
    fedilink
    English
    arrow-up
    34
    ·
    2 years ago

    ffmpeg -i file.webp file.png

    • MashedTech@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      It works?!

      • LostXOR@kbin.social
        link
        fedilink
        arrow-up
        6
        ·
        2 years ago

        Pretty sure ffmpeg is just black magic at this point.

    • PopShark@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      But can it convert animated webp’s back into the gifs they’re based off of anyway? That’s what makes me really hate the webp standard. If I save an animated image as webp no video converter will touch it that I’ve found. I just want my gifs and mp4s back :(

      • AbsentBird@lemm.ee
        link
        fedilink
        arrow-up
        8
        ·
        edit-2
        2 years ago

        You can convert it to frames with imagemagick, then use ffmpeg to turn that into a gif:

        magick animated.webp frames.png
        ffmpeg -i frames-%d.png animated.gif

        EDIT, or with a single imagemagick command:
        convert -format gif file.webp file.gif

        • shastaxc@lemm.ee
          link
          fedilink
          arrow-up
          2
          ·
          2 years ago

          Weird that it can’t get the format from that .gif extension

          • AbsentBird@lemm.ee
            link
            fedilink
            arrow-up
            3
            ·
            edit-2
            2 years ago

            Yeah, I was looking into that. They use the webp muxer for generating files, but not for decoding. I’m not sure exactly why. That seems to be the reason ffmpeg can generate animated webp, but not read it.

      • cally [he/they]@pawb.social
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 years ago

        ffmpeg -i file.webp file.mp4 probably works, ffmpeg is mainly a video program anyway

        • AbsentBird@lemm.ee
          link
          fedilink
          arrow-up
          3
          ·
          2 years ago

          Not yet supported, unfortunately: https://trac.ffmpeg.org/ticket/4907

          • MashedTech@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            What does priority wish mean?

Memes @ Reddthat@reddthat.com

memes@reddthat.com

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

The Memes community. Where Memes matter the most.

We abide by Reddthat’s Instance Rules & the Lemmy Code of Conduct. By interacting here you agree to these terms.

Rules

  • No NSFW content
  • No bigotry - including racism, sexism, ableism, homophobia, transphobia, or xenophobia. Code of Conduct.
  • Be respectful, especially when disagreeing. Everyone should feel welcome here.
  • No porn.
  • No Ads / Spamming.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 170 users / 6 months
  • 1 local subscriber
  • 1.21K subscribers
  • 199 Posts
  • 2.18K Comments
  • Modlog
  • mods:
  • Red@reddthat.com
  • 111000@reddthat.com
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org