111000@reddthat.comM to Memes @ Reddthat@reddthat.com · 11 months agoWhat is .webp exactlyreddthat.comimagemessage-square125fedilinkarrow-up1431arrow-down11
arrow-up1430arrow-down1imageWhat is .webp exactlyreddthat.com111000@reddthat.comM to Memes @ Reddthat@reddthat.com · 11 months agomessage-square125fedilink
minus-squareAbsentBird@lemm.eelinkfedilinkarrow-up9·edit-211 months agoYou 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
minus-squareshastaxc@lemm.eelinkfedilinkarrow-up2·11 months agoWeird that it can’t get the format from that .gif extension
minus-squareAbsentBird@lemm.eelinkfedilinkarrow-up3·edit-211 months agoYeah, 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.
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
Weird that it can’t get the format from that .gif extension
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.