Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is why I always use `mpv https://www.youtube.com/watch?v=...` instead of clicking on Youtube links. It bypasses all the Javascript and plays the raw video stream. (youtube-dl needs to be installed.)



See also the awesome youtube-dl script: https://rg3.github.io/youtube-dl/ - especially useful for videos you plan to watch more than once. It also handles far more than just youtube, despite the name.


And for even more video services with an emphasis on live and one-time streams, see http://docs.livestreamer.io/


Livestreamer is discontinued. I suggest people try https://github.com/streamlink/streamlink


Does youtube-dl get the ad-free videos for YouTube Red subscribers?


I have never seen any ad on youtube; are they really integrated into the video itself ? from the fact that I never saw any either in the browser (with ublock origin) or through youtube-dl, I kinda just assumed they were distinct videos played by the JS player beforehand - and thus easy to bypass - and not an integral part of the main video file.

Anyway, to answer your question: youtube-dl can perform the page fetching and the download in the context of an authenticated user (for example for age-limited videos), so I assume that any advantages associated with a youtube account would most likely work with it.


I think in at least some cases they are integrated, because I use ublock origin as well and I did see at least some ads before I got YouTube Red. I could be wrong but that's my impression.


Hmm, you could well be right and I simply didn't watch the right videos.


It just doesn't download the ad at all. You can specifically tell it to try to download the ad, but just don't do that and you get ad-free, no matter if you have YouTube Red or not.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: