(EDIT: sorted this out, thanks everyone, ffmpeg can do everything)

I'm thinking of writing a rust script to create an anki deck given a video file and a subtitle track.

One thing I'm not sure I should do, is how do I get a snapshot from a video file?

Does anyone know a good way to do this?

The script will go through all the timestamps in the provided subtitle file and take screenshots.

#tech #techsupport #SoftwareDev #rust

@sashin
Sorry if you're looking for a way to do it inside rust, which rereading the question you may be. But if not, or if you can script ffmpeg from within rust, I offer this: https://thetechblog.eu/ffmpeg-take-screenshots/
FFmpeg: How to take screenshots – The Tech Blog

@intransitivelie Yeah, this is good. I'll probably be doing it this way, I can just call the command from inside rust, just need to handle failures in a way that makes sense.
@sashin
Glad I could help 🙂 ffmpeg might possibly be powerful enough to do everything you want you do itself, but I'm a novice.