# Video to MP3 Converter
This is a simple Python script that converts video files in a specified directory to MP3 audio files using the `moviepy` library.
## Prerequisites
You need to have Python installed on your machine. Additionally, you'll need to install the `moviepy` library. You can do this using the following command:
```bash
pip install moviepy
- Clone this repository or download the script.
- Modify the
input_directory
andoutput_directory
variables in the script to point to your desired input and output directories. - Run the script using a Python interpreter.
Please make sure you have all the necessary permissions to access the input directory and create files in the output directory.
Suppose you want to convert video files from the directory C:\Music\example
to MP3 files and save them in C:\Music\example\output
. You would set the input_directory
and output_directory
variables like this:
input_directory = r"C:\Music\example"
output_directory = r"C:\Music\example\output"
Then run the script using a Python interpreter. It will convert each video file in the input directory to an MP3 file in the output directory.
This script is provided as-is and without any warranties. Use it at your own risk. Make sure to comply with copyright laws and terms of use when converting and using media files.