jueves, enero 08, 2015

oggdec lame pipe: converting ogg to mp3

If this command shows "Warning: unsupported audio format":
oggdec -o - file.ogg | lame - file.mp3
Try using raw mode:
oggdec -R -o - file.ogg | lame -r - file.mp3
Or, if the generated mp3 file is pure noise, swap the bytes with -x:
oggdec -R -o - file.ogg | lame -rx - file.mp3
To convert a batch of multiple ogg files:
for x in *.ogg; do oggdec -R -o - "$x" | lame -rxh - "$x.mp3"; done

No hay comentarios.: