roleoroleo / sonoff-hack

Custom firmware for Sonoff GK-200MP2B camera
GNU General Public License v3.0
200 stars 45 forks source link

rtsp doesn't works #79

Closed Dim3333 closed 1 month ago

Dim3333 commented 2 years ago

Hi,

Firmware Version | 0.1.1 Base Version | V0525.1.276build20201103 Model | GK-200MP2C

Username and password are empty. I use this link: rtsp://hack:hack@MYIP/av_stream/ch0

But connection refused with VLC (snapshot is ok). I don't know why ?

sccsltd commented 2 years ago

Is your port set to 554 for rtsp? One of mine was set to something different set it back and it was fine.

Dim3333 commented 2 years ago

Thanks @sccsltd I changed the rtsp port to 254 and it's works.

sccsltd commented 2 years ago

http://CAM-IP/index.html?page=configurations

on that page you can check the ports or change them if you want to 👍😊

Dim3333 commented 2 years ago

Yes, i done that.

neurocis commented 2 years ago

I am having the same issue but do not even see a listener on 554:

[root@GK]# netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:1000            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:http            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:7101            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:7103            0.0.0.0:*               LISTEN
tcp        0     64 172.1.1.129:ssh         172.1.1.141:57599       ESTABLISHED

I have tried changing ports for RTSP w/full resets to no avail. Stumped at this point. Thanks.

UPDATE / EDIT:

So if I change to port 254 or leave at 554 as OP did I do not see a port listening. If I bump up to port 5554 I see listener and am now able to connect/stream. Makes me wonder - Is the RSTP daemon in userspace and cannot bind to ports below 1024?

My versions are also same as OP:

Firmware Version | 0.1.1
-- | --
Base Version | V0525.1.276build20201103
Model | GK-200MP2C
github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.