GeistHaus
log in · sign up

Reordering frames, extracting I-frames, and other ffmpeg tricks

robr.dev

There are a bunch of ffmpeg commands I find myself copying and pasting over and over. Maybe you do too. Here are mine. I’ll explain the flags for this first one in a lot of detail, if I skip a flag on another example then it’s probably described here. And I’ll link to some more thorough docs at the end. ffmpeg -i /mnt/nas/photos/PXL_20230128_171859165.mp4 -vf select='between(t\,200\,210)*eq(pict_type\,I)*gt(pts-prev_pts\,0.500)' -vsync 0 -frames:v 100 /mnt/nas/frames-PXL_20230128_171859165/img-%03d.jpg Flags

0 pages link to this URL

No pages have linked to this URL yet.