FG
💻 Software

FFmpeg command to rotate an MP4 file by 90º

Fresh5 days ago
Mar 15, 202630878 views
Confidence Score0%
0%

Problem

Can I rotate (save, reencode) a .mp4 file with ffmpeg? The only thing I found was on the mailinglist saying but ffmpeg says that "there are no vfilters". I tried , it says there is "no rotate". If I try to do it in VLC, it simply does not rotate and kills the audio. I'm on a Mac.

Error Output

FFmpeg version git-svn-r23607, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jun 14 2010 23:52:55 with gcc 4.2.1 (Apple Inc. build 5659)
 …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: FFmpeg command to rotate an MP4 file by 90º

Low Risk

With the current version pulled from SVN, you can rotate video using -vf "transpose=1". Here's an example: docs + options for transpose command are here (here's how I built ffmpeg in case this helps)

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment