Hola aquí comparto un código hecho por una página inglesa de proigramación acerca de pasar varios archivos de formato entre wma y mp3, el código es fácil de esditar y de «echarlo a andar» con powershell y ffmpeg en Windows, superrecomendable.
#Set the path to crawl
$path = ‘C:Documents and SettingsUserMy DocumentsMy MusicConvert’
#The source or input file format
$from = ‘.wma’
#The encoding bit rate
$rate = ‘192k’
Get-ChildItem -Path:$path -Include:»*$from» -Recurse | ForEach-Object -Process: {
$file = $_.Name.Replace($_.Extension,’.mp3′)
$input = $_.FullName
$output = $_.DirectoryName
$output = «$output$file»
#-i Input file path
#-id3v2_version Force id3 version so windows can see id3 tags
#-f Format is MP3
#-ab Bit rate
#-ar Frequency
# Output file path
#-y Overwrite the destination file without confirmation
$arguments = «-i `»$input`» -id3v2_version 3 -f mp3 -ab $rate -ar 44100 `»$output`» -y»
$ffmpeg = «.’C:Program Filesffmpegbinffmpeg.exe'»
Invoke-Expression «$ffmpeg $arguments»
Write-Host «$file converted to $output»
#Delete the old file when finished
#This could use some error checking around it to prevent accidental deletion.
Remove-Item -Path:$_
}