#!/bin/bash input_file="$1.m4a" output_file="$2/$1.mp3" echo "Converting $input_file to $output_file" ffmpeg -y -i "${input_file}" -vn -ar 44100 -ac 2 -ab 192k -f mp3 "${output_file}" # rm ${input_file}