Why Videos Turn Sideways After Converting
Your MOV played fine but the MP4 is sideways? It's a dropped rotation flag, not a broken file. Here's why it happens and how to fix it.
The short answer: it's a metadata flag, not your file
If a video plays right-side-up in one app and sideways in another, the video itself is fine, a small piece of instructions attached to it got lost. Phones and cameras usually record the actual video frames in landscape, no matter which way you were holding the device. Instead of rotating the pixels, the camera writes a "rotate this on playback" flag into the file. Players that read that flag show it correctly; players (or converters) that ignore it show the raw landscape frames, which looks sideways or upside down. This is extremely common with MOV and MP4 files specifically, because that's exactly where the flag lives.
How the rotation flag actually works
MOV and MP4 are container formats, and inside that container each video track carries a small transformation matrix, a set of numbers that can tell a player "rotate this track 90, 180, or 270 degrees before displaying it." This is sometimes called a rotation atom or display matrix. It's not baked into the pixels; it's a separate instruction sitting alongside the encoded video data. QuickTime, VLC, and most modern browsers read this matrix automatically and rotate the frame for you on the fly, so you never notice it's there. The video data on disk is still landscape, only the display instruction says otherwise.
Why converting the file is what breaks it
The problem shows up during conversion because not every tool treats that matrix the same way. Some converters copy the raw video stream, the actual encoded frames, without carrying the rotation matrix along with it, or without correctly re-applying it to the new container. The result is a file whose pixels are still stored landscape but whose "please rotate me" instruction is now missing or wrong. It plays back exactly as recorded, sideways, in any player that isn't independently guessing at the intended orientation. This isn't corruption, the frames are intact, it's a metadata handoff that didn't happen.
Fixing an already-converted file with ffmpeg
There are two fixes, and the first one changed in recent ffmpeg. To set the rotation flag without re-encoding, use `ffmpeg -display_rotation 90 -i input.mp4 -c copy output.mp4`. Put `-display_rotation` before `-i`, and use 90, 180 or 270; ffprobe reports the same number back as the rotation. The older `-metadata:s:v:0 rotate=90` trick no longer does anything: we ran it on ffmpeg 6.1 with `-c copy` and the output had no rotation at all. To bake the rotation into the pixels so every player agrees, re-encode with a transpose filter, for example `ffmpeg -i input.mp4 -vf "transpose=1" output.mp4`. Also note that a plain re-encode of a flagged file applies the flag for you: our 320x180 test clip with a 90 degree flag came out as a 180x320 file with no flag left. That makes the transpose step a trap on a file that still carries a flag: ffmpeg applies the flag first, then your transpose, so the same clip came out as 320x180, rotated twice. Add `-noautorotate` before `-i` if you want to control the rotation yourself, and check with ffprobe before you re-encode.
Fixing it without the command line
If ffmpeg isn't an option, the simplest non-technical fix is to open the sideways file in a video editor that lets you visually rotate it 90, 180, or 270 degrees and save a new copy, this bakes the correct orientation into the video itself, so playback no longer depends on any app reading a flag correctly. Most phone photo apps (iOS Photos, Google Photos) and basic desktop video editors include a rotate option for exactly this. It's an extra step after the fact, but it's reliable across every player afterward, which a metadata flag alone isn't.
Avoiding this the next time you convert
There's no universal setting on your phone that prevents this, since the rotation flag is standard behavior, not a bug to disable. What helps is being deliberate about the tools in the chain: use a converter that's built to read and preserve rotation metadata rather than blindly copying the video stream, and be aware that some phone or OS-level "save a copy" or re-share actions re-encode video and can silently drop the flag even before you run a separate converter. When picking a converter, look for one that explicitly mentions handling orientation correctly, [PixelTools' MOV to MP4 converter](/convert-video/mov-to-mp4) is one option worth trying, and always play back the result before deleting your original, so a dropped flag is a quick re-convert rather than a lost recording. That tool tries a plain stream copy first specifically because remuxing without re-encoding leaves the container's rotation matrix completely untouched; it's only the re-encode fallback, used when the source codec isn't compatible, where metadata like this is at any real risk.
Frequently asked questions
Try it on PixelTools — free, no upload needed