Well, that made absolutely no sense at all. Maybe one had to see the whole movie, but from this scene, to do so would have been a waste of time and attention.
It’s a weird movie but the gist of it is that a newly-discovered gas giant (something like the size of Neptune or Uranus) is approaching Earth. It seems to pass safely but because of gravitational perturbation it swings back around and collides with Earth. That’s from the end of it, when the crash happens.