Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wildcard option with mpg123 utility

Status
Not open for further replies.

Goku81

Programmer
Mar 27, 2001
34
US
i'm tryin to encode individual files using the following command.

mpg123 -s *.mp3 | sox -t raw -r 44100 -s -w -c 2 - *.wav

it worked fine.... except all the tracks are sitting in TRACK_01.wav, and there are no TRACK_02.wav, TRACK_03.wav, etc. is their an option to fix this problem... or do i have to write a script to run command for each individual .mp3 file :)
 
#!/bin/sh

for i in *.mp3
do
mpg123 -s "$i" | sox -t raw -r 44100 -s -w -c 2 - "$i".wav
done

untested. I use lame and a similiar script. HTH.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top