omxplayer-sync icon indicating copy to clipboard operation
omxplayer-sync copied to clipboard

launch omxplayer-sync on startup

Open TheAffair opened this issue 4 years ago • 7 comments

Hello- I installed omxplayer-sync on B plus running Stretch. Master works fine. Slave returns the errors below on startup. Can you provide a solve or point me in the right direction please?

I am launching omxplayer-sync with a bash script on start up using this script: #!/bin/bash echo startup.sh : Launching omxplayer-sync: omxplayer-sync -muv hdmi /home/pi/Vides/DFS.mp4

Error: Traceback (most recent call last) File "/usr/bin/omxplayer-sync", line 394, in OMXplayerSync().run() File "/usr/bin/omxplayer-sync", line 182, in run self.play_file(self.playlist[self.playlist.index]) File "/usr/bin/omxplayer-sync", line 209, in play file preexec_fn=os.setsid, stdout=DEVNULL, stderr=DEVNULL, stdin=DEVNULL) File "/usr/lib/python3.7/subprocess.py", line 775, in_init_ restore_signals, start_new_session) File "/usr/lib/python3.7/subprocess.py", line 1522, in_execute_child raise child_exception_type(errnonum, err_msg, err_filename) FileNotFoundError: [Errno 2} No such file or directory: 'omxplayer': 'omxplayer'

TheAffair avatar Jul 13 '21 21:07 TheAffair

Wrong video file pathname?

himijendrix24 avatar Jul 14 '21 05:07 himijendrix24

On 14/07/2021, at 7:36 AM, TheAffair wrote:

Hello- I installed omxplayer-sync on B plus running Stretch. Master works fine. Slave returns the errors below. Can you provide a solve or point me in the right direction please?

I am launching omxplayer-sync with a bash script on start up which runs master perfectly using this script: #!/bin/bash echo startup.sh : Launching omxplayer-sync: omxplayer-sync -muv hdmi /home/pi/Vides/DFS.mp4

Typo is folder name "Vides"? Are you using -luv on the slave instead of -muv?

exidyboy avatar Jul 14 '21 22:07 exidyboy

Wrong video file pathname?

Good catch! Thank you. But still not working. The error return seems to reflect an issue with omxplayer-sync not existing in the /bin location.

TheAffair avatar Jul 14 '21 23:07 TheAffair

Yes I am using -luv on slave and -muv on master. I was able to copy the working disk image and change the slave to -luv which solved the issue. However when installing omxplayer – sync on a fresh Stretch or Jesse release I get the same error message.

TheAffair avatar Jul 14 '21 23:07 TheAffair

FYI i'd recommend removing the -v flag when launching on startup. It spits out a lot of lines that are useful when testing but aren't needed during automated runs.

barlaensdoonn avatar Jul 16 '21 16:07 barlaensdoonn

FYI i'd recommend removing the -v flag when launching on startup. It spits out a lot of lines that are useful when testing but aren't needed during automated runs.

Good call. Thank you!

TheAffair avatar Jul 17 '21 00:07 TheAffair

Hi, I am new here. I got a job that require me to in touch with Raspberry Pi. I guess It's Pi4.

I wonder how to create script for autoplay like that bash you did. I only know to input line command on nano rc.local.

Hello- I installed omxplayer-sync on B plus running Stretch. Master works fine. Slave returns the errors below on startup. Can you provide a solve or point me in the right direction please?

I am launching omxplayer-sync with a bash script on start up using this script: #!/bin/bash echo startup.sh : Launching omxplayer-sync: omxplayer-sync -muv hdmi /home/pi/Vides/DFS.mp4

Error: Traceback (most recent call last) File "/usr/bin/omxplayer-sync", line 394, in OMXplayerSync().run() File "/usr/bin/omxplayer-sync", line 182, in run self.play_file(self.playlist[self.playlist.index]) File "/usr/bin/omxplayer-sync", line 209, in play file preexec_fn=os.setsid, stdout=DEVNULL, stderr=DEVNULL, stdin=DEVNULL) File "/usr/lib/python3.7/subprocess.py", line 775, in_init_ restore_signals, start_new_session) File "/usr/lib/python3.7/subprocess.py", line 1522, in_execute_child raise child_exception_type(errnonum, err_msg, err_filename) FileNotFoundError: [Errno 2} No such file or directory: 'omxplayer': 'omxplayer'

fadetofadh avatar May 26 '23 06:05 fadetofadh