News for hackers. Stuff that matters.
Re:YouTube-dl has an interpreter for a subset of JavaScript ... by blast on Saturday September 10, 2022 @04:36PM (#32794391)
I suppose this means it would be easy for YouTube to fuck with youtube-dl simply by throwing in more features of JS?
Re:YouTube-dl has an interpreter for a subset of JavaScript ... by joshenders on Saturday September 10, 2022 @05:12PM (#32794618)
Cat, meet mouse.
Re:YouTube-dl has an interpreter for a subset of JavaScript ... by nyanpasu64 on Sunday September 11, 2022 @11:04AM (#32800196)
It's unfortunate, https://github.com/mpv-player/mpv/issues/8655#issuecomment-1...:

> Youtube now throttles requests of more than 10MB at a time, yt-dlp works around it by making many requests of 10MB using Range HTTP headers (yt-dlp calls it the http-chunk-size), but ffmpeg which does the downloading for mpv doesn't support that yet.

I want to change mpv or yt-dlp to support range-based video URLs (eg. appending &range=333999644-335298975&rn=5&rbuf=0 to URLs) which speed up stream seeking and probably eliminate throttling altogether, but I haven't taken the time to look into how to achieve it. For anyone interested, I have an open bug report at https://github.com/mpv-player/mpv/issues/10601, and have found https://satadalsengupta.github.io/docs/papers/2017_nossdav_y... describing these parameters.