samuelspagl / alfred_ffmpeg

A small Alfred Workflow for the ffmpeg library.
2 stars 0 forks source link

WAV to AIFF #1

Open itsbrex opened 3 years ago

itsbrex commented 3 years ago

Great tool! Tried adding a new module within the workflow to add WAV to AIFF support, but can't figuer it out.

Here is the code I tried. I'm no expert tho, so you prolly know better!



FLNAME=$(basename $PAH)
CLPAH=${PAH%/*}

cd $CLPAH

NFLNAME=${FLNAME%%.*}

/usr/local/bin/ffmpeg -n -i $PAH $NFLNAME.aiff && echo "Finished! File can be found at $CLPAH/$NFLNAME" || echo "Fail. There is already a File named $NFLNAME in the same directory"```