Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script still works after 10 years! Add exiftool matrix info for geeky output? #4

Open
mackonsti opened this issue Jun 17, 2019 · 0 comments

Comments

@mackonsti
Copy link

mackonsti commented Jun 17, 2019

Hello and a huge thanks for your script. I've been searching many times the net for a solution and somewhat did not stumble all these years, but tonight. Thank you, thank you, thank you. I had found a very nice and clean solution with ffmpeg (keeping most of the iOS metadata but MOV to MP4) but your script is a gem; those 4 bytes changed, made all the difference (binary-compared original MOV and rotated MOV files).

Your 10-year old script works on a Mac running High Sierra 10.13.5 and iOS 12.3.1 movies (H.264). I just really wanted to express my sincere thanks.

Would it be too geeky to add exiftool's (if it exists on the system) composition matrix structure just for showing what changed? Before and after conversion?

exiftool to-fix.mov -rotation -matrixstructure -G0:1 -a
[Composite:Main] Rotation                      : 90
[QuickTime] Matrix Structure                   : 1 0 0 0 1 0 0 0 1
[QuickTime:Track1] Matrix Structure            : 0 1 0 -1 0 0 1080 0 1
[QuickTime:Track2] Matrix Structure            : 1 0 0 0 1 0 0 0 1
[QuickTime:Track3] Matrix Structure            : 1 0 0 0 1 0 0 0 1
[QuickTime:Track4] Matrix Structure            : 1 0 0 0 1 0 0 0 1

exiftool fixed.mov -rotation -matrixstructure -G0:1 -a
[Composite:Main] Rotation                      : 0
[QuickTime] Matrix Structure                   : 1 0 0 0 1 0 0 0 1
[QuickTime:Track1] Matrix Structure            : 1 0 0 0 1 0 0 0 1
[QuickTime:Track2] Matrix Structure            : 1 0 0 0 1 0 0 0 1
[QuickTime:Track3] Matrix Structure            : 1 0 0 0 1 0 0 0 1
[QuickTime:Track4] Matrix Structure            : 1 0 0 0 1 0 0 0 1

In any case, thanks, this is a mere suggestion ;-)

The idea came from this thread post.

Huge thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant