A Python-based media converter that uses FFmpeg to convert video and audio files between various formats, such as MKV, MP4, MP3, and more.
- Convert between different video formats (e.g., MKV to MP4)
- Convert between different audio formats (e.g., MP3 to WAV)
- Supports a wide range of media formats
- Simple command-line interface
- FFmpeg: The project relies on FFmpeg. Install it from FFmpeg's official website and ensure it's available in your system's PATH.
- Python: Ensure you have Python 3.6 or later installed.
- ffmpeg-python: The Python wrapper for FFmpeg. Install it using pip.
-
Clone the repository:
git clone https://github.com/Dev-wael1/media-converter.git cd media-converter
-
Install dependencies:
pip install ffmpeg-python
-
Run the script:
python media_converter.py
-
Follow the prompts:
- Enter the path to the input file.
- Enter the desired output format (e.g.,
mp4
,mp3
).
The script will create a converted file with the specified format in the same directory as the input file.
To convert example.mkv
to example.mp4
, run the script and provide example.mkv
as the input file and mp4
as the desired format.
- FFmpeg not found: Ensure FFmpeg is installed and added to your system's PATH.
- Conversion errors: Check the error messages in the console for details. They may provide information on unsupported formats or other issues.
Feel free to submit issues, suggest improvements, or contribute code via pull requests. Please follow the contribution guidelines in the CONTRIBUTING.md
file.
This project is licensed under the MIT License. See the LICENSE
file for details.
For questions or feedback, you can reach me at [email protected].