Created
May 20, 2020 07:15
-
-
Save oledid/6110256c02f2a301d5f50ee84a8e4147 to your computer and use it in GitHub Desktop.
Convert files in folder from ogg to mp3, if they are not already converted
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
# using powershell core and ffmpeg | |
ls *.ogg | where { -Not (Test-Path $_.FullName.Replace(".ogg", ".mp3")) } | foreach { | |
$fullName = $_.FullName; | |
$output = $_.FullName.Replace('.ogg', '.mp3'); | |
ffmpeg -i "$fullName" "$output" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment