Re: No ffmpeg, help convert script for Sox

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




>> and I'll look to see if there is a stdout option for Sox as guess that is what was needed there too :)


And this appears to work with Sox (with progress shown.)

#!/bin/bash
if [ -d "${1}" ] ; then
cd "${1}" && for f in *.flac; do sox "$f" -b 16 -t wav - -S | lame -b 320 -m j -q 0 - "${f%.flac}.mp3"; done
fi


Now any pointers to getting it so I run a single file, rather than the full command of:
find  -type d -exec ~/bin/flac2mp3sox "{}" \;
Always thought that looked a very messy way to have to do it!

Regards, Dale.
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user




[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux