Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS 

Batch loop for wave to mp3 (using lame)

It keeps the input files and sorts both mp3 and wave files nicely in two separate directories.
@echo off
if NOT EXIST MP3 md MP3
if NOT EXIST WAV md WAV

for %%f in (*.wav) do (
	cls
	lame -b 96 -V 5 -B 128 -m j --vbr-new -q 5 "%%f" "MP3\%%f.mp3"
	move "%%f" WAV
)

Reencoding MP3s to lower Bitrate

http://ubuntuforums.org/showthread.php?t=347176
Batch-reencode MP3s using a terminal tool.

this installs lame (http://lame.sourceforge.net/index.php), an MP3 enconder
sudo apt-get install lame


this reencodes all MP3s in the current folder to a bitrate of 32
for x in [ `ls -1 *.mp3` ]; do lame --preset 32 $x new32-${x}; done
« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS