Last active
June 27, 2019 02:15
-
-
Save mdibello/5211b2e92ed800130c21b96396192a17 to your computer and use it in GitHub Desktop.
some commands for batch-converting music files
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
| # wma -> mp3 | |
| find . -iname "*.wma" -execdir ffmpeg -i {} {}.mp3 \; | |
| # rename new mp3 files | |
| find . -iname "*.wma.mp3" -execdir rename 's/(.*)\.wma\.mp3/$1.mp3/' {} \; | |
| # delete wma files | |
| find . -iname "*.wma" -execdir rm {} \; | |
| # m4a -> mp3 | |
| find . -iname "*.m4a" -execdir ffmpeg -i {} {}.mp3 \; | |
| # rename new mp3 files | |
| find . -iname "*.m4a.mp3" -execdir rename 's/(.*)\.m4a\.mp3/$1.mp3/' {} \; | |
| # delete m4a files | |
| find . -iname "*.m4a" -execdir rm {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment