Skip to content

Instantly share code, notes, and snippets.

@FOBshippingpoint
Last active March 31, 2022 16:18
Show Gist options
  • Save FOBshippingpoint/ecaee59ffb0816838c3df7b6f7ddff22 to your computer and use it in GitHub Desktop.
Save FOBshippingpoint/ecaee59ffb0816838c3df7b6f7ddff22 to your computer and use it in GitHub Desktop.
Rotate video with 90 degrees using ffmpeg
# 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