How to loop the video on mplayer with Raspberry Pi?

1.2k Views Asked by At

I'm currently trying to play a video clip using a Raspberry Pi with 3.5-inch touch display. I know that omxplayer has the function to make it loop, but from some reason omxplayer can't play my video on 3.5inch LCD display. So I have only the option to use mplayer but I couldn't make it loop in mplayer so if you know how to make the video loop, please let me know.

1

There are 1 best solutions below

1
Arkadiusz Drabczyk On

As it says in man mplayer:

-loop

Loops movie playback times. 0 means forever.

So it should be:

mplayer -loop 0 <VIDEO>

If you ever come across a player that does not support looping you can easily create such loop yourself:

while true; do <player> <video> ; done