One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| #!/bin/bash | |
| # Loop through all .m4b files in the current directory | |
| for file in *.m4b; do | |
| # Get the filename without extension | |
| filename=$(basename -- "$file") | |
| filename="${filename%.*}" | |
| # Run ffmpeg command to convert .m4b to .mp3 | |
| ffmpeg -i "$file" -acodec libmp3lame -ar 22050 "${filename}.mp3" |
| #!/bin/bash | |
| # Are you using Mac OS X? | |
| # You need to install coreutils for this to work. | |
| # try `brew install coreutils` | |
| # or `sudo port install coreutils` | |
| # set a part size that works with FAT32 drives | |
| PART_SIZE=3999 | |
| # nice little intro |