Extract Audio from YouTube Video and Open it as (stereo) Track on GarageBand With Python
You have to have youtube_dl installed on your system
pip install youtube_dl
You have to have GarageBand installed on your Mac (of course...)
-
Create a Python 3 virtual environment on a folder
python3 -m venv env
-
Clone this repo on the same folder (or download the
tubetogb.py
to it) -
Create an empty
audio
folder inside the same folder. That's where the audio files will be stored -
Activate venv
source env/bin/activate
-
Run
python tubetogb.py [youtube url] [file name]
Mauro Lopes (Luis Rock) โ @luisrocklu โ [email protected]