r/howdidtheycodeit • u/Soundless_Pr • Jun 21 '22
How are some video streaming services protected from screen recording software?
If you go to amazon prime video and try to screen record or use discord to stream your window, the stream will just show a black screen where the video is supposed to be. On Windows 10.
How do they do this? I thought that screen recording/streaming software got a feed of what your screen is displaying directly through the graphics driver, so I don't understand how a website could avoid graphics from being rendered on screen recording software, unless it's a feature hard coded directly into the screen recording software, the OS, or the graphics driver.
5
u/polaarbear Jun 22 '22 edited Jun 22 '22
Its HDCP or something similar even if they aren't using this exact standard it's worth a read to understand the concept of how it can be done.
Even though the screen recorder doesn't go over a physical cable, they can still be locked out of a video feed in similar ways at the driver level by doing things like blocking un-signed GPU drivers if they really wanted to get nasty.
https://en.m.wikipedia.org/wiki/High-bandwidth_Digital_Content_Protection
This is an especially big problem for Linux users where you often can't access your favorite services or get diminished quality.
https://support.system76.com/articles/protected-content/
23
u/Suspicious-Engineer7 Jun 21 '22
https://www.reddit.com/r/howdidtheycodeit/comments/u08oqq/how_does_the_apple_tv_desktop_app_prevent_screen/?utm_medium=android_app&utm_source=share
I asked a similar question. Good answers in there I won't try to summarize.
38
u/StopThinkAct Jun 22 '22
FWIW this only works if you enable hardware acceleration in the browser. As soon as you turn that off you can stream to your buddies to your heart's content.
1
u/darKStars42 Jun 22 '22
I'd have thought recording software would literally just draw what's in the frame buffer twice, once to the screen and once to wherever your sending the data, be that a file or somewhere across the Internet. In the same way an overlay can just draw ontop of what's already there. Pretty sure that's how it used to be done, because it used to be a huge performance hit to record while playing.
I wouldn't mind a more detailed breakdown of what actually happens each frame that lets a program respond to another one wanting to read the buffer too.
1
u/[deleted] Jun 25 '22
Just curious, does it also happen if the video only takes a portion of your browser (if it's possible) or is it just that portion that is blacked out and you can see the rest of your browser?
Thanks.
0
u/[deleted] Jun 22 '22
Then how do you tubers sample content for their commentary vids?
-21
u/moonshineTheleocat Jun 21 '22
Depends on how the screen recording does it. There's a way to prevent applications from accessing the memory. But the decryption process to display on the screen is almost always a final compsited image. And it doesn't always work as there's workarounds that is literally the user flipping a setting in the browser.
To avoid getting into trouble by reddit... Even with an education disclaimer. Im not mentioning the settings that can be changed.