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.mp4When to use it
- fast orientation hints
- phone videos
- no-quality-loss edits
How it works
- Upload the video file.
- Change the rotate value if needed.
- Run FFmpeg and download the metadata-rotated file.
Option reference
| Option | What it does |
|---|---|
-c copy | Copies streams without re-encoding. |
-metadata:s:v:0 rotate=90 | Sets rotation metadata on the first video stream. |
rotate=90 | Requests 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.