Skip to content

Instantly share code, notes, and snippets.

@lylepmills

lylepmills/convert48.sh

Last active Nov 13, 2020
Embed
What would you like to do?
convert48.sh
#!/bin/bash
SAMPLE_DIRECTORY=/Users/lylemills/Desktop/sample_rate_conversion
mkdir $SAMPLE_DIRECTORY/converted
for f in $SAMPLE_DIRECTORY/*
do
echo "Processing `basename $f`"
ffmpeg -i $f -ar 48000 $SAMPLE_DIRECTORY/converted/`basename $f`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment