Code: Select all
#!/usr/bin/python3
#!/usr/bin/env python3
import sys
from subprocess import call
from select import select
from subprocess import Popen
import os
import time
my_process = 'raspivid -t 0 -k -n -b 13500000 -o - | mbuffer -m 20M -P 40 | omxplayer --crop "0, 0, 1822, 954" /opt/vc/src/hello_pi/hello_video/hello_video.bin /dev/stdin'
try:
while True:
call([my_process], shell=True)
except KeyboardInterrupt:
exit()
"in @ 610 KiB/s, out @ 0.0 KiB/s, 0.0 KiB total, buffer 3% fullVcodec id unknown: 18800
have a nice day
in @ 0.0 KiB/s, out @ 0.0 KiB/s, 0.0 KiB total, buffer 100% fullmmal: Aborting program
Failed to write buffer data (34904 from 51154)- aborting"
The latter part is after stopping the program with Ctrl+C. Any recommendations?