/PYTHON-MOVIEPY-EXTRACT-AUDIO-FROM-VIDEO

🐍 Did you ever want to extract audio of a music to listen it in your cellphone later? Well, I was, and this repo is the result!! 🐍 (🔑 KeyWords: python, audio, video, moviepy, audio-extractor 🔑)

Primary LanguagePython

🌟 Extract Audio from Video 🌟


❓ What's it? ❓

  • This repository just keeps a short python's code that extract audio of any video. The video can be in any format (mp4, mov, mkv...) and the audio output is in MP3 and WAV only (I can upgrade this repo to another kinda output).

⚒️ Tools ⚒️

  • Python 3.7 version or later;
  • MoviePY library.

⚙️ Run ⚙️

Installing Packages

  • Open computer's terminal and tip these commands:
pip install moviepy

Running with Python

  • Download the source code;
  • Open cmd and go to Python Code's Folder;
  • Tip:
python extractor.py
  • Tip the video's path Example:
C:\Videos\music.mp4
  • Choose a name to output audio (without the format extension). Example:
output_music
  • Choose a format:
0 - MP3 (default)
1 - WAV

📝 Notes 📝

  • Input Video: any format (mp4, mov, mvk...);
  • Output Audio: mp3 and wav only;
  • Output Audio's Path: the same of Python Code.

🎁 Bonus 🎁

  • If you know another audio format that is good, lemme know and Imma upgrade this repo!

📫 Reach Me 📫

Email: csfelix08@gmail.com

Linkedin: linkedin.com/in/csfelix/

Instagram: instagram.com/c0deplus/


Portfolio: CSFelix.io