steveseguin / raspberry_ninja

Publish or capture VDO.Ninja streams with Python (Raspberry Pi, Linux, Mac, Windows WSL)
https://raspberry.ninja
151 stars 30 forks source link

Update dont works with self hosted version #13

Closed edinsof closed 3 years ago

edinsof commented 3 years ago

Hi i change wss server to my sefl hosted version but the new update dont works

i get this error when open chrome and refresh url

You can view this stream at: https://vdo.ninja/?password=false&view=321 WSS CONNECTED Traceback (most recent call last): File "publish.py", line 521, in res = asyncio.get_event_loop().run_until_complete(c.loop()) File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete return future.result() File "publish.py", line 352, in loop if msg['streamID'] == streamid: NameError: name 'streamid' is not defined root@raspberrypi:~/raspberry_ninja#

wssmensajes

steveseguin commented 3 years ago

Thank you for that heads up. I haven't tested the self-hosted yet, but I'll get to that shortly.

There's been a list of things needing testing; just got the raspberry pi code fixed, for example.

edinsof commented 3 years ago

Yes I'm testing the update on my Raspberry Pi 3 and Logitech c920

rpi

Now --streamid only support numbers

if run : python3 publish.py --streamid 321a --rpi

--error: argument --streamid: invalid int value: '321a'

steveseguin commented 3 years ago

image

Working for me now. Thank you for reporting the issue.

python3 publish.py --streamid sdfasdfasdf --server wss://free3.piesocket.com/v3/1?api_key=OMXXXXXXXXXzNtfh6QKcDuspYK6RzvrZ5BhGyfGTsJkr3K0

steveseguin commented 3 years ago

I think things should work by default with a c920; I'm curious to know what frame rate you get at 1080p30 with a Rpi3 -- if it's low, you might need to lower the resolution to 960p or 720p instead.