Created
November 10, 2023 22:14
-
-
Save mtlynch/cac60167f96f10aa2f01fa99cce42255 to your computer and use it in GitHub Desktop.
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
param ( | |
[string]$inputFile, | |
[string]$outputFile | |
) | |
if (-not (Test-Path $inputFile)) { | |
Write-Host "Input file '$inputFile' not found." | |
Exit 1 | |
} | |
$ffmpegCommand = "ffmpeg -i `"$inputFile`" -c:v libx264 -crf 23 -c:a aac -movflags faststart `"$outputFile`"" | |
Invoke-Expression $ffmpegCommand |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment