Home » Questions » Computers [ Ask a new question ]

Playing a video from RAM?

Playing a video from RAM?

Is it possible to force a media player to load an entire video to my RAM before attempting to play it?

Asked by: Guest | Views: 224
Total answers/comments: 2
Guest [Entry]

"If you have enough memory to spare, create a RAM disk large enough to hold a full movie and play it from there.

Which OS and player are you using? Some players allow to increase the buffer, which might solve your problem.

In VLC you can increase the buffer via file caching in menu Tools -> Preferences -> Input -> Access -> File."
Guest [Entry]

"I use IMDisk Toolkit to create a dynamically-allocated RAM disk. I have it set to 6GB of size which is how the OS sees it, but if there is nothing on the disk (such as on boot), then it takes about 12MB of RAM according to Windows (10) Task Manager (I have 8+GB to play with). The RAM usage increases 1:1 with the size of every file on the RAM disk and deleting a file frees up the RAM within seconds.

I can then load my videos (movies, shows) in their entirety to R: and then my HDD can go back to sleep for the next couple of hours while I watch the videos from RAM. In your case, the HDD could then be used for other things, but I wanted to use it for energy and HDD lifetime considerations (Task Manager shows that the HDD is no longer searching 1% every ~6 seconds and my external HDD light turned off signifying sleep).

I also like it because it does not affect fresh boot time or shutdown time as the disk starts empty upon boot and saves nothing upon shutdown (scripts can be written to do this though). It does, however, affect hibernate up and down times, which is my usual ""off"" state.... Gotta remember to delete the files before I hibernate...."