Skip to content

Instantly share code, notes, and snippets.

@ar45
Created September 16, 2016 05:28
Show Gist options
  • Save ar45/7464ea6b365238551c0fd1a2483e0d24 to your computer and use it in GitHub Desktop.
Save ar45/7464ea6b365238551c0fd1a2483e0d24 to your computer and use it in GitHub Desktop.
for file in `cat files.txt`;
do
outfile=/tmp/`basename $file`;
ffmpeg -i $file -ar 8000 -ac 1 -acodec pcm_s16le -ab 128k $outfile \
&& mv $outfile $file;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment