This script converts all .m4a and .opus files inside a specified folder (including subfolders) to .mp3 format at 128 kbps using FFmpeg. It also includes progress bars for individual and overall file conversions and logs detailed information about the process.
- 🔍 Recursively scans for
.m4aand.opusfiles in a given directory. - 🔄 Converts files to
.mp3at 128 kbps using FFmpeg. - 📊 Displays two progress bars:
- 📌 One for each file conversion.
- 📌 One for overall progress with estimated time remaining.
- 📝 Generates a detailed log file (
conversion_log.txt). - ✅ Verifies the integrity of each converted file.
- FFmpeg installed at
C:\ffmpeg\ffmpeg.exe. - Python 3.x installed.
- Required Python packages:
tqdm(for progress bars)
Install tqdm using:
pip install tqdm- Open a terminal or command prompt.
- Run the script:
python script.py- Enter the path to the directory containing
.m4aand.opusfiles when prompted.
- The script generates a
conversion_log.txtfile that records conversion success, failures, and verification results.
- Ensure
FFmpegis correctly installed atC:\ffmpeg\ffmpeg.exe. - Check the log file for errors.
- Verify that the input directory contains
.m4aor.opusfiles.
This script automatically embeds corresponding JPG/JPEG images as thumbnails in MP3 files' metadata. It scans a given folder, matches MP3 files with their respective images, and updates the metadata accordingly. 🎵🖼️
- 🔍 Scans the specified folder for MP3 files.
- 🔗 Finds and matches images (
.jpgor.jpeg) with the same filename as the MP3. - 🛠️ Embeds the image as the MP3 file's thumbnail metadata.
- ✅ Ensures that only one thumbnail is embedded per file (removes existing album art to avoid duplicates).
- 🚀 Saves the updated MP3 file with the new album cover.
Make sure you have Python installed and the following library:
pip install mutagen- Run the script and provide the folder path containing the MP3 and image files:
python embed_thumbnails.py- Enter the folder path when prompted.
- The script will process all MP3 files and embed the corresponding image as a thumbnail.
- The image file must have the exact same name as the MP3 file (excluding the extension).
- Supported image formats:
.jpg,.jpeg. - The script automatically removes existing album art before adding the new one.
This project is licensed under the MIT License. See the LICENSE file in the root folder for details.
Enjoy seamless audio conversion! 🎧🔥