this post was submitted on 19 Dec 2023
436 points (99.8% liked)

Memes @ Reddthat

1039 readers
1 users here now

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

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 34 points 1 year ago (2 children)

ffmpeg -i file.webp file.png

[–] [email protected] 5 points 1 year ago (1 children)
[–] [email protected] 7 points 1 year ago

Pretty sure ffmpeg is just black magic at this point.

[–] [email protected] 4 points 1 year ago (2 children)

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 :(

[–] [email protected] 9 points 1 year ago* (last edited 1 year ago) (1 children)

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

[–] [email protected] 2 points 1 year ago (1 children)

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

[–] [email protected] 3 points 1 year ago* (last edited 1 year 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.

[–] [email protected] 3 points 1 year ago (1 children)

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

[–] [email protected] 3 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago

What does priority wish mean?