Created
March 19, 2023 17:58
-
-
Save gut5/e6066ced772ed17ada294c3539ff20b7 to your computer and use it in GitHub Desktop.
ffmpeg batch convert mp4 to webm
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
$folder = "C:\path\to\folder" | |
$webm = "C:\path\to\webm\folder" | |
$mp4Files = Get-ChildItem -Path $folder -Filter "*.mp4" | |
foreach ($file in $mp4Files) { | |
$fileName = $file.Name | |
$input = $folder + "\" + $fileName | |
$output = $webm + "\" + $fileName.Replace(".mp4", ".webm") | |
ffmpeg -i $input $output | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment