code: def get_video_end_time(video_file):
      
      if not os.path.isfile(video_file):
          print("Error, video file {} does not exist".format(video_file))
          return None
      try:
          time_string = FFProbe(video_file).video[0].creation_time
          try:
              creation_time = datetime.datetime.strptime(
                  time_string, TIME_FORMAT)
          except:
              creation_time = datetime.datetime.strptime(
                  time_string, TIME_FORMAT_2)
      except:
          return None
      return creation_time
docs: Get video end time in seconds