I couldn't SSH or RDP to it, I can't exit the video to make any changes if I needed to, so I ended up having to reinstall Raspbian and start over. The problem becomes like yesterday, when it dropped off the network and wouldn't rejoin. The only way I've found to stop it is to SSH to it (or RDP), change the name of the Videos folder on the Desktop and restart, and that breaks the loop. This is all fine and dandy and runs manually (have to restart to stop video), I go in and edit /home/pi/.bashrc and add sudo python /home/pi/Desktop/omxloopĪnd voila! It plays when I boot, the problem becomes I have no way to exit the video if I needed to. I have a file on the desktop named omxloop with the following : #!/usr/bin/pythonįor infile in glob.glob(os.path.join(path, '*.mp4')):Ī = subprocess.call( ) MP4 and fire the video up and run on repeat unless I stop it somehow.Īs of right now I've got a folder on the Desktop named Videos with the. I've got a Raspberry Pi 2 that I want to start up, look at a specific folder for a. Good morning all! I've been tasked with setting up electronic signage for one of our branches to display an MP4 file on loop. The best thing? The base model is only $20 $5!.ĭo you know a related subreddit? We'd love to know. Welcome to /r/raspberry_pi, a subreddit for discussing the raspberry pi credit card sized, ARM powered computer, and the glorious things we can do with it. Pi project ideas: There's a huge list right here on this sub! Print("Serving on ".format(server.Friendly reminder: Please don't just post pictures of unused pis - do a project!Ĭomplete r/raspberry_pi Rules Check the FAQ and Helpdesk here Server = osc_server.ThreadingOSCUDPServer( Player5.exitEvent += lambda _, exit_code: playerExit_loop2(exit_code)ĭispatcher.map("/btn/push5", play_action, "action")ĭispatcher.map("/btn/push2", play_standby, "standby")ĭispatcher.map("/btn/push4", play_loop, "loop") Player6.exitEvent += lambda _, exit_code: playerExit_loop1(exit_code) Player4.exitEvent += lambda _, exit_code: playerExit_loop1(exit_code) Player3.exitEvent += lambda _, exit_code: playerExit_standby(exit_code)ĭef play_loop(unused_addr, args, volume): Player2.exitEvent += lambda _, exit_code: playerExit_standby(exit_code) Player1.exitEvent += lambda _, exit_code: playerExit_action1(exit_code)ĭef play_standby(unused_addr, args, volume): Player.exitEvent += lambda _, exit_code: playerExit_action1(exit_code) This is the code that I've made: from ayer import OMXPlayerĭef play_action(unused_addr, args, volume): It's showing both video, or just one video slowly. I have manage to do each interaction separately, but I have problems when I press one button, and then another one. Loop -> it will display a loop of video1 and video2 -> loop(video1 + video2).Standby -> it will display a loop of the video2 -> loop(video2). Action -> it will display video1 and then a loop of the video2 -> video1 + loop(video2).The TouchOSC layout will be just three buttons -> action, standby and loop: In total there are just two videos -> video1 and video2 The project consist on using TouchOSC to send different osc message to the RaspberryPi and then it will display different video sequences based on the OSC message. I'm quite new using Python & OMXPLAYER-WRAPPER and some help will be awesome! : ))
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |