This Python script converts all MP4 files in a specified directory into MP3 format using moviepy. It processes each file, saves it as an MP3, and deletes the original MP4 upon successful conversion.
- Batch conversion of MP4 files to MP3.
- Automatically deletes MP4 files after successful conversion.
- Simple and efficient directory traversal.
- Install the
moviepylibrary:pip install moviepy
Update the directory_path variable in the script with your target directory. Run the script:
python script_name.py