-1

I'm interested in basic workings of technology.

Are parts of videos (say, from YouTube) go to some folder (like %USERPROFILE%\AppData\Local\Temp), or are they complicatedly processed from RAM?

I only familiar with topic from "Network" tab in Google Chrome DevTools.

I'd prefer if someone placed a good article here!

  • Closest to answer that I've found: https://www.quora.com/When-you-view-a-video-or-a-picture-is-it-stored-on-the-hard-drive-or-RAM – Victor Novak Mar 13 '22 at 22:07
  • Why downvote? I can only guess at this point. – Victor Novak Mar 14 '22 at 00:38
  • I didn't downvote, but there are a few issues with your question. first, its off-topic for this site, because you are requesting learning materials, and because the question does not indicate an issue with real world computing (sorry, I know the sites scope can be a bit limiting). https://superuser.com/help/dont-ask . Second, your post shows no indication of the research you have performed prior to asking. SU is more about helping you with the specific details you don't understand after research, than it is about initial instruction. finally your question is quite broad. – Frank Thomas Mar 14 '22 at 01:40
  • So, being off-topic and all, your question with either be closed summarily, or/and simply descend into the timelline such that no one ever bothers with it again. There probably won't be other answers coming. I encourage you to review the answer i have submitted, and decide whether you think it could be of use to others in the future. if not, downvote it and leave a comment as to how you feel its deficient. if you do believe it could help other users in the future, upvote and when you are comfortable, accept it as the answer. if you need further detail, comment. – Frank Thomas Mar 14 '22 at 05:09
  • or alternately promote your question on social media outside of the stackechanchange environment. in my experience, it can draw additional attention to high-level questions like yours, if it resonates with people. I hesitate to mention it, as it can create stupid vote-storm threads like this one https://superuser.com/questions/577502/why-is-google-so-much-faster-than-a-hard-drive-search/577506#577506 but if you believe your question has merit, don't let my reticence bother you. – Frank Thomas Mar 14 '22 at 05:15

1 Answers1

0

First, this is a general answer, since you are just getting started. the concepts you are asking about are simple, but there is a lot of situational nuance that muddies the waters, and I won't be going into all that.

First, not all videos are provided by servers and websites the same way. Especially in the old days, small videos could be embedded in pages as a binary download, and once the download is complete and the page renders, the content is played by javascript or a local runtime like flash. This is common in for Ads. There are a few things to consider about this method:

  1. The entirety of the file is downloaded, and usually up front.
  2. The playback of the video happens entirely on the local computer.
  3. The browser will probably try to cache the video to disk so it doesn't need to be downloaded again on the next page refresh.
  4. The video format will impact how the video is decoded, buffered, and played back by the local computer, and will vary widely. common video formats run the gamut between woefully incomplete (mpeg-1), and seriously complicated (h.265).

Streamed videos are much more advanced. Software on the client and on the server work together to deliver and render the video stream Just-In-Time, using minimal resources like RAM and CPU while playing the video smoothly. Streaming allows a server to provide very large long-running videos without downloading upfront.

  1. The client and the server will negotiate how the stream will be provided, including things like how much buffering is desired. Some degree of "state" is maintained on both sides of the connection.
  2. The videos themselves will be in a format that supports all the features required for streaming.
  3. Just-in-time processing allows the system to buffer downloaded data to RAM, and control that buffer, so it doesn't grow to large, or empty too quickly. this is good, because a long afternoon on a Netflix binge would likely fill a small hard disk.
  4. Streamed video is not generally cached to disk, because it is unlikely to be reused in future. that would be pointless without a full copy of the video.
  5. if the local computer is stressed, some stream content may end up on disk, perhaps in a cache file maintained by the video player client, or in your virtual memory pagefile/swap. generally that will just be bits of the video however, and not really be coherent data long term.

Hope that helps.

Frank Thomas
  • 35,097
  • 3
  • 77
  • 98