

Saying RAM can help because you can reencode the video to h.264 or h.265 to make use of hardware decoding is more than a bit of a stretch. You can just reencode it to the normal disk instead. Unless it’s the speed of the local block device that’s the bottleneck here (and there’s no indication that it is, and it would be extremely unlikely), using a ramdisk/tmpfs for any part of that is just pointless.
There is no wise way to use that information.
But the foolish ones could be entertaining.