Most multimodal pipelines can't "watch" a video file directly. In practice you sample frames, keep track of their timestamps, and send a grid plus some metadata to the model. Doing that well with FFmpeg means select, showinfo, passthrough timing and a bit of parsing — every single time.
I got tired of rewriting that glue code, so I packaged it as Sawfish, a small pay-per-task FFmpeg API on Apify.
One call: vision prep
curl -X POST "https://api.apify.com/v2/acts/zyonelvis~sawfish/run-sync-get-dataset-items?token=$APIFY_TOKEN" \ -H "Content-Type: application/json" \ -d '{"operation":"recipe/vision-prep","video_url":"https://example.com/demo.mp4","cols":4,"rows":3}' You get back:
- a contact sheet (JPG or WebP) whose tiles carry the real source timestamps (not evenly guessed ones);
- a JSON manifest with
metadata,grid,frame_timestamps_secand avision_hint, ready to drop into a vision prompt.
The other recipes
-
recipe/transcribe-prep— mono 16 kHz WAV, loudness-normalized to -16 LUFS, ready for speech-to-text. -
recipe/shorts-prep— trim + 9:16 reframe (720x1280 or 1080x1920) + -14 LUFS audio.
Plain operations
probe, trim (fast or frame-accurate), extract-audio, normalize-audio (2-pass EBU R128), contact-sheet and burn-subtitles (SRT/ASS).
Pricing and limits
Pay per event, no subscription. A vision-prep run costs about $0.0095; a probe about $0.002. Before touching FFmpeg it checks your spending cap and stops early if the job wouldn't fit.
Current limits: 100 MB input, 10 minutes, 1080p. It can also be called as a tool from the Apify MCP server.
Try it
https://apify.com/zyonelvis/sawfish
It's brand new, so I'd really like to hear which recipe you'd want next — or what breaks.
