Live data from Hacker News

Show HN: Tube – Minimalist YouTube

tube.quinzel.tech

101–110 of 116 posts

Re: Show HN: Tube – Minimalist YouTube

#101

For some time I've been tinkering with a script which manages my own fine-grained youtube subscription preferences, periodically scrapes various pages for metadata, and then as necessary extracts videos by using the youtube-dl utility. The end result is a directory on my machine which always has a few interesting videos to watch, ad-free, tracking-free, network connection free, using my favorite full-featured video p…

If you like youtube-dl you should check out mps-youtube ( https://github.com/mps-youtube/mps-youtube ) which has the ability to use youtuble-dl as the backend I'm pretty sure (i prefer to use the native one personally) It's also gpl vs youtube-dl's public domain. I'm sure eventually I'll figure out a way to just do it in emacs. (I'm mostly joking... kinda... maybe.)

> (i prefer to use the native one personally)

Then you should try - SMTube[0].

SMTube allow use "mpv + youtube-dl" for play videos.[1]

[0] http://www.smtube.org/

[1] https://blog.smplayer.info/how-to-download-videos-with-the-n...

Re: Show HN: Tube – Minimalist YouTube

#103
post #95

Earlier quoted context omitted.

I actually have a script running on a cron job on my personal server that does approximately this. It downloads into a Syncthing folder that automatically syncs to whatever devices I might want to watch videos on. The difference is I just have a set of playlists for it to download, so I'm relying on the YouTube creators to organize their videos into appropriate playlists, which means it's not exactly "fine-grained".…

Uploads is a playlist.

For the few YouTube channels where I actually want to watch every single video uploaded by the creator, I do use this. For the rest, I have to hope that they create playlists for the subset of their videos that I am interested in. Many creators are actually quite diligent about organizing their uploads into playlists.

Re: Show HN: Tube – Minimalist YouTube

#104
post #98

For some time I've been tinkering with a script which manages my own fine-grained youtube subscription preferences, periodically scrapes various pages for metadata, and then as necessary extracts videos by using the youtube-dl utility. The end result is a directory on my machine which always has a few interesting videos to watch, ad-free, tracking-free, network connection free, using my favorite full-featured video p…

You don't need to scrap the page, YouTube provides the RSS stream for each channel: ` https://www.youtube.com/feeds/videos.xml?channel_id=[ID]` . The RSS contains the "normal" link of each video, so you can invoke youtube-dl or mpv on it.

> You don't need to scrap the page

They do if they are scraping playlists.

Youtube assumes that when creators make a playlist, they’ll add videos to the top. As such, the RSS for a playlist[1] always returns just the top 15 results. But a lot of creators — typically the ones that take greater care into organising their playlists, such as Crash Course[2] — add videos to the bottom of their playlists. Those RSS feeds will be stuck at the same 15 items forever, and your only option is to scrape the page.

[1]: https://www.youtube.com/feeds/videos.xml?playlist_id={playli...

[2]: https://www.youtube.com/user/crashcourse

Re: Show HN: Tube – Minimalist YouTube

#105
post #70

Earlier quoted context omitted.

Do you have a way to ensure you get the highest quality? I do similar with cron but often get videos as they're still processing (and thus only at lower qualities). One issue is the channels I 'subscribe' to don't always output at the same resolution and frame rate.. so I can't do a simple 'is video 4k60' test.

Could you look at the upload date and wait a certain amount until the processing is more likely to be done?

That's an excellent idea. You can work out a reasonable amount of time to allow YouTube to do the video processing, and then use youtube-dl's "--datebefore" option to only download videos that are at least that old. You'll have to manually compute the date and time for X hours in the past, I suppose.

Re: Show HN: Tube – Minimalist YouTube

#107
post #60

Earlier quoted context omitted.

youtube-dl is really cool, and supports loads of sites as well as just youtube. VLC can also play youtube URLs directly, although buffering can be annoying. There's also a Python package called "whitey" which provides an ncurses interface for searching youtube, and sending videos to e.g. mplayer or youtube-dl. If you want to "subscribe" without needing an account, every youtube channel provides an RSS feed (look in t…

VLC can also play youtube URLs directly I legitimately did not know this, thanks for the knowledge share! Can it follow playlist s of videos? There's a few video game streamers whose commentary and remarks are so funny and well written I find myself listening to them more like a podcast than watching the video, so I'm often queuing up playlists and having the background noise while doing house chores and the like

Well, if you're on Mac and if you want to forgo the playback speed controls (like for, music) I can also recommend Vox earlier versions (2.8.26)[0]

It is an audio player with the youtube-list-as-playlist feature. In my experience, it generally delivers a better sound quality of the same videos than youtube. Copy the url (make sure it's /?list=). Hit Cmd + U, paste, . Then optionally download the extension for using keyboard buttons[1] and control playback from there.

Or you can always use `youtube-dl -ix /?list=` then open the resulting files with .opus extension with your favorite player.

[0]: https://vox.rocks/mac-music-player/old-versions [1]: https://vox.rocks/mac-music-player/control-extension-downloa... Disclaimers: No commercial interests. Just a happy user.

Re: Show HN: Tube – Minimalist YouTube

#108
post #70

For some time I've been tinkering with a script which manages my own fine-grained youtube subscription preferences, periodically scrapes various pages for metadata, and then as necessary extracts videos by using the youtube-dl utility. The end result is a directory on my machine which always has a few interesting videos to watch, ad-free, tracking-free, network connection free, using my favorite full-featured video p…

Do you have a way to ensure you get the highest quality? I do similar with cron but often get videos as they're still processing (and thus only at lower qualities). One issue is the channels I 'subscribe' to don't always output at the same resolution and frame rate.. so I can't do a simple 'is video 4k60' test.

After it has finished processing, youtube-dl will (by default) download the best format anyway.

Re: Show HN: Tube – Minimalist YouTube

#109
post #70

Earlier quoted context omitted.

Do you have a way to ensure you get the highest quality? I do similar with cron but often get videos as they're still processing (and thus only at lower qualities). One issue is the channels I 'subscribe' to don't always output at the same resolution and frame rate.. so I can't do a simple 'is video 4k60' test.

Could you look at the upload date and wait a certain amount until the processing is more likely to be done?

Ah! That could work indeed. Thanks :)

Re: Show HN: Tube – Minimalist YouTube

#110

Earlier quoted context omitted.

Could you look at the upload date and wait a certain amount until the processing is more likely to be done?

That's an excellent idea. You can work out a reasonable amount of time to allow YouTube to do the video processing, and then use youtube-dl's "--datebefore" option to only download videos that are at least that old. You'll have to manually compute the date and time for X hours in the past, I suppose.

Thanks for the hint wrt --datebefore. I'll give it a go :)
Post reply on HN