Controlling OXMPlayer from Python Script - Raspberry Pi Forums
hello,
planning write python script plays video1.mp4 when pir detects no motion , plays video2.mp4 when detect motion.
have found script shows me how detect motion using pir here:
http://www.raspberrypi-spy.co.uk/2013/0 ... pi-part-1/
have found out how o play mp4 video here:
http://www.raspberrypi-spy.co.uk/2013/0 ... mand-line/
have found command line key bindings here:
http://omxplayer.sconde.net/
before go out , buy pi , pir wanted ask advice please?
in python script able send command lines key strokes oxmplayer?
idea when pir detect/undetects motion want send key stroke "o" represents "next chapter".
being python newbie. possible please?
many thanks
trev
planning write python script plays video1.mp4 when pir detects no motion , plays video2.mp4 when detect motion.
have found script shows me how detect motion using pir here:
http://www.raspberrypi-spy.co.uk/2013/0 ... pi-part-1/
have found out how o play mp4 video here:
http://www.raspberrypi-spy.co.uk/2013/0 ... mand-line/
have found command line key bindings here:
http://omxplayer.sconde.net/
before go out , buy pi , pir wanted ask advice please?
in python script able send command lines key strokes oxmplayer?
idea when pir detect/undetects motion want send key stroke "o" represents "next chapter".
being python newbie. possible please?
many thanks
trev
yes should able of this. pi presents (see sig) similar if want ready built solution written in python. otherwise people including myself in pp_omxdriver use pyomxplayer interface omxplayer , send run time commands python.
https://github.com/jbaiter/pyomxplayer note out of date format of reports omxplayer has changed
https://github.com/jbaiter/pyomxplayer note out of date format of reports omxplayer has changed
raspberrypi
Comments
Post a Comment