User Tools

Site Tools


ffprobe:video:rotate

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ffprobe:video:rotate [2025/01/13 10:12] peterffprobe:video:rotate [2025/01/13 10:20] (current) peter
Line 16: Line 16:
 ---- ----
  
-===== With Grep =====+==== Getting Width, Height, Rotation ==== 
 + 
 +<code bash> 
 +ffprobe -v error -select_streams v:0 -show_entries stream=width,height:stream_tags=rotate -of csv=p=0 input.mp4 
 +</code> 
 + 
 +returns: 
 + 
 +<code bash> 
 +1920,1080,270 
 +</code> 
 + 
 +<WRAP info> 
 +**NOTE:**  Even though the rotation here is 270, the width and height are still shown as if the orientation was portrait. 
 + 
 +  * Due to the 270 rotation, in reality the actual input should be 1080x1920, and not 1920x1080. 
 +    * But ffprobe reports the actual width x height; Width is displayed first, then height (no matter the order it is requested). 
 + 
 +</WRAP> 
 + 
 + 
 +---- 
 + 
 +===== Using Grep =====
  
 <code bash> <code bash>
ffprobe/video/rotate.1736763134.txt.gz · Last modified: 2025/01/13 10:12 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki