mpv is a cross-platform media player. It can be used to play video repeatly forever. Here is how you run the command to loop your video forever.
# inf means infinite. mpv --loop=inf videofile.avi # You can also enter the number of times you want the video to loop. # Simply enter a number, e.g. 7. mpv --loop=7 videofile.avi