Hi
Bekommen beim OMXPLAYER wenn ich --win mache im Skript broken pipe Problem. Lasse ich die Variable wi weg kommt das nicht. Es liegt vll an den " in der Variable? Habe das mit \" und ''' probiert, änderte aber nichts.
Kann jmd helfen?
Hier der Ausschnitt:
Code
# 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')
except KeyboardInterrupt:
process.stdin.write('q')
Alles anzeigen
Wie gesagt, ohne die Variable wi geht alles wunderbar.
danke
EDIT// Hier ist die Fehlermeldung:
File <a.py>, line 40 in <module> [Line 40 ist die erste process.stdin.write('p')]
Erno 321: Broken Pipe