How to automatically bulk convert multiple MP4 to MP3 on a Mac (Automated conversion)

If you have a lot of MP4 videos but you want to extract audio from these videos into MP3 files to listen to then it can be a tedious process to convert a lot of MP4s one by one.

In order to convert multiple files very quickly I’ve written an script that can convert any MP4s in a folder (no matter how many) to MP3 files. You literally just have to put your MP4s into a folder, put my script into the same folder, and then double-click on the script and let it run!

Just follow these steps:

Step 1: Install FFMPEG

Follow these instructions to install the open source and free FFMPEG. https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/wiki/Installing-ffmpeg-on-Mac-OS-X

It’s a collection of libraries for audio and video that my script uses.

Step 2: Create the script file

  1. Open TextEdit on your Mac
  2. Paste in the following:

!/bin/bash
echo Welcome to theFakeGeek.com awesome .mp4 to .mp3 conversion script!
cd “${0%/*}”
mkdir mp3s
echo Now converting… sit back and relax
for f in *.mp4; do ffmpeg -i “$f” -c:a libmp3lame “mp3s/${f%.mp4}.mp3”; done
echo Done! Enjoy your mp3s!

  1. Click on Format and then Make Plain Text
  2. Now click on File and then Save
  3. Name the file mp4tomp3convert.command
  4. Save the file inside of the folder with your MP4 videos

Before you run the script be aware of the following: This script and information as provided for information purposes only and I do not guarantee use. You run the script at your own risk. Please make sure that you backup your videos and data before running the script.

And now just go to that folder and double click on mp4tomp3convert.command and your videos will be converted!

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.