areaofeffect / RaspberryPi-Workshop

Raspberry Pi for Artists Workshop @_reverse_art gallery
7 stars 2 forks source link

Looping videos with omxplayer. #2

Open brunokruse opened 9 years ago

brunokruse commented 9 years ago

How do we loop our videos using omxplayer?

There's an issue with the --loop flag on the latest omxplayer. Use our updated guide here on installing a newer version of the player that supports looping. We'll keep looking into this... maybe there's another player out there we can try?

https://github.com/justpitbulls/RaspberryPi-Workshop/tree/master/video

judgeworks commented 9 years ago

Hi Bruno, when I added the last line 'dpkg -i omxplayer_0.3.6~git20141024~98982df_armhf.deb' the reply was 'dpkg: error: requested operation requires superuser privilege'. Any suggestions?

I found this blog w/ a solution to similar problems. I'd like to try but am not clear where I enter the bash script? May be over my limited scripting skills. http://www.geek-tips.com/2014/07/30/infinite-video-loops-on-a-raspberry-pi/

kandizzy commented 9 years ago

try sudo dpkg -i omxplayer_0.3.6~git20141024~98982df_armhf.deb

judgeworks commented 9 years ago

Thanks Carrie. I tried it with sudo this time. this is what I got. Maybe there's something I need to install before this? I entered each line into terminal (from the revised omxplayer loop you all posted):

pi@judgeberry /tmp $ sudo dpkg -i omxplayer_0.3.6~git20141024~98982df_armhf.deb Selecting previously unselected package omxplayer. (Reading database ... (Reading database ... 82080 files and directories currently installed.) Unpacking omxplayer (from omxplayer_0.3.6~git20141024~98982df_armhf.deb) ... dpkg: dependency problems prevent configuration of omxplayer: omxplayer depends on libssh-4; however: Package libssh-4 is not installed.

dpkg: error processing omxplayer (--install): dependency problems - leaving unconfigured Processing triggers for man-db ... Errors were encountered while processing: omxplayer pi@judgeberry /tmp $

kandizzy commented 9 years ago

Ok you'll need to install libssh-4 and then try the command again. Here are both commands to run: sudo apt-get install libssh-4 sudo dpkg -i omxplayer_0.3.6~git20141024~98982df_armhf.deb

After this --loop will work, however there is a black frame between loops. We are still looking into that, we will also take a look at the link posted above .Thanks!

kandizzy commented 9 years ago

There's an update on this issue here.