Smart Audio Cutter Pro is a lightweight, high-speed Python tool designed to batch-cut audio files based on precise timestamps. It utilizes FFmpeg's Direct Stream Copy technology, ensuring zero quality loss and blazing fast processing speeds (no re-encoding required).
- ⚡ Blazing Fast: Cuts hours of audio in seconds.
- 💎 Lossless Quality: No re-encoding; preserves the original audio quality 100%.
- ⏱️ Millisecond Precision: Supports
Minute:Second:Millisecondformat (e.g.,05:30:50). - 🌍 Cross-Platform: Works seamlessly on Windows, macOS, and Linux.
- 🖱️ Drag & Drop Support: Easy-to-use interface for terminal beginners.
- 📊 Progress Tracking: Live progress bar with status updates.
To use this tool, you need Python and FFmpeg installed on your system.
- All OS: Download and install Python from python.org.
- Important: During installation, make sure to check the box "Add Python to PATH".
This script relies on FFmpeg to process the audio files.
Open your Terminal and run:
brew install ffmpeg(Note: If you don't have Homebrew, visit brew.sh to install it first).
Open PowerShell or Command Prompt and run:
winget install Gyan.FFmpegAlternatively, you can download the executable from ffmpeg.org and add it to your System PATH manually.
You need to create a text file (e.g., list.txt) containing the cut details.
Format per line:
Start Time, End Time, Filename
Time Format: MM:SS:ms (Minutes : Seconds : Milliseconds)
00:00:00, 00:00:15, Intro.mp3
00:01:05, 00:02:30, 01_Surah_Fatiha.mp3
05:10:05, 05:15:00, 02_Dua.mp3
Note:
05:10:05means 5 minutes, 10 seconds, and 5 milliseconds.
- Open your Terminal (Mac) or Command Prompt (Windows).
- Navigate to the folder containing the script (e.g.,
cd Desktop/AudioCutter). - Run the script:
python smart_cutter.py
- The script will ask you to input the files. Simply Drag and Drop your
.txtfile into the terminal window and press Enter. - Then, Drag and Drop your source Audio
.mp3file and press Enter.
If you want to run it instantly without prompts, provide the filenames as arguments:
python smart_cutter.py list.txt source_audio.mp3(Replace list.txt and source_audio.mp3 with your actual file names).
- Check Time Range: Ensure your timestamps actually exist in the audio file. For example, do not try to cut at
00:55:00(55 minutes) if your audio is only 7 minutes long. - Check Format: Ensure you are using
Minutes:SecondsorMinutes:Seconds:Milliseconds.
- This script uses standard Python libraries. If you see this, ensure you have Python 3 installed and you are running the command using
python3orpython.
- This means FFmpeg is not installed or not added to your system's PATH. Please refer to the Installation section above.
License: Open Source. Feel free to modify and share.