Last active
March 31, 2022 16:18
-
-
Save FOBshippingpoint/ecaee59ffb0816838c3df7b6f7ddff22 to your computer and use it in GitHub Desktop.
Rotate video with 90 degrees using ffmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rotate video with 90 degrees | |
# reference: https://stackoverflow.com/questions/3937387/rotating-videos-with-ffmpeg | |
$input = Read-Host -Prompt "input file name" | |
$output = Read-Host -Prompt "output file name" | |
if ([string]::IsNullOrEmpty($output)) { | |
$output = "output.mp4" | |
} | |
# run ffmpeg | |
ffmpeg.exe -i $input -vf "transpose=1" $output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment