Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

launch omxplayer-sync on startup #114

Open
TheAffair opened this issue Jul 13, 2021 · 7 comments
Open

launch omxplayer-sync on startup #114

TheAffair opened this issue Jul 13, 2021 · 7 comments

Comments

@TheAffair
Copy link

TheAffair commented Jul 13, 2021

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'

@himijendrix24
Copy link

Wrong video file pathname?

@exidyboy
Copy link

exidyboy commented Jul 14, 2021 via email

@TheAffair
Copy link
Author

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
Copy link
Author

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.

@barlaensdoonn
Copy link

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.

@TheAffair
Copy link
Author

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!

@fadetofadh
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants