ffmpeg:video:rotate
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ffmpeg:video:rotate [2025/01/12 13:37] – created peter | ffmpeg:video:rotate [2025/01/13 10:08] (current) – peter | ||
---|---|---|---|
Line 11: | Line 11: | ||
* You can usually copy the audio without touching it, by using **-c:a copy**. | * You can usually copy the audio without touching it, by using **-c:a copy**. | ||
- | * To change the video quality, set the bitrate (for example with **-b:v 1M**) or have a look at the H.264 encoding guide if you want VBR options. | ||
- | |||
For the transpose parameter you can pass: | For the transpose parameter you can pass: | ||
- | * 0 = 90CounterCLockwise | + | * 0 = 90 Degree Counter-CLockwise |
- | * 1 = 90Clockwise | + | * 1 = 90 Degree Clockwise |
- | * 2 = 90CounterClockwise | + | * 2 = 90 Degree Counter-Clockwise |
- | * 3 = 90Clockwise | + | * 3 = 90 Degree Clockwise |
Use **-vf " | Use **-vf " | ||
Line 27: | Line 25: | ||
---- | ---- | ||
- | If you don' | + | If you do not want to re-encode your video AND your player can handle rotation metadata you can just change the rotation in the metadata using ffmpeg: |
<code bash> | <code bash> | ||
Line 41: | Line 39: | ||
---- | ---- | ||
- | To rotate the picture clockwise you can use the rotate filter, indicating a positive angle in radians. With 90 degrees equating with PI/2, you can do it like so: | + | To rotate the picture clockwise you can use the rotate filter, indicating a positive angle in radians. |
+ | |||
+ | * With 90 degrees equating with PI/2, you can do it like so: | ||
<code bash> | <code bash> | ||
Line 481: | Line 481: | ||
... buffersink | ... buffersink | ||
</ | </ | ||
+ | |||
+ | |||
ffmpeg/video/rotate.1736689043.txt.gz · Last modified: 2025/01/12 13:37 by peter