ffmpeg - xargs: unterminated quote -


i'm trying convert .flac files .mp3, can import itunes. tried find, xargs , ffmpeg, xargs give me unterminated quote error (because have quotes in filename).

that`s command line:

mackassner:geto boys kassner$ find . -type f | egrep "\.flac$" | xargs -i {} ffmpeg -i {} -ab 192k -acodec libmp3lame -ac 2 {}.mp3 

it`s stop , raise error in filename "talkin' loud ain't saying nothin'.flac".

some tricks make 1 work?

-- solved find -- find . -type f -name "*.flac" -exec ffmpeg -i {} -ab 192k -acodec libmp3lame -ac 2 {}.mp3 \;

use gnu parallel. built purpose:

mackassner:geto boys kassner$ find . -type f | egrep "\.flac$" | parallel ffmpeg -i {} -ab 192k -acodec libmp3lame -ac 2 {}.mp3 

you may want use {.}.mp3 rid of .flac:

mackassner:geto boys kassner$ find . -type f | egrep "\.flac$" | parallel ffmpeg -i {} -ab 192k -acodec libmp3lame -ac 2 {.}.mp3 

watch intro video learn more: http://www.youtube.com/watch?v=opaigyxksuq


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -