use some filters to make it sound better
This commit is contained in:
parent
e1c81afc0c
commit
8785b14464
1 changed files with 1 additions and 1 deletions
2
index.ts
2
index.ts
|
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue