Ram speed is not the issue, camera interface is limited to 120MB/s, ram bandwidth is >2GB/s on pee3, 4GB/s on pee4.
But you dont even need fancy compression, at those framerates things change really slowly so simple delta encoding on raw data will do wonders.
last time I tried USB 2.0 hdd on pee3 did 35MB/s on the dot