-
-
Save cpmpercussion/607e7fd5ad1f5b1cf4fc76950e6bcd13 to your computer and use it in GitHub Desktop.
#!/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 |
what about looping multiple files? XD
thank you for this. A simple thing to add, but very helpful.
I used this for a digital menu signage. play a video in the background with --layer #, and the menu image on top in another layer. works fantastically
could someone help me ?? mine is not working, it says that local is a invalid syntax
Is there a way to stop the loop inside python. <omxplayer -i> doesn't seem to interrupt it?
@jeffdn2: killall omxplayer.bin
In my case, it finishes playing, seeks 00:00:00 and exits
Great one-liner!
Anyone looking for something that auto-builds playlists, etc, https://github.com/goatface/mplall
Oh I don't believe! You are save my day.
I'm also using python script and distance sensor for show video from start if someone start looking it
@spolischook Any chance you could share your script?
Oh I don't believe! You are save my day.
I'm also using python script and distance sensor for show video from start if someone start looking it@spolischook Any chance you could share your script?
It was a long time ago. I have no this script anymore, but it was so simple, I believe that you can do the same in a half an hour ;)
@orjanv it read the distance sensor, and if it was changed (the viewer got the headphones) it start a video from start
the viewer got the headphones
@spolischook I see, thanks. I was looking for how to switch between a looping video and to a single video (once triggered) and go back to looped video once the single video was finished. Just curious how you solved that. :-)
@orjanv I think I start a separate process, and I've kill it once I don't need it, and start the new one.
Thanks!!!
Thank you so much! I was looking for this one liner all over the digital realms. Was trying to get my video to work as a screensaver first but this is so much easier and les complicated then it has to be :) 💯
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
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.
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.
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)
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.
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.
Oh I don't believe! You are save my day.
I'm also using python script and distance sensor for show video from start if someone start looking it