I am trying to convert some .flac files to .mp3 that can be imported into iTunes. I tried to find find, xargs and ffmpeg, but xargs give me an inexhaustible quote error (because I have quotes in the file name).
This is my command line:
MacKassner:Geto Boys kassner$ find . -type f | egrep "\.flac$" | xargs -I {} ffmpeg -i {} -ab 192k -acodec libmp3lame -ac 2 {}.mp3
It will stop and raise an error in the file name. "Talkin" Loud Is Not Saying Nothin'.flac ".
Some tricks to make this work?
- It is solved only with the search - to find. -type f -name "* .flac" -exec ffmpeg -i {} -ab 192k -acodec libmp3lame -ac 2 {} .mp3 \;
source
share