Created
January 8, 2024 22:22
-
-
Save icywind/f8a0047abb57fd0764152e54c12c4789 to your computer and use it in GitHub Desktop.
Shell script to convert mp4 files to mp3 using ffmpeg
This file contains 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
#!/bin/bash | |
for filename in *.mp4; do | |
mp3="${filename%.mp4}.mp3" | |
echo "$filename ===> $mp3" | |
ffmpeg -i $filename -vn $mp3 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment