I'm trying to convert Nikon NEF images to jpg. Usually I use find and xargs for batch processes like this for example:
Code:
find . -name "*.flac" -exec basename \{\} .flac \; | xargs -i ffmpeg -i \{\}.flac -acodec libvorbis -aq 3 \{\}.ogg
However, my latest attempt is giving me no output because I can't seem to get xargs to work with pipes. An individual set of commands works:
Code:
dcraw -w -c MEY_7046.NEF | convert - -resize 25% MEY_7046.jpg
exiftool -overwrite_original -TagsFromFile MEY_7046.NEF MEY_7046.jpg
dcraw -z MEY_7046.jpg
A nice set of commands, but not yet practical for converting a DVD with multiple directories. My truncated find-isized version does nothing:
Code:
find . -name "*.NEF" -exec basename \{\} .NEF \; | xargs -i dcraw -w -c \{\}.NEF | convert - -resize 25% \{\}.jpg
Any ideas of where I'm going wrong?
Bookmarks