hldsp/run_yt.sh

10 lines
220 B
Bash
Executable File

#!/bin/sh
gcc *.c -I. -O3 -o hldsp
yt-dlp --extract-audio $1 --audio-format opus -o temp.opus
ffmpeg -i temp.opus -ar 22050 temp.wav
./hldsp $2 temp.wav out.wav
ffmpeg -i out.wav out.opus
rm temp.wav out.wav temp.opus