From: LarryT <gp...@gm...> - 2007-03-13 21:25:04
|
Thx Pascal, I as just on the irc channel, andHEx (?) gave me this : for i in *.wav; do sox "$i" "`echo $i|sed 's/wav$/ogg/'`";done Semmes to be good enough. I have to convert wav compressed files into ogg so students can play files (speech/conferences) I got error, but files seem to be good enough : sox: Premature EOF on .wav input file Any clue to make a better srcipt ? (I have to convert about 25 files, sometimes... THX ! Larry Pascal Giard wrote: > Hmm... using the shell? > e.g. bash would give something like (altho 1.wav will become > 1.wav.ogg, some more work required, but provided as a quick example): > > for i in $(ls *.wav); do sox $i $i.mp3; done > > -Pascal > > On 3/13/07, Larry T <gp...@gm...> wrote: > >> Hi list :) >> I would like to know if there is way to convert *many* wav files into ogg, >> using one line ! >> # sox *.wav *.ogg >> makes one ogg file, and i would like the exact replication of the wav file >> name... >> So 1.wav 2.wav 3.wav give 1.ogg 2.ogg 3.ogg >> >> Is it possible and if, which is the exact syntax , please ? >> THX ! >> Larry >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Sox-users mailing list >> Sox...@li... >> https://lists.sourceforge.net/lists/listinfo/sox-users >> >> >> > > > -- LarryT, GParted-livecd maintainer Main site : http://gparted.sourceforge.net/ GParted forum : http://gparted-forum.surf4.info/index.php Beta version : http://gparted.free.fr/beta/ |