If you need to convert your .gif images to a video file (for example .mp4), you need to use some of the video processing tools with image to video conversion function. You can also find dedicated tools and online converters specially designed for gif to mp4 conversion.
However, if you are trying to convert animated gif image to a video, you will not get the original video back. An animated gif just contains several frames from the original video to create animated feel.