Broken pipe because of string? - Raspberry Pi Forums
hi there,
i'm total beginner. made script play , pause video , unpause triggered pir sensor. works fine output not correct wanted change windows settings of omxplayer.
added variable "wi" it's not working anymore. without is.
error says:
file <a.py>, line 40 in <module>
errno 321: broken pipe
line 40 is: process.stdin.write('p')
thought because of " " in wi changing did not help.
ideas? thank you.
i'm total beginner. made script play , pause video , unpause triggered pir sensor. works fine output not correct wanted change windows settings of omxplayer.
added variable "wi" it's not working anymore. without is.
code: select all
# film movie_path = '/home/pi/a.mp4' noosd = '--no-osd' b = '-b' wi = '--win "0 0 1920 1080" ' # loopen bis sensor frei while gpio.input(gpio_pir)==1: current_state = 0 print "pir sensor bereit!" process=subprocess.popen(['omxplayer',noosd,b,wi,movie_path],stdin=subprocess.pipe,stdout=subprocess.pipe,stderr=subprocess.pipe,close_fds=true) time.sleep(4.5) process.stdin.write('p')
error says:
file <a.py>, line 40 in <module>
errno 321: broken pipe
line 40 is: process.stdin.write('p')
thought because of " " in wi changing did not help.
ideas? thank you.
try removing stdout , stderr.
use "--win" , "0,0,1920108" separate arguments (needs latest omxplayer!)
use "--win" , "0,0,1920108" separate arguments (needs latest omxplayer!)
raspberrypi
Comments
Post a Comment