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

1080p + sound support? #12

Open
anast3t opened this issue May 19, 2021 · 5 comments
Open

1080p + sound support? #12

anast3t opened this issue May 19, 2021 · 5 comments

Comments

@anast3t
Copy link

anast3t commented May 19, 2021

On every yt video recieving only 360 & 720 with sound.

@kandrokae
Copy link

I'm having the same issue. No sound on my videos when I use this library.

@difuoan
Copy link

difuoan commented Feb 6, 2022

bump

@jsundev
Copy link

jsundev commented Jan 15, 2023

Same here. 720 with sound works fine, but I only can get 1080p with no sound.
Did anyone find out a solution?

@JKDos
Copy link

JKDos commented Jul 5, 2024

Was curious about that. The constructor is using withAudio: !1 (It's flipping 1 to 0 FYI)

The developer had a bit too many beers while writing the code. The solution is to fix that nonesense and simply put withAudio: true

@JKDos
Copy link

JKDos commented Jul 5, 2024

I spoke a little too soon. This won't return 1080p to you.

The endpoint (e.g. https://yt2html5.com/?id=1mO3lW-FvuI) returns what is usually expected when you hit https://www.youtube.com/youtubei..... You get JSON data with all the available formats and video data like title, description, thumbnails.

The URLs for the 1080p format do not include audio. Unless this is on Google side, it would take some digging into the ytdl-core library that the yt2html5 endpoint is dependent on. That would be a much more time consuming task than I have time for.

ETA: bobbicodes/ytdl#1

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

5 participants