Convert mp4 to mp3 linux
- convert.sh
#!/bin/sh SAVEIFS=$IFS IFS=$(echo -en "\n\b") for f in * do echo "$f" ffmpeg -i "$f" -vn \ -acodec libmp3lame -ac 2 -ab 160k -ar 48000 \ "${f%.mp4}.mp3" done IFS=$SAVEIFS
#!/bin/sh SAVEIFS=$IFS IFS=$(echo -en "\n\b") for f in * do echo "$f" ffmpeg -i "$f" -vn \ -acodec libmp3lame -ac 2 -ab 160k -ar 48000 \ "${f%.mp4}.mp3" done IFS=$SAVEIFS