Elektrine lite

← Feed

@Argentarius@meow.social

2026-05-13 15:53 UTC

@goaty@meow.social oh! I do this with Art Menagerie to generate a thumbnail for videos. Assuming you have ffmpeg built with libwebp, you can do this: ``` ffmpeg -i INPUT -codec:v libwebp -frames:v 1 -qscale:v 75 OUTPUT ``` This will save the first frame to a `webp` image! Replace `INPUT` and `OUTPUT` with your desired filenames (be sure output has `.webp` extension). The `-qscale:v 75` is actually the default value, so it's unnecessary in this command, but I put it there in case you want to change the quality setting. In case you are curious, code here: https://code.artmenagerie.app/file?name=ffmpeg/ffmpeg.go&ci=tip

Replies (1)