r/programming • • Oct 23 '20

[deleted by user]

[removed]

7.0k Upvotes

1.4k comments sorted by

View all comments

Show parent comment

136

u/falconfetus8 Oct 23 '20

Even if the actual code goes away, it's not like downloading a YouTube video is rocket science. The site's whole purpose is to send video to your computer. All you need to do is make the computer hold on to it.

43

u/HCrikki Oct 24 '20

There will always be loopholes to even the most agressive tech-enforced lockdowns. Download OBS, record or restream the viewport of the youtube video and you got the original copy ready to recompress, repost/share elshere.

0

u/[deleted] Oct 24 '20

[deleted] — view deleted comment

3

u/[deleted] Oct 24 '20

A youtube video dl is far from the original copy

11

u/Xtrendence Oct 24 '20

It's a lot closer than a screen recording though. The YouTube DL video is just a compressed version of the original source (and YouTube's compression is actually pretty), whereas the screen recording would just be a second step in lost quality.

3

u/_tskj_ Oct 24 '20

I'm not sure I understand why a screen recording theoretically can't be as good, if you're recording at full resolution and losslessy?

12

u/Xtrendence Oct 24 '20

If you are indeed recording at full resolution and it's a completely lossless codec, then you're right. As long as there aren't any skipped frames or stutters or anything like that, you'd be golden. But in general, a lot of screen capture software (including OBS) do compress video to an extent when they encode it, because lossless screen capture is actually a fairly complicated thing to do reliably, and even on the highest qualities, the software will still compress your video. It won't be noticeable for the most part, but if we're being really picky, downloading the video file from YouTube would get you the closest you can get to the original source, because it won't have been encoded twice.

I do feel the need to mention that this isn't my area of expertise though, so these are just things I've learned from Google searches over the years and some personal experimentation in the past, so things may have changed.

3

u/I_get_in Oct 24 '20 edited Oct 24 '20

a lot of screen capture software (including OBS) do compress video

In OBS you can specify custom FFmpeg output settings, which means that you can use something like x264’s lossless mode for video and FLAC for audio. This would be completely lossless, granted that you don’t encounter any buffering or other problems in the video playback while recording. Of course lossless recording will give you a needlessly huge file, so downloading the files directly from YouTube is still a more ideal way of archiving them.

→ More replies (1)

2

u/_tskj_ Oct 24 '20

Okay that does make sense.

→ More replies (1)
→ More replies (1)

17

u/tongue_depression Oct 24 '20

the great part about ytdl is that it’s impervious to change. it always works. everything else stops working periodically. i don’t know enough about the process, but i think the consistency is the hard part

40

u/lhamil64 Oct 24 '20

I think that's because there's always someone who fixes it quickly when it breaks. I've definitely gone to download a video just to get an error, and once I update it starts working again.

5

u/codav Oct 24 '20

That. It broke many times in the past, but the devs released a fix very quickly, sometimes even in less than a day. If it's now forced to become an underground project, this will not be as easy as it was in the past.

5

u/[deleted] Oct 24 '20

All I know is, I am disappointed to hear about this and to hear about the news as well.

Anyone able to point me in the direction of saving?

3

u/Iris_n_Ivy Oct 24 '20

Try pypi. Or run pip install youtube-dl

4

u/ro4ers Oct 24 '20

I just use JDownloader for all sorts of YouTube and similar video downloads. They support downloading whole playlists, pausing and resuming downloads and the program auto-adds video links from the clipboard.

I can't see anyone taking down JD because it's a download manager, that just so happens to be able to download stuff from YouTube, VIMEO etc as well.

3

u/jesus_knows_me Oct 24 '20

I use youtube-dl mostly to watch videos in mpv player so it uses hw acceleration and i can do something else at the same time. I'm not going to download a video to watch it only once.

9

u/ColeSloth Oct 24 '20

A lot of drm protections have started getting baked in to processors and motherboards at the hardware level. Pretty soon you won't be able to get those videos so easily.

12

u/woojoo666 Oct 24 '20

yup, HDCP is semi-related, where hardware manufacturers have to comply with intel's guidelines and prevent video/audio streams from being copied. In a dark future, video players will stream encrypted content directly to the monitor/TV, and it will be impossible for screen recorders like OBS to capture the data.

2

u/Anne_Roquelaure Oct 24 '20

I only want to record the sound going to my speakers or line out

3

u/woojoo666 Oct 24 '20

well you better hope they don't start designing speakers to only use encrypted audio streams then :/

2

u/pavlov_the_dog Oct 24 '20

idk, hack the ribbon connecting the processor to the screen?

2

u/codav Oct 24 '20

If HDCP is fully enforced, the data is also encrypted. That only leaves the PCIe bus between the CPU and GPU, but that's very hard to "hack".

→ More replies (3)

5

u/OniExpress Oct 24 '20

Still won't matter in the grand scheme of things. In/out video processing is basically consumer level tech at this point. There are tens of thousands of streamers who use stuff like OBS or physical capture cards. DRM doesnt mean shit anymore, it's just there to keep every teenager from ripping stuff constantly because that would make it impossible to go after the people who are actually doing stuff like ripping Netflix to sell on cheap DVDs.

2

u/yawkat Oct 24 '20

And they'll all be broken. SGX is already leaky as a sieve.

→ More replies (4)

2

u/kwinz Oct 25 '20

It actually is not that easy. That's why I rely on youtube-dl. Also it breaks fairly regularly and needs to be updated. That's why hindering continued youtube-dl development is a real threat to me.

→ More replies (3)