StevenHickson / RPiVideoLooper

Video Looper for the Raspberry Pi
Other
98 stars 36 forks source link

Seemless Transitions #5

Open RichShumaker opened 9 years ago

RichShumaker commented 9 years ago

So I have been doing a bunch of research on this and it seems that some people have gotten 'looping' to work seemlessly with the OMX Player. Unfortunately it crashes after a certain amount of time. Here is a discussion of the looping https://github.com/popcornmix/omxplayer/issues/187 This is of course looping 1 video so I am not sure how it would handle a list of videos.

So I did some more research and found this method from years ago that works well, Here is the link to the post http://www.sundh.com/blog/2013/10/loop-videos-seamlessly-omxplayer/

It is pretty straight forward. You start 2 videos and play the first and pause the second. When the first ends you start the second and there is no gap in playback. Then you start a 3rd video which could be the first video again and pause it. Then you repeat to infinity. I wonder if this Python method could be implemented for the RPiVideoLooper. This method uses a duplicate copy of the video so it can go back and forth. So if you are using just one video it would be recommend to duplicate it and rename it.

This method is rather straight forward but I am not sure if some other issue might come up as it did with the OMX Player looping with a log file getting to large and crashing things.

RichShumaker commented 9 years ago

I have used Minibian as the base to rebuild videolooper to see if I could save some space. It works about 80% as I still need to implement USB and I have an issue between videos. With the normal Videolooper image(version 3 now I think 3.7GB) it shows up Black between videos Now when the video goes to 'black' I get the login screen instead of black. Here is my omxplayer information omxplayer - Commandline multimedia player for the Raspberry Pi Build date: Tue, 10 Feb 2015 01:49:30 +0000 Version : 337004e [master] Repository: https://github.com/popcornmix/omxplayer.git

Ideally it could be seemless but I think I will need to use Python or another programming language to start multiple instances using the method I list above.