Last active
August 10, 2017 09:01
-
-
Save parixitjani/f1919daab9315a036b31e0b56a85c090 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for mfile in $ifiles | |
do | |
outfile=${mfile%.*} | |
ext=${mfile##*.} | |
if [ $ext != 'mp3' ] | |
then | |
_ffmpegcmd1="ffmpeg -nostats -loglevel panic -y -i $mfile -codec:a libmp3lame -qscale:a 3 "$outfile".mp3" | |
$_ffmpegcmd1 | |
fi | |
afile="$afile""$outfile"".mp3""$seperator" | |
done | |
ffmpeg -nostats -loglevel panic -y -i concat:$afile -acodec copy $ofile"_m.mp3" | |
ffmpeg -nostats -loglevel panic -y -i $ofile"_m.mp3" -vn -ar 44100 -ac 2 -ab 128k -f mp3 $ofile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment