use some filters to make it sound better

This commit is contained in:
Soph :3 2025-07-12 11:29:09 +03:00
parent e1c81afc0c
commit 8785b14464

View file

@ -30,7 +30,7 @@ app.post("/youtube", async (c) => {
if (!video) throw new Error("No video found");
console.log(video)
await $`${ytdlpPath} --audio-format opus -x ${video.url} -o test`;
await $`ffmpeg -i test.opus -ar 48000 -ac 1 -f dfpwm "cache/${title} - ${artist}.dfpwm"`;
await $`ffmpeg -i test.opus -af "highpass=f=60, lowpass=f=15000, dynaudnorm" -ar 48000 -ac 1 -f dfpwm "cache/${title} - ${artist}.dfpwm"`;
rmSync("test.opus")
}