ich möchte gerne einen ganzen Stapel AAC und MP3 Dateien, deren Bitraten zwischen 256 und 320 kBit/s liegen in MP3 mit 128 kBit/s konvertieren.
Bisher habe ich das hier gebastelt:
Code: Alles auswählen
if engine == "lame":
command = 'lame --quiet -b %d "%s" "%s"' % (bitrate, infile, outfile)
if engine == "ffmpeg":
command = 'ffmpeg -i "%s" -acodec libmp3lame -ac 2 -ab %d "%s"' % (infile, bitrate*1024, outfile)
os.system(command)
Grüße,
devek