• SatyrSackOP
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 day ago

    Any tips on creating looping animated WEBP images with a modest file size? This one is 260 KB at 300x300 with awful quality. The best technique I could come up with was exporting a video from KDENLIVE as an MP4 and then using FFMPEG to convert to WEBP like so:

    ffmpeg -i fire.mp4 -vcodec libwebp -filter:v fps=10 -lossless 0 -loop 0 -preset default -an -vsync 0 -s 300:300 -quality 10 fire.webp
    
    • Admiral Patrick@dubvee.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      The problem with animated images and uploading them to Lemmy is that pict-rs will typically convert them. Each instance can and often does have its pict-rs service configured differently. Some will just convert them to static images, some will convert to GIF, etc. If you upload to catbox, that shouldn’t be an issue. Unfortunately, I haven’t messed with animated webp much.

      So you’ll probably want to check with your instance admins (or run some posts somewhere) to see what works best.

      • SatyrSackOP
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        1 day ago

        I uploaded this one to Lemmy (instead of my usual use of Catbox), and have no complaints with its integrity after uploading. It looks just as good/bad here as the raw file did before uploading, and has basically the same file size.

        The MP4 I exported was only 200 KB with much higher resolution/quality. I had to compress the WEBP immensely to get it down to 260 KB, just because I wanted it to loop automatically.

        I am wondering if there might be a better way to export/convert the file before uploading, or if WEBP is just not as magical in its compressibility as I had thought.