• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] OGG in MP3 umwandeln.

Hallo,

ich möchte OGG Musik Dateien in MP3 umwandeln. Bis jetzt konnte ich mit dem Kommando
Code:
oggdec *.ogg
alle Ogg-Dateien in WAV umwandeln. Wie bekomme ich die WAV Dateien in MP3 oder noch besser, gibt es eine Möglichkit die OGG direkt in MP3 umwandeln ohne den Umweg?

Danke im Voraus für Eure Hilfe

Grüße
 
OP
Heinz-Peter
Hallo @abgdf, hallo @tomm.fa,

DANKE für die Tipps.

Diesen Thread möchte ich Usern empfehlen die so wenig Ahnung von der Materie haben, wie ich:
https://askubuntu.com/questions/442997/how-can-i-convert-audio-from-ogg-to-mp3
Hier folgt in Zukunft die Übersetzung mit Google; bin in die Jahre gekommen und brauche etwas mehr Zeit für Alles ;-)

I use ffmpeg for sound conversion:

ffmpeg -i file.ogg file.mp3
ffmpeg -i file.{ogg,mp3} # if only the extension changes

If your filename contains spaces don’t forget to quote it, e.g.:

ffmpeg -i "file with spaces".{ogg,mp3}

To perform batch processing you can either use a for loop like

for i in *.ogg; do ffmpeg -i "$i" "${i%.*}.mp3"; done

or – especially for many and/or large files! – GNU parallel:

parallel ffmpeg -i "{}" "{.}.mp3" ::: *.ogg

This last command will convert every .ogg file in the current directory to .mp3 efficiently using your CPU(s) to perform multiple tasks in parallel.

To set the audio bitrate ffmpeg provides the -b:a BITRATE option, e.g. -b:a 192k. If you want to include metadata like title, album and so on, you can use these options:

-map_metadata 0:s:0 -id3v2_version 3 -write_id3v1 1

See man ffmpeg and this linuxforums.org.uk post for further information.

Grüße
 
Oben