Skip to content

Instantly share code, notes, and snippets.

@cpmpercussion
Created July 15, 2016 08:31
Show Gist options
  • Save cpmpercussion/607e7fd5ad1f5b1cf4fc76950e6bcd13 to your computer and use it in GitHub Desktop.
Save cpmpercussion/607e7fd5ad1f5b1cf4fc76950e6bcd13 to your computer and use it in GitHub Desktop.
omxplayer command to loop a video forever for use in video art exhibitions
#!/bin/bash
# This one-liner script plays a video in an infinite loop on a raspberry pi
# for a video-art exhibition.
# It was written for a video in portrait orientation so the video is rotated 270
# to use up the whole screen (which was also rotated).
# Charles Martin, July 2016
omxplayer -o local --loop /home/pi/video.mp4 --orientation 270
@cpmpercussion
Copy link
Author

too bad that this isn't a seamless loop.... :/

I don't understand why its so hard to seamlessly loop a video on a pi

yeah man.

@theeggoplant
Copy link

I've been trying to get a seamless loop to work for like a year but I think I'm getting close maybe? So if I figure it out I'll let you know.

@theeggoplant
Copy link

theeggoplant commented Jul 28, 2023

Okay I finally figured out how to loop a video seamlessly with no break, cut, terminal, anything. There is no delay between loops. This was a long process for me but isn't too difficult if someone wants to know how to do it let me know! (no sound just video)

@orjanv
Copy link

orjanv commented Jul 29, 2023

Okay I finally figured out how to loop a video seamlessly with no break, cut, terminal, anything. There is no delay between loops. This was a long process for me but isn't too difficult if someone wants to know how to do it let me know!

I would like to know.

@somaholiday
Copy link

Okay I finally figured out how to loop a video seamlessly with no break, cut, terminal, anything. There is no delay between loops. This was a long process for me but isn't too difficult if someone wants to know how to do it let me know! (no sound just video)

I would also like to know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment