50 guides to ffmpeg commands, each explained flag by flag and run on a real file with the output linked. ReelSDK runs the same args as one POST /v1/ffmpeg call at $0.02 per compute minute.
FFmpeg guides you can run on an API
Copy a command to run it on your own machine, or send the same args to ReelSDK's API: ffmpeg 8.1 on a fresh machine per job, input files up to 500 MB and jobs up to 10 minutes.
Updated
Pages
Every guide
The flags column lists the first flags each guide explains.
| Guide | Flags |
|---|---|
| Add a watermark or logo to a video with ffmpeg | -i logo.png scale=360:-1 format=rgba |
| Add faststart to an MP4 with ffmpeg | -movflags +faststart -c copy -v trace |
| Add text to a video with ffmpeg drawtext | fontfile= text='...' fontsize=h/14 |
| Blurred background video with ffmpeg | gblur=sigma=40 crop=1080:1920 scale=1080:-2 |
| Burn subtitles into a video with ffmpeg | subtitles=subs.srt fontsdir=fonts force_style='...' |
| Change the frame rate with ffmpeg | -vf fps=24 -r 24 after -i -r 24 before -i |
| Choose a CRF value in ffmpeg | -crf 23 -preset medium -c:a copy |
| Compress a video with ffmpeg | -crf 28 -c:v libx265 -tag:v hvc1 |
| Concatenate videos with ffmpeg | -f concat file 'part1.mp4' -safe 0 |
| Convert HDR to SDR with ffmpeg | zscale=t=linear:npl=100 format=gbrpf32le zscale=p=bt709 |
| Convert MKV to MP4 with ffmpeg | -map 0 -map 0:v -map 0:a -c copy |
| Convert MOV to MP4 with ffmpeg | -c copy -movflags +faststart -c:v libx264 -crf 20 |
| Convert WebM to MP4 with ffmpeg | -c:v libx264 -crf 20 -c:a aac -b:a 128k |
| Crop a video with ffmpeg | crop=w:h:x:y iw, ih x and y left out |
| Denoise video with ffmpeg | hqdn3d=8:6:12:9 hqdn3d atadenoise |
| Duck music under a voice with ffmpeg | asplit=2 [1:a][key] threshold=0.03 |
| Encode AV1 with ffmpeg | -c:v libsvtav1 -crf 35 -preset 8 |
| Encode H.265 (HEVC) with ffmpeg | -c:v libx265 -crf 28 -preset medium |
| Encode VP9 WebM with ffmpeg | -c:v libvpx-vp9 -crf 32 -b:v 0 |
| Extract audio from a video with ffmpeg | -vn -c:a copy -c:a libmp3lame |
| Extract frames from a video with ffmpeg | fps=1 frame_%02d.jpg -q:v 2 |
| Fade in and fade out with ffmpeg | fade=t=in st=8.767 d=1 |
| ffmpeg -filter_complex explained | split=4 xstack overlay |
| ffmpeg xfade transitions, all 59 rendered | transition=fade duration=1 offset=1 |
| Images to video with ffmpeg | -framerate 1/3 img%02d.jpg -r 30 |
| Ken Burns effect with ffmpeg | z='1+0.12*on/149' d=150 s=1080x1920 |
| Letterbox and pad a video with ffmpeg | pad=1080:1920 (ow-iw)/2:(oh-ih)/2 color=black |
| Loop a video with ffmpeg | -stream_loop 2 -stream_loop -1 -c copy |
| Make a contact sheet from a video with ffmpeg | tile=4x3 select drawtext |
| Make a spectrogram with ffmpeg | -lavfi s=1024x512 legend=0 |
| Make an audio waveform with ffmpeg | aformat=channel_layouts=mono s=1280x320 colors=#7C86F8 |
| Mix two audio tracks with ffmpeg | inputs=2 duration=first weights=1 0.25 |
| Normalize audio loudness with ffmpeg loudnorm | I=-14 TP=-1.5 LRA=11 |
| Picture-in-picture video with ffmpeg | scale=-2:480 pad=iw+12:ih+12:6:6:white overlay=W-w-40:H-h-40 |
| Put two videos side by side with ffmpeg | scale=540:960 hstack=inputs=2 vstack=inputs=2 |
| Remove a green screen with ffmpeg chromakey | chromakey=0x1bb247 :0.15 :0.05 |
| Remove a logo from a video with ffmpeg | delogo=x=1516:y=933 w=368:h=111 show=1 |
| Remove audio from a video with ffmpeg | -an -c:v copy -map 0 |
| Remove silence from audio with ffmpeg | start_periods=1 start_threshold=-50dB stop_periods=-1 |
| Replace the audio in a video with ffmpeg | -map 0:v -map 1:a -c:v copy |
| Resize a video with ffmpeg | scale=1280:-2 -1 iw/2:ih/2 |
| Reverse a video with ffmpeg | reverse areverse scale=-2:540 |
| Rotate and flip a video with ffmpeg | transpose=1 transpose=2 transpose=0, transpose=3 |
| Set the video bitrate with ffmpeg | -b:v 2M -maxrate 2M -bufsize 4M |
| Speed up or slow down video with ffmpeg | setpts=0.5*PTS atempo=2.0 setpts=2.0*PTS |
| Stabilize a shaky video with ffmpeg | shakiness=8 accuracy=15 result |
| Trim a video with ffmpeg | -ss 00:00:10 -to 00:00:20 -t 10 |
| Vertical video dimensions | scale=-2:1920 crop=1080:1920 scale=1080:-2 |
| Video thumbnails with ffmpeg | -ss 4 -frames:v 1 -update 1 |
| Video to GIF with ffmpeg | palettegen paletteuse split |
How the guides are tested
Every guide shows the exact ffmpeg command and a table of its flags. Each command ran on the input file shown on the page, and the output it produced is linked, so you can check the result before you run it yourself.
Each guide also sends the same arguments to POST /v1/ffmpeg and links that output too. The API runs ffmpeg 8.1 on a fresh machine per job with no shell, and ?wait= holds the request for up to 300 s.
Running a guide's command on the API
A POST /v1/ffmpeg body has three main fields. inputs maps the file names in your command to URLs, args is the list of arguments that come after ffmpeg, and outputs names the files to keep. Output links last 7 days.
There is no shell, so args holds no network URLs and no absolute paths other than the bundled fonts in /usr/share/fonts/reelsdk/; refer to the names you set in inputs and outputs. Raw ffmpeg costs $0.02 per compute minute, billed per second with a 1-second minimum, for the machine's whole time on the job: fetching inputs, running ffmpeg and storing outputs. Failed jobs cost nothing.
What POST /v1/ffmpeg accepts
A job downloads up to 50 inputs into its own folder before ffmpeg starts, so ffmpeg needs no network and no path outside that folder. It keeps 1 to 20 outputs, and timeout_s sets how long the command may run, from 1 to 600 s.
Options, filters and formats are checked against an allowlist first; codec names are only checked as plain names. An option, filter or format that is not on it gets a 400 answer before any job starts, so you see the problem in the response instead of in a failed render.
FAQ
Questions, answered
Do I need ffmpeg installed to follow these guides?
Only to run the commands on your own machine. Each guide also gives the matching POST /v1/ffmpeg body, so you can run the same arguments over HTTP with one API key instead.
Which ffmpeg version do the guides use?
ffmpeg 8.1. When you call the API, your args run on ffmpeg 8.1 on a fresh machine per job; a local install of another version can differ in flags and output.
What does running a command on the API cost?
$0.02 per compute minute, billed per second with a 1-second minimum, for the machine's whole time on the job, from fetching inputs to storing outputs. Failed jobs cost nothing. There is no subscription, top-ups start at $5, and your first $0.50 is free.
Are there limits on file size and run time?
Input files can be up to 500 MB each and 1 GB per job. A job runs up to 10 minutes once its inputs are in, and each key runs 3 jobs at once and 500 jobs per UTC day.
Why does the API refuse my command?
Usually an option, filter or format outside the allowlist, or a path or URL inside args. The 400 INVALID_REQUEST answer names the first arg it refused as args[N], with the reason, so you can fix that arg and send it again.
Sources, checked November 2026
Ready to build?
Ship video from your app today
Your first $0.50 is free, and one key covers every endpoint.
