Created
June 27, 2018 21:35
-
-
Save gdm/701e7af1c42b062febbf4fc8e33296d0 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 FILE in *.mp4; do | |
| echo -e "Processing video '\e[32m$FILE\e[0m'"; | |
| ffmpeg -i "${FILE}" -vn -acodec libmp3lame -ac 2 -ab 160k -ar 48000 "${FILE%.mp4}.mp3" | |
| done; | |
| # find . -type f -iname "*.webm" -exec bash -c 'FILE="$1"; ffmpeg -i "${FILE}" -vn -ab 128k -ar 44100 -y "${FILE%.webm}.mp3";' _ '{}' \; | |
| #ffmpeg -i video.mp4 -vn \ | |
| # -acodec libmp3lame -ac 2 -ab 160k -ar 48000 \ | |
| # audio.mp3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment