ffprobe:video:rotate
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ffprobe:video:rotate [2025/01/13 10:12] – peter | ffprobe: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, | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | 1920, | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * 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). | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Using Grep ===== | ||
<code bash> | <code bash> |
ffprobe/video/rotate.1736763134.txt.gz · Last modified: 2025/01/13 10:12 by peter