code: def close(self):
          
          if self.duration:
              _fps = len(self.frames) / float(self.duration)
              colors.printc("Recalculated video FPS to", round(_fps, 3), c="yellow")
          else:
              _fps = int(_fps)
          self.name = self.name.split('.')[0]+'.mp4'
          out = os.system("ffmpeg -loglevel panic -y -r " + str(_fps)
                          + " -i /tmp/vpvid/%01d.png "+self.name)
          if out:
              colors.printc("ffmpeg returning error", c=1)
          colors.printc("~save Video saved as", self.name, c="green")
          return
docs: Render the video and write to file.