# FFmpeg scale and fps handoff checklist: prove size, frame timing, and audio before delivery Published: 2026-11-07 (Asia/Shanghai) Companion review: https://toolbrivio.com/articles/ffmpeg-scale-fps-handoff-review.html Make each clip the same size and frame rate before handing it to another editor. Use the command below for the tested target, then inspect the output. An exit code of 0 is not the delivery gate: a file can still have the wrong frame timing, pixel shape, or duration. This is the working checklist, not another benchmark. The companion FFmpeg scale and fps handoff review holds the comparison tables and frame-drop discussion. Test record: November 7, 2026 (Asia/Shanghai), FFmpeg/ffprobe 7.1.5-0+deb13u1 on Debian GNU/Linux 13. All fixtures are locally generated testsrc2 pictures with sine tones, not real phone, camera, or screen recordings. The procedure below uses the tested 1920x1080, 30 fps target. Other delivery targets need their own verification. ## 1. Write the delivery contract before encoding - [ ] Agree on 1920x1080, square pixels (SAR 1:1), constant 30 fps, and AAC at 48000 Hz if those are the receiving editor's requirements. Keep the originals; write a separate handoff file. - [ ] Decide whether dropped or repeated frames are acceptable. fps=30 does not preserve every source frame and does not create motion-interpolated frames. If every captured frame must survive, HOLD and agree on another workflow. - [ ] Record the local tool versions and make a short trial before converting the whole batch. Do not treat the lab settings as an editor compatibility certificate. ```sh ffmpeg -version ffprobe -version ``` ## 2. Probe each input, including audio ```sh ffprobe -v error -show_entries "stream=index,codec_type,codec_name,width,height,sample_aspect_ratio,pix_fmt,avg_frame_rate,r_frame_rate,time_base,start_time,duration,nb_frames,sample_rate,channels:format=duration,size" -of json input.mp4 > input-probe.json ``` - [ ] Record dimensions, SAR, both frame-rate fields, video duration, audio duration and sample rate. Keep the JSON beside the source filename. This command expects one video and one audio stream in the later encode step; stop and choose a mapping policy for silent or multitrack sources. The synthetic screen source was 1366x768, with avg_frame_rate=40/1 and r_frame_rate=60/1, AAC at 44100 Hz, and a 4.000000 s duration. Its actual frame gaps were 1/60 s and 1/20 s. A header rate alone is not proof of constant timing. ## 3. Encode one trial with the whole chain ```sh ffmpeg -i input.mp4 -map 0:v:0 -map 0:a:0 \ -vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30" \ -c:v libx264 -preset veryfast -crf 20 -pix_fmt yuv420p \ -af aresample=48000:async=1 -c:a aac -b:a 160k \ handoff.mp4 printf "EXIT=%s\n" "$?" ``` The line continuation and exit-code command above use a POSIX shell. Pick a new output filename. Without -y, FFmpeg asks before overwriting an existing file. - [ ] Keep fit, pad, setsar, and fps together. The chain fits the picture inside the target, fills leftover space with black, sets square pixels, and puts frames on the output timing grid. Inspect the picture too; do not assume every input aspect or pixel format behaves like these fixtures. - [ ] Re-encode video. Do not replace libx264 with -c:v copy while filtering. Our filter-plus-copy run exited 218 and produced no output. If the agreed contract allows the existing audio rate, the tested alternative is to remove the entire -af option and replace the AAC encode options with -c:a copy. On the screen fixture, that kept 44100 Hz and a 4.000000 s audio duration. It did not normalize the batch to 48000 Hz. Do not combine an audio filter with audio stream copy. ## 4. Check dimensions, pixels, and both stream durations ```sh ffprobe -v error -count_frames -show_entries "stream=index,codec_type,codec_name,width,height,sample_aspect_ratio,pix_fmt,avg_frame_rate,r_frame_rate,time_base,start_time,duration,nb_read_frames,sample_rate,channels:format=duration,size" -of json handoff.mp4 > handoff-probe.json ``` - [ ] PASS only if the video meets the agreed dimensions, SAR, pixel format, and rate. In the tested full-chain files these were 1920x1080, 1:1, yuv420p, and 30/1 for both rate fields. - [ ] Compare input and output video duration, then compare video and audio end times. Do not look only at format.duration. Investigate an unexpected change before delivery. All three full-chain video streams were 4.000000 s with 120 frames. The phone and camera outputs had 4.010000 s audio and container duration; the resampled screen output had 4.017000 s audio and container duration. Those small measured tails are not proof of lip sync. Agree on acceptable end behavior rather than silently trimming it. ## 5. Prove frame spacing, not just the average rate ```sh ffprobe -v error -select_streams v:0 -show_frames \ -show_entries frame=best_effort_timestamp -of json handoff.mp4 > handoff-frames.json ffprobe -v error -select_streams v:0 -show_packets \ -show_entries packet=duration -of json handoff.mp4 > handoff-packets.json ``` Use the video time_base from handoff-probe.json. Subtract each adjacent best_effort_timestamp value and multiply by that time base. Count the distinct gaps; skip no frames. Packet duration values use the same stream time base. Save the counts, not just a screenshot of the average rate. - [ ] For our tested outputs, time_base was 1/15360. All 119 adjacent frame gaps were 1/30 s and all 120 packet durations were 512 ticks. For another clip length, expect a different count; require the same agreed spacing, allowing only documented timestamp quantization. - [ ] FAIL a resized VFR file that still has mixed gaps. The scale-only screen control stayed at 1/60 s x119 plus 1/20 s x40. FAIL an fps-only output if its dimensions are still 1366x768 or 3840x2160 instead of the target. ## 6. Stop on loud failures and silent traps - [ ] FAIL a nonzero exit or empty output. scale=1919:1080 with libx264 exited 187 and left a 0-byte file. File existence is not success. - [ ] Do not assume scale=-1:720 gives an even width. The 1365x767 fixture became 1281x720 and failed with exit 187. scale=-2:720 passed at 1282x720, but SAR was 37800:37819 without setsar. That is an even-width example, not a substitute for the full handoff contract. - [ ] FAIL input -r used to force the rate. In our -r 30 before -i control, exit was 0 but video became 8.000000 s / 240 frames while audio was 4.010000 s. Use the fps filter and compare durations. - [ ] FAIL a square-pixel contract if SAR disagrees. Hard scale=1920:1080,fps=30 on the screen fixture exited 0 but produced SAR 2049:2048. Keep aspect handling in the checklist. ## 7. Open the trial in the receiving editor - [ ] HOLD until the receiving editor checks import, project settings, playback, framing, and audio at the start and end. This acceptance step was not run in our lab. A successful probe is necessary here, but it is not an NLE test. - [ ] For speech or long recordings, check lip sync and drift at several points. Our short test tones cannot establish either. Do not claim aresample=48000:async=1 fixed sync just because the command finished. ## 8. Attach the proof and sign off - [ ] Keep the source and output filenames, tool versions, full encode command, exit code, input/output probes, frame-gap counts, and audio-rate decision together. Include the receiving editor's acceptance or leave the delivery on HOLD. - [ ] PASS only after all agreed fields match. FAIL on a bad exit, empty output, wrong dimensions, variable output timing, or an unexplained duration change. HOLD on untested media characteristics or missing editor acceptance. Run the same checks on each remaining file, not only the first trial. ## Evidence checkpoints Use these as lab examples, not size targets for your own footage. The full-chain phone output was 1,683,234 B; camera output 3,521,460 B; screen output 2,625,969 B. All had the video timing described above. The audio-copy screen output was 2,611,253 B and retained 44100 Hz. Trace: evidence/ffmpeg-scale-fps-handoff/NOTES.md records the source and PASS matrices and failure cases. run-lab.sh records the commands. summary-probes.json and probes/ hold dimensions, stream durations and frame timing; sizes-bytes.txt holds exact bytes. logs/pass-*.log and logs/fail-*.log plus exit-codes.txt record encoder outcomes. The silent duration trap is in logs/trap-input-r30.log and its matching probe; the SAR trap is in logs/trap-hardscale-stretch.log and its matching probe. ## Download the checklist Download the checklist (Markdown). Keep it with the probes and fill in each box before delivery. For the control runs and the cost of dropped or repeated frames, return to the companion review. ## Honest limits Not tested: real phone, camera or OBS media; NLE import or timeline playback; GPU/NVENC/VAAPI; minterpolate or scene-aware interpolation; HDR/10-bit; interlaced inputs; speech lip sync; long-recording drift; upload previews; large-file speed; or subjective image quality. This checklist does not certify those paths. Other frame-rate targets and audio/channel layouts need separate trial probes. No deep retests of unrelated workflows are included. ## FAQ ### Can I use -c:v copy to normalize size and frame rate? No. Filtering requires video encoding. The lab command combining scale=1280:720 with -c:v copy exited 218 and produced no output. ### Does scale alone make a VFR clip constant frame rate? No. The scale-only screen control retained 1/60 s and 1/20 s frame gaps. Keep fps=30 in the chain and verify output timestamps. ### Are matching avg_frame_rate and r_frame_rate enough? No. Inspect adjacent frame timestamps and compare stream durations too. Our input -r 30 trap reported 30/1 but doubled video duration to 8.000000 s. ### Should I copy or resample audio? Use the agreed handoff contract. The tested copy path retained 44100 Hz; the resample-and-AAC path produced 48000 Hz. Neither short synthetic run proves lip sync or long-recording stability. ### What still needs a HOLD after the probes pass? Receiving-editor acceptance, real-footage behavior, speech sync, and long-recording drift still need checks. Those were not tested in this lab.