FFmpeg recipes, run and measured
One page per task people search for. Every command on every page ran on the same footage, and each page shows what came out: the size, the duration, the frames. Where the usual answer goes wrong, the page shows that too.
Have a command already? Paste it in the FFmpeg command explainer to read it flag by flag and check that it runs on Rendobar as written.
8 recipes
Convert and compress
Batch convert a folder Run the bash for loop that converts every file in a folder with FFmpeg, such as all MP4 to MP3, keeping the names and skipping files already done. Compress a video Compare FFmpeg compression settings on one 40 s clip: CRF 18 to 33, five presets and two-pass to 8 MB and 25 MB, each with its file size and VMAF score. Convert to MP4 Convert MOV, MKV, WebM and AVI to MP4 with FFmpeg: remux with -c copy when the codecs fit, re-encode when not, and keep every audio and subtitle track. Convert to WebM Convert video to WebM with FFmpeg: VP9 or AV1 at constant quality with Opus audio, two-pass, transparency, each run on one clip with VMAF and size. Encode H.264 and H.265 Compare FFmpeg H.264 and H.265 settings measured on one clip: file size and VMAF for every CRF and preset, keyframe interval and capped bitrate. Convert HLS to MP4 Convert an HLS m3u8 playlist to one MP4 with FFmpeg and -c copy, tested on TS, fMP4, master and AES-128 playlists, with the error each one can throw. Convert MP4 to HLS Convert an MP4 to an HLS stream with FFmpeg, from one playlist to an adaptive ladder with a master playlist, each command run on a 60 s clip and measured. Web-playable MP4 Convert video to an MP4 that plays in every browser and starts fast with FFmpeg: H.264 High, yuv420p, AAC, +faststart, with the moov position proven.
12 recipes
Cut, join and reshape
Blurred background Convert horizontal video to vertical 9:16 for Shorts and Reels, or vertical to 16:9, with a blurred copy filling the sides. Every FFmpeg command run and shown. Change frame rate Run the FFmpeg commands that change a video's frame rate, 24 to 30, 60 to 30 or 24 to 60, with frame counts and the frames that repeat or drop shown. Change video speed Run the FFmpeg commands that speed up or slow down a video with setpts and atempo, from 2x to timelapse and slow motion, each tested on the same 20 s clip. Merge videos Run the FFmpeg commands that join videos: the concat demuxer for matching clips, the concat filter for mixed sizes, each tested with its output measured. Create a blank video Generate a black or colour video, silent audio, a test pattern or a title card with FFmpeg, no input file needed, with every command run and measured. Crop a video Run the FFmpeg crop commands for a region, a centre square, 16:9 to 9:16 vertical and black bar removal, each tested with before and after frames. Loop a video Run the FFmpeg commands that loop a video N times or to a set length, loop audio under a video, or make a boomerang, each tested on a 4 s clip with timecode. Resize a video Run the FFmpeg scale commands that resize a video without stretching it, into a fixed box, and past the height not divisible by 2 error, each tested. Rotate a video Run the FFmpeg commands that rotate a video 90 or 180 degrees, with transpose or with rotation metadata and no re-encode, each tested on the same clip. Split a video Run the FFmpeg commands that split a video into equal parts, at given times or per chapter, each tested on a 2-minute clip with every cut point shown. Stack videos Run the FFmpeg commands that stack videos side by side, top to bottom or in a grid with hstack, vstack and xstack, including clips of different sizes. Trim a video Run the FFmpeg commands that trim a video, fast with -c copy or frame-exact with a re-encode, each tested on a 2-minute clip with the first frame shown.
5 recipes
Text, logos and fades
Add subtitles Add subtitles with FFmpeg as a soft track in MP4 or MKV, or burned into the picture with your font, colour, box and position. Each command ran on one clip. Add text to a video Add text to a video with FFmpeg drawtext: centered titles, captions on a box, timecode, frame numbers, timed text and escaping rules, each run on one clip. Add a watermark Watermark a video with FFmpeg: logo in a corner, sized to the video, semi-transparent, centered or timed. Every command ran on the same clip, frames shown. Fade in and out Add fade in, fade out and crossfades to video and audio with FFmpeg: fade, afade, xfade and acrossfade, each run on real clips with frames and waveforms shown. Picture in picture Add a picture-in-picture inset to a video with FFmpeg: size, corner, border, rounded corners, start time and audio, each command run on real clips.
6 recipes
Frames, images and GIFs
Image and audio to video Convert a still image and an MP3 into an MP4 with FFmpeg, for podcasts and music uploads, with the fix for -shortest running past the end of the audio. Images to video Convert an image sequence into a video or slideshow with FFmpeg, with seconds per image, a duration per image, music and odd sizes, each run and timed. MP4 to GIF Convert an MP4 to a high quality GIF with FFmpeg using palettegen and paletteuse, with frame rate, width, colours and dithering each measured on the same clip. Extract a thumbnail Extract one frame from a video with FFmpeg at a set time, the first or last frame, or a typical one. Each command ran on a clip that shows which frame came out. Extract frames Extract frames from a video as images with FFmpeg, one per second, every frame, keyframes or a range, each run on a clip that shows which frames came out. Contact sheet Generate a contact sheet or thumbnail grid from a video with the FFmpeg tile filter, by interval, by scene, with timestamps or as sprite sheets.
8 recipes
Audio
Add audio to a video Add or replace the audio track of a video with FFmpeg: -map to pick streams, -shortest to match lengths, a second track, an offset, a loop, all measured. Convert audio formats Convert WAV, FLAC and M4A to MP3 with FFmpeg, VBR or CBR, keeping tags and cover art, with the size and bitrate each setting gave on one track. Extract audio Extract the audio from a video with FFmpeg, copied untouched to .m4a or converted to MP3, WAV or FLAC, every command run on the same 2-minute clip. Mix audio tracks Add background music under dialogue with FFmpeg amix: set levels with volume, stop at the video's end, duck the music with sidechaincompress. Measured in LUFS. Mute a section Run the FFmpeg command that mutes one or more time ranges of a video with the volume filter, video copied as is, and see where the silence landed. Normalize audio Run FFmpeg loudnorm in one pass or two, plus dynaudnorm and volume, on a quiet film mix, with the loudness each command reached in the output file. Remove audio Get the FFmpeg commands that remove audio from a video, drop or keep one track, strip subtitles and set the default track, each run on a test file. Remove silence Run the FFmpeg commands that remove silence from audio and video: trim the ends, shorten every pause, or find the gaps with silencedetect and cut them out.
5 recipes
Inspect and clean up
Check a video for errors Run the FFmpeg checks that find corrupt, truncated and damaged video files, tested on four broken MP4s with the exact output each check printed. Extract subtitles Extract subtitle tracks from MKV or MP4 with FFmpeg to SRT, ASS or WebVTT, picked by index or language, each command run on a 3-track MKV and a mov_text MP4. FFprobe video info Get video info with ffprobe: duration, resolution, codec, frame count and bitrate as JSON or one value, each command run with its real output shown. Remove duplicate frames Run the FFmpeg commands that remove duplicate frames with mpdecimate, keep audio in sync and find freezes, each tested on a clip with 241 real frames in 720. Strip metadata Read and edit video metadata with FFmpeg, or strip it: tags, GPS location, chapters, cover art and encoder strings, with what ffprobe reports before and after.
Your command. Our infrastructure.
Bring your own commands. Run them on scalable CPU and GPU infrastructure, and pay only for compute time.
