You can record bag file with Intel Realsense Viewer app. Please find and check details at Realsense GitHub repo.
But Astra SDK is not able to playback bag file I guess.
And somehow bag file from Realsense is very big. For example 1.5GB for 10 sec recordings.
Nuitrack SDK supports bag file playback and oni file playback.
Is it something like the data from different sensor may not be same. I think a 30 second recording would be enough for testing. but would I be able to use coordinate mapper and other Astra SDK functionalities?