fent / node-ytdl-core

YouTube video downloader in javascript.
MIT License
4.53k stars 804 forks source link

[YouTube] Itag 18 not loading anymore #1271

Open geroale opened 10 months ago

geroale commented 10 months ago

ytdl is not able to download itag 18 any more of certain videos, like this one https://www.youtube.com/watch?v=4fk2prKnYnI. Format 18 is returned by both the API and the webpage, but the URL inside of it is not playable (even after deciphering the signature and n-sig) and returns 404. other formats are working.

aervxa commented 10 months ago

When you do ytdl.chooseFormat() can you play the .url in ur browser?

geroale commented 10 months ago

No, the url is not playable from the API, nor from the webpage (after deciphering). It is possible to reproduce the issue with this videoId 4fk2prKnYnI, but there are many others.

aervxa commented 10 months ago

@geroale i think it is something to do with youtube then if it's not playing in the browser too

ytdl-core cannnot download it, if even the browser can't play it

geroale commented 10 months ago

@4rvii Youtube may starting to remove this format. If that is the case, the problem may be very serious because itag 18 is the only format (or at least commonly returned by youtube) that has both audio and video. So if that gradually gets deprecated, it may be a very serious issue for ytdl.

aervxa commented 9 months ago

@geroale Or you can just use format to select one that has both audio and video

format.hasAudio == true && format.hasVideo == true
geroale commented 9 months ago

I think we can close this issue as in the end it seems that it was a temporary issue on the youtube end.

a26364177 commented 7 months ago

same here https://youtu.be/J5Z7tIq7bco?si=7giorci63vYSGokg can't play itag 18 url