Skip to content

Instantly share code, notes, and snippets.

@oledid
Created May 20, 2020 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oledid/6110256c02f2a301d5f50ee84a8e4147 to your computer and use it in GitHub Desktop.
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
# 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