Rotate Videos metadata flag 
December 18, 2021
11:04 AM
-metadata:s:v:0 rotate="180"
180 degress
-vf "transpose=2,transpose=2"
90 degrees
-vf "transpose=1"
270 degrees
-vf "transpose=0"
ffmpeg -i [file] -metadata:s:v:0 rotate="90" -codec copy [file]
From <[link]> 
ffmpeg -i [file]  -metadata:s:v:0 rotate="180" -codec copy [file] 
ffmpeg -i [file] -metadata:s:v:0 rotate="180" -codec copy [file]
$originalVids = Get-ChildItem *.MP4 -Recurse
foreach ($inputVid in $originalVids) {
    $outputVid = [io.path]::ChangeExtension($inputVid.FullName, '.mp4')
    [file] -i $inputVid.FullName -metadata:s:v:0 rotate="180" -codec copy $outputVid
}
PowerShell Folder script
1Y6A0542
ffmpeg -i [file]  -metadata:s:v:0 rotate="180" -codec copy [file] 
ffmpeg -i [file]  -metadata:s:v:0 rotate="180" -codec copy [file] 
$originalVids = Get-ChildItem *.MP4 -Recurse
foreach ($inputVid in $originalVids) {
    $outputVid = [io.path]::ChangeExtension($inputVid.FullName, '.mp4')
    [file] -i $inputVid.FullName -metadata:s:v:0 rotate="180" -codec copy $outputVid
}
PowerShell Folder script
0 = 90CounterCLockwise and Vertical Flip (default)
1 = 90Clockwise
2 = 90CounterClockwise
3 = 90Clockwise and Vertical Flip