this post was submitted on 03 Sep 2026
8 points (100.0% liked)

ffmpeg - the media conversion toolbox

44 readers
1 users here now

Everything about the powerful open source media recording, conversion and streaming tool!

Scripting, encoding, remuxing, filters, choosing the right parameters...

Be civil and on-topic

founded 1 week ago
MODERATORS
 

I used this today to try and find a frame showing a blinking error dialog, but wasnt successful, anyways here it is!

ffmpeg -i video.mp4 -r 30 frame%d.png
  • -r is the FPS
  • the %d is a nice iterator, works in fish and bash apparently

Images to video

Useful for timelapses!

#!/bin/sh

fps=10

ffmpeg \
	-framerate $fps \
	-pattern_type glob \
	-i '*.jpg' \
	-c:v libsvtav1 \
	-crf 20 -preset 6 \
	-vf "scale=-2:1080" \
	timelapse.mp4
top 3 comments
sorted by: hot top controversial new old
[–] Rentlar@lemmy.ca 3 points 2 days ago

If you want leading zeros, you can format it like %04d as well (0001, 0002) or change 4 to any number you like.

[–] refalo@programming.dev 1 points 2 days ago (1 children)

Why? mpv/vlc/etc. can move by individual frames, and can screenshot them, no need to burn GBs worth of space on jpegs you don't need.

[–] exdor@programming.dev 2 points 1 day ago

Well I did this on my phone and my used player (Next Player) only goes down to 0,2x speed XD but yeah this use case isnt thaat useful