Änderungen hinzugefügt. Sensoren waren kaputt, daher mussten wir Workarounds basteln.
This commit is contained in:
@@ -8,6 +8,7 @@ if __name__ == "__main__":
|
||||
parser.add_argument('-s', type=str, required=True, help='IPv4 address of the servers')
|
||||
parser.add_argument('--tcp', action='store_true', help='Use TCP.')
|
||||
parser.add_argument('--udp', action='store_true', help='Use UDP.')
|
||||
parser.add_argument('--raspivid', defalt='-t 0 -fps 20 -w 1280 -h 720 -b 2000000 -o', help='Raspivid arguments.')
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.udp and args.tcp:
|
||||
@@ -40,7 +41,7 @@ if __name__ == "__main__":
|
||||
sock.connect((IP,PORT))
|
||||
|
||||
# raspivid starten
|
||||
cmd_raspivid = 'raspivid -t 0 -fps 20 -w 1280 -h 720 -b 2000000 -o -'
|
||||
cmd_raspivid = 'raspivid ' + args.raspivid + ' -'
|
||||
rasprocess = subprocess.Popen(cmd_raspivid,shell=True,stdout=subprocess.PIPE)
|
||||
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user