Closed jurajs5 closed 2 years ago
i followed setup step by step and i got error:
pi@raspberry:~ $ unifi-cam-proxy --host 192.168.1.1 --cert client.pem --token fLP7xqrZ1F8UgdLvBHI7AGef7Fc4MQKl rtsp -s rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_175k.mov 2021-12-27 13:35:09 raspberry RTSPCam[24137] INFO /tmp/tmpuEfMLK 2021-12-27 13:35:09 raspberry RTSPCam[24137] INFO ffmpeg -y -re -rtsp_transport tcp -i "rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_175k.mov" -vf fps=1 -update 1 /tmp/tmpuEfMLK/screen.jpg 2021-12-27 13:35:09 raspberry Core[24137] INFO Creating ws connection to wss://192.168.1.1:7442/camera/1.0/ws?token=fLP7xqrZ1F8UgdLvBHI7AGef7Fc4MQKl Traceback (most recent call last): File "/home/pi/.local/bin/unifi-cam-proxy", line 10, in sys.exit(main()) File "/home/pi/.local/lib/python2.7/site-packages/unifi/main.py", line 58, in main c.run() File "/home/pi/.local/lib/python2.7/site-packages/unifi/core.py", line 745, in run ws = websocket.create_connection(uri, sslopt=ssl_opts, header=headers) File "/home/pi/.local/lib/python2.7/site-packages/websocket/_core.py", line 594, in create_connection websock.connect(url, **options) File "/home/pi/.local/lib/python2.7/site-packages/websocket/_core.py", line 250, in connect options.pop('socket', None)) File "/home/pi/.local/lib/python2.7/site-packages/websocket/_http.py", line 127, in connect sock = _ssl_socket(sock, options.sslopt, hostname) File "/home/pi/.local/lib/python2.7/site-packages/websocket/_http.py", line 264, in _ssl_socket sock = _wrap_sni_socket(sock, sslopt, hostname, check_hostname) File "/home/pi/.local/lib/python2.7/site-packages/websocket/_http.py", line 224, in _wrap_sni_socket sslopt.get('password', None), ssl.SSLError: [SSL] PEM lib (_ssl.c:2815) pi@raspberry:~ $
python3 --version gives me correct info: Python 3.7.3
ignore me - wrong config
i followed setup step by step and i got error:
pi@raspberry:~ $ unifi-cam-proxy --host 192.168.1.1 --cert client.pem --token fLP7xqrZ1F8UgdLvBHI7AGef7Fc4MQKl rtsp -s rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_175k.mov 2021-12-27 13:35:09 raspberry RTSPCam[24137] INFO /tmp/tmpuEfMLK 2021-12-27 13:35:09 raspberry RTSPCam[24137] INFO ffmpeg -y -re -rtsp_transport tcp -i "rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_175k.mov" -vf fps=1 -update 1 /tmp/tmpuEfMLK/screen.jpg 2021-12-27 13:35:09 raspberry Core[24137] INFO Creating ws connection to wss://192.168.1.1:7442/camera/1.0/ws?token=fLP7xqrZ1F8UgdLvBHI7AGef7Fc4MQKl Traceback (most recent call last): File "/home/pi/.local/bin/unifi-cam-proxy", line 10, in
sys.exit(main())
File "/home/pi/.local/lib/python2.7/site-packages/unifi/main.py", line 58, in main
c.run()
File "/home/pi/.local/lib/python2.7/site-packages/unifi/core.py", line 745, in run
ws = websocket.create_connection(uri, sslopt=ssl_opts, header=headers)
File "/home/pi/.local/lib/python2.7/site-packages/websocket/_core.py", line 594, in create_connection
websock.connect(url, **options)
File "/home/pi/.local/lib/python2.7/site-packages/websocket/_core.py", line 250, in connect
options.pop('socket', None))
File "/home/pi/.local/lib/python2.7/site-packages/websocket/_http.py", line 127, in connect
sock = _ssl_socket(sock, options.sslopt, hostname)
File "/home/pi/.local/lib/python2.7/site-packages/websocket/_http.py", line 264, in _ssl_socket
sock = _wrap_sni_socket(sock, sslopt, hostname, check_hostname)
File "/home/pi/.local/lib/python2.7/site-packages/websocket/_http.py", line 224, in _wrap_sni_socket
sslopt.get('password', None),
ssl.SSLError: [SSL] PEM lib (_ssl.c:2815)
pi@raspberry:~ $