read video rotation

Started by ben80, January 29, 2022, 06:43:38 AM

Previous topic - Next topic

ben80

Hello everyone,

i once in a while use exiftool to read metadata from images.
Excellent tool, thanks a lot for providing it!

Now, i would like to read the rotation of video files.
Is this  possible with exiftool?
I tried it with ffprobe (part of ffmpeg tools) and it seems to work. But i would prefer to do it with exiftool.

Thanks  a lot
Ben

Phil Harvey

Hi Ben,

Try this:

exiftool -rotation FILE

This should work for MOV and MP4 videos.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

ben80