ffmpeg commands
Related tools
The scripts in this folder wrap tools that aren't part of ffmpeg itself and need their own install: primitive, which redraws an image as an SVG built from simple shapes, and videogrep, which transcribes speech and joins every moment a word is spoken into a supercut. These are for when ffmpeg alone can't do the job but can handle the steps around it, such as extracting frames before a redraw and reassembling them afterwards, or slowing down, jittering or crushing a finished supercut. Neither script was tested here, so check the header of each for install steps and what every flag does before adapting it.
Redraw images as SVGs made of simple shapes, with primitive
primitive-png-to-svg.sh
primitive (https://github.com/fogleman/primitive) recreates an image by adding one shape at a time, each placed to best reduce the difference from the original. A few hundred triangles give a recognizable low-poly version, saved as a small, scalable SVG. Pair it with ffmpeg by extracting frames (stills-and-gifs/extract-frame-jpg.sh, or -vf fps=… to frames/), redrawing each one, and reassembling the rendered frames with image-sequence/.
Transcribe videos and cut a supercut of every time a word is spoken
videogrep-supercut.sh
videogrep (https://github.com/antiboredom/videogrep) searches subtitle or transcript timestamps and joins the matching moments into one video: a "supercut". It can transcribe speech itself with Vosk (an offline speech recognizer), so no subtitle files are needed. The ffmpeg examples in timing/ and effects/ (slow motion, nervous jitter, Xvid crush) were used to process these supercuts further.
Source: lucidbeaming/ffmpeg-utilities/related-tools at v1.0.1