Browser FFmpeg recipe

Rotate Video Metadata Online with FFmpeg

Write a 90 degree rotation hint without re-encoding streams.

Command

Run this FFmpeg command

ffmpeg -i input.mp4 -c copy -metadata:s:v:0 rotate=90 rotate-metadata.mp4

When to use it

  • fast orientation hints
  • phone videos
  • no-quality-loss edits

How it works

  1. Upload the video file.
  2. Change the rotate value if needed.
  3. Run FFmpeg and download the metadata-rotated file.

Option reference

OptionWhat it does
-c copyCopies streams without re-encoding.
-metadata:s:v:0 rotate=90Sets rotation metadata on the first video stream.
rotate=90Requests a 90 degree playback rotation hint.

Practical notes

  • Some players ignore rotation metadata. Use rotate video for a visual rotation.
  • This is fast because frames are not re-encoded.

FAQ

Is this the same as rotating pixels?

No. It writes a playback hint instead of changing every frame.

Why use metadata rotation?

It is fast and preserves quality when the target player respects the metadata.