Created
August 7, 2014 18:55
-
-
Save OliverRC/5eedb6cedfbb34f40162 to your computer and use it in GitHub Desktop.
A small script that uses ffmpeg to convert mp4 video to mp3
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
$files = Get-ChildItem -Path . -Filter *.mp4 | |
foreach($file in $files) | |
{ | |
$filename = $file.name | |
$basename = $file.BaseName | |
$command = "ffmpeg -i `"$filename`" -codec:a libmp3lame -q:a 0 `"$basename.mp3`"" | |
Write-Host $command | |
Invoke-Expression $command | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment