ossrs / srs

SRS is a simple, high-efficiency, real-time media server supporting RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
25.19k stars 5.32k forks source link

ajhua camera can not connect to srs #4119

Open shanxixiaohuozi opened 1 month ago

shanxixiaohuozi commented 1 month ago

!!! Before submitting a new bug report, please ensure you have searched for any existing bugs and utilized the Ask AI feature at https://ossrs.io or https://ossrs.net (for users in China). Duplicate issues or questions that are overly simple or already addressed in the documentation will be removed without any response.

Describe the bug ajhua camera can not connect to srs

Version SRS/6.0.134(Hang), MIT -- Windows Platform

To Reproduce Steps to reproduce the behavior:

  1. DownLoad and Install SRS-Windows-x86_64-6.0-d6-setup.exe
  2. Modify configuration file /conf/push.gb28181.conf

listen 1935; max_connections 1000; daemon off; srs_log_tank console;

stream_caster { enabled on; caster gb28181; output rtmp://127.0.0.1/live/[stream]; listen 9000;

Deprecated config, moved to sip.candidate, see gb28181.conf

# @see https://ossrs.net/lts/zh-cn/docs/v5/doc/gb28181#config-candidate
host 192.168.2.47;
sip {
    enabled on;
    listen 5060;
    serial 61030000002001000001;
    realm  6103000000;
    ack_timeout 30;
    keepalive_timeout 120;
    #print_sip_message on;
    auto_play on;
    candidate 192.168.2.47;
}

}

http_server { enabled on; listen 8080; dir ./objs/nginx/html; }

http_api { enabled on; listen 1985; } stats { network 0; } rtc_server { enabled on; listen 8000; # UDP port

@see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate

candidate 192.168.2.47;

}

vhost defaultVhost { rtc { enabled on;

@see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc

    rtmp_to_rtc on;
    # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
    rtc_to_rtmp on;
}
http_remux {
    enabled on;
    mount [vhost]/[app]/[stream].flv;
}
hls {
    enabled on;
}

}



3. Start SRS Service
![image](https://github.com/user-attachments/assets/4e435a7a-d441-431c-856a-2e87e8984be7)

4. Configure camera
![image](https://github.com/user-attachments/assets/edba9688-9df9-4e73-b37b-3f1c4333a68a)
5.View Results
![image](https://github.com/user-attachments/assets/e9e3e4e3-8bf9-40e0-8883-4a301567829c)
![image](https://github.com/user-attachments/assets/83dc5267-987f-47da-aac0-07f37ff8a497)

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.
yushimeng commented 1 month ago

The server currently only supports SIP over TCP, and it appears that your device does not support this.

TRANS_BY_GPT4