Turning screenshots into video (TakeHighResScreenshot)

Hi everyone, I need a bit of help with my solution.

I am working on my research project for which I am using metahumans. What I am doing is, I am animating the metahuman by updating the position of its head at each frame based on a .csv file.

For example, my animation has 300 frames so at each frame in the engine I am updating the position of the head and taking a high res screenshot of that frame → then I use a small delay so that there is enough time for the screenshot to save before moving onto the next frame.

I then take those 300 screenshots and using a python script turn it into a video.

I got this working for one video, however, I need some advice on scaling this up. My main problem being that the high res screenshots take up A LOT of space before I turn them into videos (I need around 2000 videos which brings the screenshot count up to 600 000).

I decided to go with screenshot approach over the take recorder due to the amount of videos I need to take: this also gives me good control over ensuring every frame is captured.

My question is, does anyone have an idea of how I could approach this to make the file sizes more manageable? Ideally I need the screenshot resolution at 1080 x 1080

Please let me know if something is not clear or you need more info to help out. Thank you!