Last active
December 25, 2015 08:29
-
-
Save enblanco/6946724 to your computer and use it in GitHub Desktop.
Convert mp4 and flv video to mp3 with VLC
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
for file in /path/to/directory/*.flv; do /Applications/VLC.app/Contents/MacOS/VLC -I dummy "$file" --sout="#transcode{acodec=mp3,vcodec=dummy}:standard{access=file,mux=raw,dst=\"$(echo "$file" | sed 's/\.[^\.]*$/.mp3/')\"}" vlc://quit; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment