Update. I was hasty with my Logitech video test. (and very busy with other matters since) The thumbnails did not change after exiftool (remained right side up), but the actual video was inverted as I intended for the test. I didn't bother to play the videos that time, but I did not rely on the thumbnails for the cell phone videos and I just double checked to confirm. So exiftool works for the logitech webcam files, but not for Android cam files. Sorry for the misinformation!
Found an older VLC version on an old XP laptop. It doesn't fix it like the newer VLC automatically does. I also tried to rotate some old videos that were created with a Logitech webcam and Videopad. Again, no change. I think I'll use a video editing package to rotate and I'll compare the original and edited files to see if anything jumps out. I can use Notepad again, but I'm guessing your package might help me find the important stuff quicker?
My new working theory was that TV's and older media software were ignoring phone orientation info in phone-created mp4 files and that exiftool was effecting a change by simply changing this info. So I expected Win10 Movie player (on the desktop I rarely use as it has no wifi) to notice a change made by exiftool. It didn't! (nor did VLC). I re-ran from scratch the same command shown in the attachment above which should have rotated 180, making it upsidedown with players that use that info. Win10 and...
Check my above answer for how Win10 (and VLC) is accomplishing it. If you don't have access to an older OS (w/older Media Player) you won't be able to see this happen.
Let's define "correctly". I usually record landscape style, but this time I did some portait style and managed to invert some, but not all, of the landscape videos. With Win10 (movie player?) all are rotated as necessary for easy "correct" viewing automatically. Even the thumbnails (tiles) are "corrected" in the file manager. Different story with Win7 (and TV's). I have created many landscape videos and have put them on TV without trouble and opened with Media Player w/no trouble, but this time I...
I also tried rotation=0 and rotation=360. Same dump except change in TrackHeader:Matrixstructure 1 0 0 0 1 0 0 0 16384 for 0 degrees and 1 2.04e-011 0 -2.04e-011 -0 (snipped) for 360 degrees. I guess 2 X 10^-11 is close enough to zero. :)
I added -v2 and got "the dump". Please see attachment. The result was the usual: still upsidedown with Windows MediaPlayer and file mgr tile, right side up (both original and updated files) with VLC. This is all done on Win7 laptop.
I found this Feb. 2020 topic started by "beernoo" and have found new difficulties. My rotated video was created on an Android phone. Some of my videos are sideways (portrait) and some are upsidedown when viewed on Windows 7 laptop or on Roku TV or other TV's that play videos directly from USB. Mysteriously, they all appear upright when opened on a Windows 10 machine. (Creepy. What if I really wanted them to be sideways or upside down!?) They also automatically appear correctly when opened with VLC...