Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio File Not Working in Mac #1259

Open
pinkesvaghela opened this issue Oct 26, 2023 · 3 comments
Open

Audio File Not Working in Mac #1259

pinkesvaghela opened this issue Oct 26, 2023 · 3 comments

Comments

@pinkesvaghela
Copy link

Hello,
We have download youtube audio from this package.This is working in windows but not working in Mac anymore.

I have added my sample code here.

await new Promise((resolve) => { // wait
ytdl(youtubeUrl,{
quality: "highestaudio",
filter: "audioonly",
})
.on('error', async (err) => {
resolve()
})
.pipe(fs.createWriteStream('./uploads/'+filename))
.on('close', async() => {
resolve()
})
})

@manhhoang-1998
Copy link

manhhoang-1998 commented Dec 28, 2023

the same probblem. did u resolver

@pinkesvaghela
Copy link
Author

Not yet

@ron4mac
Copy link

ron4mac commented Jan 16, 2024

You are likely getting webm audio. You will have to filter for mp4(m4a). Apple not being on board with webm is an annoyance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants