
Phone clips often look upright in the stock player and lie on their side in the edit. The file may store landscape pixels plus a displaymatrix that some tools honor and some ignore. For a handoff every downstream tool can trust, bake the orientation into the picture, then prove it with a probe and a frame grab.
This is the working checklist, not another benchmark. The companion FFmpeg rotate phone handoff review holds the comparison tables, leftover-matrix trap, and community links.
Test record: November 9, 2026 (Asia/Shanghai), FFmpeg/ffprobe 7.1.5-0+deb13u1 on Debian GNU/Linux 13. All fixtures are local lavfi color cards with drawtext labels and a sine tone, not real phone, GoPro, or NLE exports. Numbers below are lab examples, not size targets for your footage.
1. Write the orientation contract before encoding
ffmpeg -version
ffprobe -version
2. Probe side_data, not only tags.rotate
ffprobe -v error -show_entries "stream=index,codec_type,codec_name,width,height,side_data_list:stream_tags=rotate:format=duration,size" -of json input.mp4 > input-probe.json
Lab sources: lying-no-meta.mp4 was 1920x1080, 120 frames, 4.000000 s video and audio, AAC 48 kHz, 84,336 B, no rotation. lying-with-meta.mp4 matched those bytes after stream copy and added Display Matrix rotation 90. The upright reference portrait-upright.mp4 was 1080x1920 at 84,114 B.
3. Grab one frame with -noautorotate and one without
ffmpeg -noautorotate -ss 1 -i input.mp4 -frames:v 1 noauto-t1.png
ffmpeg -ss 1 -i input.mp4 -frames:v 1 auto-t1.png
4. Bake one trial with transpose (or autorotate encode)
ffmpeg -i lying-no-meta.mp4 -map 0:v:0 -map 0:a:0 \
-vf "transpose=clock" \
-c:v libx264 -preset veryfast -crf 20 -pix_fmt yuv420p \
-c:a copy upright.mp4
printf "EXIT=%s\n" "$?"
transpose=clock is 90 degrees clockwise. Use cclock for counterclockwise. Stack two for 180. The line continuation and exit-code command use a POSIX shell. Pick a new output filename. Without -y, FFmpeg asks before overwriting.
Primary PASS on the untagged lying fixture: EXIT 0, 1080x1920, 120 frames, 4.000000 s on both streams, AAC 48 kHz copy, no Display Matrix, 84,123 B. A t=1 s frame put the red TOP bar back at the top.
5. Prove upright pixels and a clean matrix
ffprobe -v error -show_entries "stream=index,codec_type,width,height,side_data_list,duration,nb_frames:stream_tags=rotate:format=duration,size" -of json upright.mp4 > upright-probe.json
ffmpeg -noautorotate -ss 1 -i upright.mp4 -frames:v 1 upright-t1.png
6. Stop on loud failures and silent traps
7. Open the trial in the receiving editor
8. Attach the proof and sign off
Evidence checkpoints
Use these as lab examples, not size targets for your own footage. PASS transpose=clock on the untagged lying fixture: 84,123 B at 1080x1920. Autorotate encode of the tagged fixture: 84,346 B. Clear-only and rotate=0 controls: 84,336 B (stream copy, still sideways). Wrong-direction trap: 84,346 B. Filter-plus-copy: EXIT 218. Odd transpose: EXIT 187.
Trace: evidence/ffmpeg-rotate-phone-handoff/NOTES.md records the source, PASS, control, and trap matrices. run-lab.sh records the commands. summary-probes.json and probes/ hold dimensions and side_data; sizes-bytes.txt holds exact bytes; exit-codes.txt and logs/ record encoder outcomes; frames/ holds the t=1 s grabs; verification.txt shows 19/19 checks passed.
Download the checklist
Download the checklist (Markdown). Keep it with the probes and fill in each box before delivery. For the control runs, leftover-matrix trap, and community links, return to the companion review.
FAQ
Can I bake rotation with -vf transpose and -c:v copy?
No. Filtering cannot use stream copy. Our command with -vf transpose=clock and -c:v copy exited 218 and wrote no output file.
Does clearing displaymatrix make the picture upright?
No. -display_rotation 0 with -c copy cleared the matrix and kept 84,336 bytes, but the picture stayed 1920x1080 with the red TOP bar on the left. On 7.1.5, -metadata:s:v:0 rotate=0 also left Display Matrix rotation 90 in place.
Why can a wrong transpose still look like a probe PASS?
Wrong-direction transpose=cclock on our lying fixture exited 0 at 1080x1920 and 84,346 B with no matrix. The t=1 s frame had TOP at the bottom, upside down. Grab a frame; do not trust dimensions alone.
What if transpose leaves displaymatrix behind?
With -noautorotate plus transpose=clock on a tagged input, pixels became 1080x1920 upright at 84,123 B, but rotation 90 side data remained. A default decode then rotates again. Remux with -display_rotation 0 -c copy to strip it.
What still needs a HOLD after the probes pass?
Receiving-editor acceptance, real phone or GoPro footage, upload-preview auto-correct, GPU encoders, and speech lip sync were not tested in this lavfi lab. Leave those on HOLD until checked.
Honest limits
Not tested: real iPhone, Android, or GoPro footage; Premiere / Resolve / Final Cut import or timeline playback; upload-preview auto-correct; GPU/NVENC; vendor-private atoms; ExifTool writes; speech lip sync; long recordings; subjective image quality; batch GUI tools. Fixtures were lavfi/synthetic. This checklist does not certify those paths. No deep retests of scale+fps, replace-audio, Shorts crop/pad, concat, burn-in, loudnorm, or thumbnail workflows are included.