A short-form ad rarely ships as one file. The same cut usually needs a vertical version for Reels, TikTok and Shorts, a square one for feeds, sometimes a 16:9, and a shorter edit for a placement with a tighter limit. If you export from one master, a few ffmpeg commands cover most of it.
First, the targets. TikTok's help page for in-feed ads lists three aspect ratios: 9:16 (the one it recommends), 16:9 and 1:1. For vertical video it gives a minimum of 540×960, a limit of 500 MB, up to 10 minutes of length, and .mp4, .mov, .mpeg, .3gp and .avi as accepted formats. Other platforms publish their own numbers, so check the current page before you export.
Everything below starts from a 1920×1080 master called master.mp4. I ran each command with ffmpeg 6.1 and read the result back with ffprobe.
1. Center crop to 9:16
ffmpeg -i master.mp4 \ -vf "crop=ih*9/16:ih,scale=1080:1920" \ -c:v libx264 -crf 18 -preset medium -pix_fmt yuv420p \ -c:a aac -b:a 192k -movflags +faststart ad_9x16.mp4 The crop keeps the full height and a 9:16 slice of the width. The scale then sets the final size. ffprobe reported 1080×1920, H.264, yuv420p.
2. Move the crop toward the subject
A center crop is wrong when the person or product sits off to one side. Give crop an x position:
ffmpeg -i master.mp4 \ -vf "crop=ih*9/16:ih:'min(iw-ow,max(0,iw*0.30-ow/2))':0,scale=1080:1920" \ -c:v libx264 -crf 18 -pix_fmt yuv420p -c:a aac -b:a 192k ad_9x16_left.mp4 0.30 means the subject's center is 30% of the way across the frame. min and max keep the crop window inside the picture. I compared a frame from this file with the center crop and they differ, so the window did move.
3. Square for feeds
ffmpeg -i master.mp4 -vf "crop=ih:ih,scale=1080:1080" \ -c:v libx264 -crf 18 -pix_fmt yuv420p -c:a aac -b:a 192k ad_1x1.mp4 4. Fit the whole frame instead of cropping
When a crop would cut off something you need, such as a product screenshot, place the full frame over a blurred copy of itself:
ffmpeg -i master.mp4 -filter_complex \ "[0:v]scale=1080:1920:force_original_aspect_ratio=increase,crop=1080:1920,boxblur=30:5[bg];\ [0:v]scale=1080:-2[fg];[bg][fg]overlay=(W-w)/2:(H-h)/2" \ -c:v libx264 -crf 18 -pix_fmt yuv420p -c:a aac -b:a 192k ad_9x16_fit.mp4 5. A shorter cutdown
ffmpeg -ss 2 -i ad_9x16.mp4 -t 6 \ -c:v libx264 -crf 18 -pix_fmt yuv420p -c:a aac -b:a 192k ad_9x16_6s.mp4 This starts at 2 seconds and re-encodes, and ffprobe reported a duration of exactly 6.000000 seconds.
Check before you upload
ffprobe -v error -select_streams v:0 \ -show_entries stream=width,height,codec_name,pix_fmt \ -show_entries format=duration,size -of csv=p=0 ad_9x16.mp4 Compare the size against the platform's limit. My test clip is synthetic, so don't read anything into its file sizes.
What a script can't decide
A crop is one decision for the whole clip. If the subject moves, if the text was placed for 16:9, or if the first three seconds need different timing in vertical, the script gets it wrong and nothing warns you. I do those reframes shot by shot, and I move text into the safe area before I export.
I'm Bhavesh Vaghela, a freelance video editor and motion designer in Rajkot, India. I describe how I deliver ad cutdowns on vaghelabhavesh.com.
Sources, read on 3 December 2026: TikTok Ads Help, Auction In-Feed Ads (page says "Last updated: June 2026") and the FFmpeg filters documentation for crop, scale, overlay and boxblur.