I am wondering whether this sentence is correct:
The scenes consist of about 400 images showing a non-moving ball at various locations while the rest are sequences of a moving ball.
...or if there has to be comma:
The scenes consist of about 400 images, showing a non-moving ball at various locations while the rest are sequences of a moving ball.
Since The scenes consist of about 400 images is the main clause, I would consider that a comma is needed there...but I am not sure.
EDIT: Meanwhile a colleague of mine suggested the following:
The scenes consist of about 400 images, showing a non-moving ball at various locations, while the rest are sequences of a moving ball.