Baxendall
Posts: 1
Joined: Sun Jan 06, 2013 6:00 pm

Python pipe to OMXPLAYER

Sun Jan 06, 2013 6:10 pm

Hello,

I'm trying to write a python script to run at login, where it gets omxplayer to play a video file on loop.

So far, I've got the script to open the file in omxplayer & play it, but omxplayer does not respond to any commands whatsoever. When I run omxplayer from lxterminal, all is well, I can pause, play, quit the video. But from the python script, it starts playing but there's no control over it. I have to restart my Raspberry Pi to quit the video. I think I'm not piping commands to omxplayer from the python script properly. Anyone got the right syntax to put in the python script to pipe commands to omxplayer?
Thank you!

Return to “Python”