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.

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=t​rue)   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!)


raspberrypi



Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support