HandBrake Guide

How to Rotate a Video 90° in HandBrake

Turn a sideways clip in HandBrake, check its crop and output size, and choose the right workflow when the video stream must be copied.

Two lighthouse film frames, one sideways and one upright

Open the clip in HandBrake, choose a preset for the receiving device, then go to Dimensions → Rotation. Select 90° for a clockwise turn or 270° for a quarter-turn to the left. Check the picture in Preview and encode to a new filename. This turns the picture in the exported frames, so choose the size and quality you want for the new video.

Find Rotation on your platform

In HandBrake 1.11.2, the rotation control sits with the other picture settings. If an older guide sends you to Filters or Extra Options, start in Dimensions and look for the control below.

PlatformControl
WindowsDimensions → Orientation and Cropping → Rotation
macOSDimensions → Orientation & Cropping → Rotation
LinuxDimensions → Orientation & Cropping → Rotation
  1. Open the original and choose your preset. Choose for the intended player or upload service first. Loading a different preset later can change rotation and the other picture settings.
  2. Select the direction. Look at a face, sign or horizon in Preview. Turn the picture right with 90°, left with 270°, or choose 180° if the picture is upside down.
  3. Check the shape. Compare the output width and height after the turn. Look at the crop, borders and resolution limit while you're still in Dimensions.
  4. Encode to a separate file. Choose a new destination name and check a short sample before processing a long recording or an entire queue.
HandBrake Windows Orientation and Cropping with Rotation 90 and Horizontal Flip unchecked
Set Rotation to 90 for a clockwise turn. Leave Horizontal unchecked if the picture should keep its mirror orientation. Open full size.

The Horizontal flip control mirrors the picture. Leave it unchecked when you want an ordinary turn. If a front-camera recording is upright but its lettering reads backward, check whether mirroring is the change you wanted. The current HandBrake rotation options offer quarter-turns and a separate flip. For a small tilt, straighten the clip in a video editor before encoding.

Use Preview to check what the source already does

A phone can store the pixels sideways and tell a player how to turn them using display metadata. HandBrake 1.11.2 reads the source display matrix and can apply the recognized orientation while decoding. With the source loaded and no extra rotation selected, look at Preview. If the person or horizon is already upright, leave the extra rotation at 0°.

Compare the original in the app you plan to use and in a second player if the two views disagree. An orientation case involving Lightroom describes files that showed the wrong orientation in one app during a session. That comparison tells you whether the file needs a new delivery copy or whether the current playback view is causing the problem. For an upload service that displays a sideways source, a sample with the rotation applied to the picture can verify the result.

I pick a frame with something recognizable instead of judging by the outline of the Preview window. Windows and players can fit a vertical video inside a wide pane. A readable sign, upright person or level horizon tells you which way the picture itself has turned.

Keep the size and shape you want after the turn

An uncropped square-pixel frame measuring 1920 × 1080 becomes 1080 × 1920 after a quarter-turn if you keep every pixel and apply no resizing. A half-turn keeps the same width and height. If your final size differs, check the other picture settings before changing the angle again.

  • Resolution Limit. A preset can impose a maximum size. Choose None if you intend to retain the rotated source size and your destination allows it. Use the required limit if the player or upload service specifies one. The HandBrake resizing guide explains how the limit and Allow Upscaling affect the image.
  • Cropping. Inspect the edges after turning the picture, especially on clips with text near the edge. Select None when you want to keep the whole source raster. Use Custom once you've decided exactly which edges should be removed.
  • Borders and aspect. Check the reported storage and display dimensions. Existing bars in the picture turn with it, and added borders can change the delivered frame. Use the HandBrake aspect ratio guide if you need to crop or pad an already upright picture to fit a vertical canvas.
HandBrake Windows Scaled Size showing 1080 by 1920
Check the Scaled Size for the intended portrait frame. This example shows 1080 × 1920. Open full size.

Then check timing. If the original phone clip is 60 fps and the receiver needs that motion, a preset with a 30 fps peak frame-rate limit can remove frames. Inspect the frame-rate setting before the sample.

Verify orientation and playback in the saved file

Open Preview and look at more than one point in the title. Once you've selected the audio and subtitle tracks you need, make a short encode to check them with the picture. Use the HandBrake preview controls for a quick sample. On Windows 1.11.2, select Encode Preview. To sample a specific scene, choose Range → Seconds in the main window. Restore the full range before encoding the finished video.

HandBrake Windows Preview showing an upright portrait frame
Inspect the orientation in Preview, then play an encoded sample to check the delivered picture. Open full size.

Play the sample in the receiving app. Check the direction, displayed size, and wanted soundtrack. If the picture is upside down everywhere, reopen the original, set Rotation to 0° and inspect Preview to find the turn it needs. If the mismatch appears in just one player, inspect its display behavior before running another encode.

For a batch of phone clips, preview each title before adding it to the queue. A preset may give all of them the right size and format while individual clips still need different turns.

HandBrake encodes the video for the new file. A compatible audio track can use audio Passthru. Start with the preset's quality setting and check detail and motion in the sample at the intended viewing size before changing it.

Change the display instruction when the video must be copied

Use a tool with stream copy when you only want a supported player to display the existing encoded picture in a new direction. FFmpeg's display rotation option sets an absolute counterclockwise angle. The example below requests a 90° clockwise display turn for an MP4 whose stored picture needs that correction. It copies the first video stream and any audio streams to a separate MP4. If you need subtitles or other streams in the copy, review which streams the command maps before you use it.

ffmpeg -n -display_rotation:v:0 -90 -i "input.mp4" -map 0:v:0 -map "0:a?" -c copy "display-rotated.mp4"

Use a build that supports -display_rotation and an output container that can store the transform. The receiving player must honor that display instruction. Check it there before replacing any working copy. If a player or upload service needs the stored picture itself to be upright, use the HandBrake rotation and encode steps above.

For HandBrakeCLI jobs, the versioned CLI reference gives --rotate=angle=90:hflip=0 as the setting form for a clockwise turn with flipping disabled. Add it to your encode command and check the output dimensions and orientation. Current GUI and CLI settings use an angle in degrees, so check your version's help before applying numbers from older tutorials.

Filed under Convert video