yt-dlt
yt-dlt
a practical use of yt-dlt, for a purpose very specific to just me
How I Converted My Favorite Yoga with Adrienne Deep Stretch Youtube Video to a .wav file for Audio Only then Combined it with EMDR healing music on the command line and now I can do it anywhere with no ads (even though Kevin just gave me youtube premium)
https://github.com/yt-dlp/yt-dlp
brew install yt-dlp
https://ffmpeg.org/documentation.html
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
#make file stuff
./configure
make
sudo make install
#download youtube videos
yt-dlp "https://www.youtube.com/watch?v=GLy2rYHwUqY&list=PLui6Eyny-Uzwzd-9fi_cmhz3UW9gS1raf&index=1"
yt-dlp "https://www.youtube.com/watch?v=jgMH89btVQA"
#extract audio
ffmpeg -i EMDR\ Bilateral\ Music\ to\ Calm\ Fight-or-Flight\ \357\275\234\ Ease\ Panic\,\ PTSD\ \&\ Stress\ \(60\ BPM\,\ Wear\ Headphones\)\ \[jgMH89btVQA\].opus -ar 22050 emdr.wav
ffmpeg -i Total\ Body\ Yoga\ \357\275\234\ Deep\ Stretch\ \357\275\234\ Yoga\ With\ Adriene\ \[GLy2rYHwUqY\].webm -ar 22050 yoga.wav
#combine files
ffmpeg -i yoga.wav -i emdr.wav -filter_complex amix=inputs=2:duration=first:dropout_transition=0 output.wav
#crop intro
ffmpeg -ss 40 -i output.wav cropped.wav