Rotation metadata
Posted: Thu Apr 22, 2021 1:54 am
Some files from my Sony A7s III have rotation metadata when shot upside down or sideways - similar to a lot of phone footage I imagine. I use ffastrans to make proxies for work, but ffastrans is not applying this rotation when exported.
The problem is Premiere applies this on import, with no way of turning it off, and this leads to proxies not matching the raw footage...
However with testing I realise that natively ffmpeg applies this rotation when exporting to a format that doesn't support the flag (unless the flag is set to 90° instead of 180° in which case I get an error which is annoying).
FFastrans on the other hand completely ignores this it seems? Is there a way to apply the rotation to the export? I realise there is a flip effect (which only flips horizontally or vertically) and %i_rotation% variable but what should it be looking for? This is what mediainfo says in the original file:
Rotation : 90°
Checking the logs of my conditional nodes I'm confused why it's saying the rotation is 0:
But earlier I see references to rotation:
The problem is Premiere applies this on import, with no way of turning it off, and this leads to proxies not matching the raw footage...
However with testing I realise that natively ffmpeg applies this rotation when exporting to a format that doesn't support the flag (unless the flag is set to 90° instead of 180° in which case I get an error which is annoying).
FFastrans on the other hand completely ignores this it seems? Is there a way to apply the rotation to the export? I realise there is a flip effect (which only flips horizontally or vertically) and %i_rotation% variable but what should it be looking for? This is what mediainfo says in the original file:
Rotation : 90°
Checking the logs of my conditional nodes I'm confused why it's saying the rotation is 0:
Code: Select all
1st evaluation of \"%i_rotation% = 90\" is \"0 = 90\""}},
Code: Select all
"Rotation":"90.000","Rotation_String":"90°"
Code: Select all
"Megapixels":8.3,"AvgBitrate":"212 Mbps","Rotation":90}]},
Code: Select all
displaymatrix: rotation of -90.00 degrees\r\n Stream #0:1(und): Audio: