This setting controls whether or not PyMOL loops your movies.
# turn off looping set movie_loop, 0 # turn on looping set movie_loop, 1
movie_delay