Render out a video of an animation
For several reasons but mostly because of the colour range provided by some of the available image formats, you always want to render your animation to an image sequence (preferably .exr in case you are doing serious work) and compile the images into a video container like .mov, .mp4 or whatever afterwards.

You can even compile the sequence using Blenders Video Sequence Editor or any other video package of your choice (depending on what you got access to) like resolve, ffmpeg or handbrake to only name a few out of hundreds of free options: Comparison of video container formats on Wikipedia.