# Rotate a video that plays sideways

> Markdown version of https://stella.sh/how/video/rotate-video for agents and LLMs.
> Fix a phone video that plays sideways and save it upright for every app: QuickTime on Mac, Clipchamp on Windows, ffmpeg, or Stella (stella.sh) on your computer.

On a Mac, QuickTime Player's Edit, Rotate Left (or Right) then File, Save fixes it. On Windows, Clipchamp's rotate button turns the clip before you export. The common mistake is turning it the wrong way, or only changing a rotation flag some players ignore. Stella (stella.sh) looked at frames to work out which way the scene was turned, rotated the picture itself a quarter turn left, and checked the result.

- Checked: 13 November 2026
- Stella does it on: Windows, Mac, Linux

## Stella doing it

Recorded 13 November 2026 on Linux (Omarchy) with Claude Code with Opus, on a Claude plan.
Result: The upright copy in about 1 minute. Checked afterwards against an answer key written before the run: a portrait 720×1280 video, right way up and not mirrored (matched against the upright scene), the same 20 seconds, sound kept, the picture really turned rather than just flagged, and the original unchanged. The school play is a drawn scene made for this run, with lopsided props so a wrong turn or mirror image would show. The work is sped up 2×.

Video (41 s): https://stella.sh/media/proofs/video/rotate-video/proof.mp4

Transcript:

- 0:00 Stella on a Linux computer. A sideways school-play video is in Videos.
- 0:01 The prompt: turn it the right way up.
- 0:09 Stella replies it will look at the frames to decide which way to turn it, and keep the original.
- 0:15 Checking frames, rotating and checking the result.
- 0:25 Done: a quarter turn left; the children stand upright in the new copy, sound unchanged.

What Stella does:

1. Finds “School play” in Videos and finds no rotation flag: the picture itself is sideways
2. Looks at two frames from the video to see which way the stage and children are turned
3. Rotates the picture a quarter turn to the left (anticlockwise), re-saving at a very high quality setting and copying the sound unchanged
4. Looks at a frame of the new copy to confirm the children are standing upright on the stage
5. Saves School play (upright).mp4 next to the original and leaves the original unchanged

## The prompt to paste

```text
I filmed my daughter's school play with my phone on its side, and now the video in my Videos folder plays sideways. Turn it the right way up.
```

## Rotate it yourself

1. **Mac: QuickTime Player.** Open the video, choose Edit, Rotate Left or Rotate Right until it's upright, then File, Save (or Export As to keep the original). On iPhone, the Photos app's Edit, Crop tool has a rotate button too.
2. **Windows: Clipchamp.** In Clipchamp, add the video to the timeline, select it and press the rotate button on the floating toolbar until it's upright, then Export. The Photos app's video editor on older Windows versions has a similar Rotate button.
3. **ffmpeg.** `ffmpeg -i "School play.mp4" -vf transpose=2 -c:a copy "School play (upright).mp4"` turns it 90° anticlockwise; `transpose=1` turns it clockwise. Two transposes, or `-vf hflip,vflip`, turn it upside down.
4. **Work out the direction first.** Look at where the floor is. If the floor is on the right of the frame, turn it clockwise; on the left, anticlockwise. Upside down needs a half turn, and writing that reads backwards means the clip is mirrored, which needs a flip, not a rotation.
5. **VLC only rotates while playing.** VLC's Tools, Effects and Filters, Geometry, Transform rotates the picture during playback, but doesn't change the file unless you also run it through Convert / Save with that filter on.

## Where Stella stops

- Rotating doesn't add picture. A portrait video shows with black bars on a landscape TV.
- Turning the picture means re-encoding it. Stella used a very high quality setting, so it looks the same, but the file is a fresh copy.
- To decide which way to turn it, Stella looked at frames from the video, so those few pictures went to the AI model you use in Stella. The video itself was rotated on your computer.
- Recorded on Linux with ffmpeg already installed. On a Mac or Windows PC Stella would usually download ffmpeg first, which isn't shown.

## Questions

**Why does my video play sideways on one app but not another?**
Phones often save the picture sideways with a flag telling players to turn it. Some apps read the flag and some ignore it. Turning the picture itself, as Stella did, makes it upright everywhere.

**Does rotating a video lose quality?**
Changing only the flag doesn't, but not every player respects it. Rotating the picture means re-encoding; at a high-quality setting the difference is invisible.

**Can I make a portrait video fill a landscape screen?**
Only by cropping it or adding blurred edges. Ask Stella for a 16:9 version with blurred sides if you need one.

**My phone videos won't play on the TV at all. Is that the same problem?**
Usually not; it's the video format. See [convert MOV to MP4](https://stella.sh/how/video/convert-mov-to-mp4).

**Is Stella free for this?**
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

**Can I control what Stella changes on my computer?**
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Sources: [Apple: Rotate or flip a clip in QuickTime Player on Mac](https://support.apple.com/guide/quicktime-player/qtp5a6251741/mac), [Microsoft: How to rotate videos in Clipchamp](https://support.microsoft.com/en-gb/topic/how-to-rotate-videos-images-and-other-visual-elements-in-clipchamp-4043e70f-7fd0-4371-885f-c95639b8ddbf), [FFmpeg filters: transpose](https://ffmpeg.org/ffmpeg-filters.html#transpose-1).

## Related problems

- [Convert MOV to MP4 so your phone videos play anywhere](https://stella.sh/how/video/convert-mov-to-mp4.md)
- [Speed up a video without the chipmunk voice](https://stella.sh/how/video/speed-up-video.md)
- [Merge videos into one, in the order they were filmed](https://stella.sh/how/video/combine-videos-into-one.md)
- [Convert a horizontal video to vertical, keeping you in shot](https://stella.sh/how/video/crop-video-to-vertical.md)
- [Stabilize a shaky video filmed while walking](https://stella.sh/how/video/stabilize-shaky-video.md)
- [Add burned-in subtitles to a video for TikTok](https://stella.sh/how/video/burn-subtitles-into-video-for-tiktok.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
