User Tools

Site Tools


ffmpeg:video:rotate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
ffmpeg:video:rotate [2025/01/13 10:05] peterffmpeg: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 and Vertical Flip (default) +  * 0 = 90 Degree Counter-CLockwise and Vertical Flip (default) 
-  * 1 = 90Clockwise +  * 1 = 90 Degree Clockwise 
-  * 2 = 90CounterClockwise +  * 2 = 90 Degree Counter-Clockwise 
-  * 3 = 90Clockwise and Vertical Flip+  * 3 = 90 Degree Clockwise and Vertical Flip
  
 Use **-vf "transpose=2,transpose=2"** for 180 degrees. Use **-vf "transpose=2,transpose=2"** for 180 degrees.
Line 27: Line 25:
 ---- ----
  
-If you don'want to re-encode your video AND your player can handle rotation metadata you can just change the rotation in the metadata using ffmpeg:+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>
ffmpeg/video/rotate.1736762722.txt.gz · Last modified: 2025/01/13 10:05 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki