Проблема менеджера загрузок с некоторыми видео на Youtube

407
Minethlos

Так что в последнее время у меня были проблемы с загрузкой некоторых видео с Youtube, таких как это:

https://www.youtube.com/watch?v=xouo8ktxZNc

Я пробовал KeepVid, DownloadHelper, скрипт Greasemonkey и youtube-dl, и работал только youtube-dl. Я заметил эту проблему с KeepVid в течение нескольких месяцев. И в то же время они скачивают другие видео совершенно нормально.

Так кто-нибудь знает, почему эти менеджеры загрузки не работают? Я сомневаюсь, что это потому, что Youtube меняет протоколы, потому что для некоторых видео он все еще работает и работает все время.

0

1 ответ на вопрос

1
phihag

Disclaimer: I am one of the core developers of youtube-dl.

What you see as a unified YouTube is in reality a lot of different protocols and variations. So while every video looks the same, there is considerable variation:

  • For some videos, the API is quite stable and uses HTTP. This class seems to be picked for most "ordinary" videos uploaded by you and me and not some large organization. In recent times, they've switched more and more towards DASH, although the legacy format remains for low-quality (<1080p) videos.
  • Music videos typically use HTTP or DASH, but require an extra step of decoding the URL, which can be quite complicated since it involves interpreting Flash or JavaScript code.
  • Movies seem to use yet another wholly different scheme, namely RTMP.
  • Live streams, even when recorded, typically use HLS, sometimes exclusively.

Of course, there is considerable overlap, many videos are available in multiple formats out of HTTP, HTTP with signature, DASH, DASH with signature, RTMP, HLS, HLS with signature. Without a public statement by YouTube, all we can do is guess and implement everything - and that's precisely what the youtube-dl project (and probably the other projects you listed) tries to do.