top | item 41102650

(no title)

siddheshgunjal | 1 year ago

I don't understand one thing...why do you need to host it on a server? It can be just a standalone app on windows/Linux/mac. I recently just started using yt-dlp and have thought of making a simple app. Should I though? Are there any alternatives in existence of this kind?

discuss

order

dspillett|1 year ago

> why do you need to host it on a server? It can be just a standalone app

Your Windows/Linux/OSX device, or a VM or container on it, can be the server if you wish. This way the creators don't need to make two UXs (web for the server, native for the other).

A lot of people run thier self-hosted apps on an external server or home lab (or mix/multiple) with those resources being "properly" setup as infrastructure with backups and such, using their PCs/laptops/tablets/phones as relatively dumb clients/caches that can be easily replaced (pulling local content back from the server the old devices synced to) if lost/damaged. This is one reason self-housing that way is popular.

> using yt-dlp and have thought of making a simple app

I've seen a few desktop apps that seem to be wrappers around yt-dlp (and/or other similar utilities). I've not used any of them so can't comment on their stability/reliability/other, but I'd do a search before writing your own from scratch (unless you want to do that for fun anyway!) as you might find what you want already exists.

jagermo|1 year ago

it also neatly integrates into easy-to-use things like runtipi. I have it on my spare home server, running a tandoor instance, invidious and metube for watching stuff later/offline.

1vuio0pswjnm7|1 year ago

yt-dlp is not even necessary. If just downloading videos from YouTube this can be done with much less code and complexity. I use a tiny C program to do it. Tiny shell scripts work just as well.

What no one is discussing is that yt-dlp can no longer download itag 22 and itag 18 is now throttled.^1 This means yt-dlp has to download an audio file and a video file and use ffmpeg to merge the two.

YouTube ad revenue just missed consensus estimates. Perhaps the accessibility of videos on YouTube is going to get even worse.

1. One will not likely notice this unless one is in the habit of specifically choosing format. For example, some folks have used itag 18 and 22 exclusively for many years.

account42|1 year ago

> yt-dlp is not even necessary. If just downloading videos from YouTube this can be done with much less code and complexity. I use a tiny C program to do it. Tiny shell scripts work just as well.

yt-dlp is not necessary ... if you write a replacement? Ok.

Besides I doubt simple shell scripts will be able to download all videos that yt-dlp can. YouTube does not use the same protections for all videos.

dspillett|1 year ago

> yt-dlp can no longer download itag 22 and itag 18 is now throttled. This means yt-dlp has to download an audio file and a video file and use ffmpeg to merge the two.

I found yt-dlp did that more often than not anyway, if left to its own devices on choosing which formats to pick. Though I had noticed it doing that pretty much always recently.

> Perhaps the accessibility of videos on YouTube is going to get even worse.

I think that has started to happen. I've had a few occurrences recently where it tries to get a particular format and fails, so I've had to manually request something else.

They also seem to have started screening non-residential/office/similar connections more aggressively too, two external hosts of mine now get a message to the effect "login to prove you aren't a bot" when yt-dlp tries to pick something up, and I've seen people note that they have trouble with YouTube proper (without logging in) over some VPN services.

justsomehnguy|1 year ago

> This means yt-dlp has to download an audio file and a video file and use ffmpeg to merge the two.

IMO this is not a prob^W thing even worth bothering about. Does it bother you in any way?

Just curious.

1vuio0pswjnm7|1 year ago

This has been the case for a while now. It may be temporary. Time will tell. Not being a video codec nerd, I do not find that itag 136 is any better than itag 22. Files are about the same size. But 136 needs separate audio file which creates need for ffmpeg and, generally, more temporary storage space.

siddheshgunjal|1 year ago

I also realised the same thing yesterday. I tried using a specific tag quality, for a playlist and many of the videos failed to download. So, I just set it to download the best available quality for video and audio.

1vuio0pswjnm7|1 year ago

Now seeing that itag 136 is being throttled as well, at leas in some cases.

andix|1 year ago

You might want to download the videos to a NAS or home server and store them there, instead on the device you're on at the moment.

A dockerized web app is also much easier to build and maintain, than desktop clients for Windows, macOS, Android, iOS, Linux, and so on.

hashslingingsha|1 year ago

yt-dlp already exists, though, and conveniently, someone else packages and builds it for you already. Why are we boiling the ocean to download videos?

davidbanham|1 year ago

A server is just a computer. You could run this software on the computer in front of you, or a computer in a datacentre. Either is fine.

freehorse|1 year ago

The question then becomes why not just ssh into that computer or whatever and just use yt-dlp on a terminal on it instead of a javascript wrapper around it.

amelius|1 year ago

Yeah, but why mess with port numbers when you can just run it as a standalone process?

fragmede|1 year ago

you host it on the server which has a raid array and is/gets backedup vs a laptop that could get stolen or lost. the point is to have a copy of the videos that can't be deleted/lost so having that on a loseable laptop wouldn't satisfy that requirement

sebtron|1 year ago

Can't you just sync / backup your files?

codetrotter|1 year ago

You don’t back up the data from your laptop to external media? :S

ysofunny|1 year ago

you can ask that about so many things nowadays

why must the majority of software be provided as-a-Service? whatever happened to good old fashioned products??

downrightmike|1 year ago

shareware model didn't really work out, or did you finally buy winrar?