[GH-ISSUE #796] 能增加RTSP的视屏码流代理吗? #620

Closed
opened 2026-05-05 12:24:10 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @buyingqi on GitHub (May 28, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/796

想把内网的是摄像头视屏码流代理出来,能够实现吗

Originally created by @buyingqi on GitHub (May 28, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/796 想把内网的是摄像头视屏码流代理出来,能够实现吗
Author
Owner

@fatedier commented on GitHub (May 28, 2018):

支持的协议文档有说明,不会考虑具体的应用层协议,具体能否实现自行搜索下。

<!-- gh-comment-id:392469191 --> @fatedier commented on GitHub (May 28, 2018): 支持的协议文档有说明,不会考虑具体的应用层协议,具体能否实现自行搜索下。
Author
Owner

@DoSeek commented on GitHub (May 12, 2020):

亲测使用frp可以实现海康网络摄像头(IPC)的视频代理。因为海康摄像头支持rtsp协议(端口号554),而rtsp协议基于TCP协议。

所以在frpc.ini中增加海康摄像头的配置即可。如下:
`[common]
server_port = 7000
server_addr = yourdomain.cn
;或者是IP
;server_addr = 10.10.10.25

[ipc01-rtsp]
type = tcp
local_ip = 192.168.1.12
local_port = 554
remote_port = 5540 ;端口随意,多个IPC的端口必须不一样,否则端口冲突

[ipc02-rtsp]
type = tcp
local_ip = 192.168.1.13
local_port = 554
remote_port = 5541 ;端口随意,多个IPC的端口必须不一样,否则端口冲突
`
frps.ini 无需特殊配置:

`
[common]
;允许访问的ip
bind_addr = 0.0.0.0

;服务端和客户端链接的端口
bind_port = 7000
`

VLC打开网络串流:
如果服务器配置的是域名
rtsp://ipc用户名:ipc密码@yourdomain.cn:5540/Streaming/Channels/101
rtsp://ipc用户名:ipc密码@yourdomain.cn:5541/Streaming/Channels/101

如果服务器配置的是IP
rtsp://ipc用户名:ipc密码@10.10.10.25:5540/Streaming/Channels/101
rtsp://ipc用户名:ipc密码@10.10.10.25:5541/Streaming/Channels/101

<!-- gh-comment-id:627219315 --> @DoSeek commented on GitHub (May 12, 2020): 亲测使用frp可以实现海康网络摄像头(IPC)的视频代理。因为海康摄像头支持rtsp协议(端口号554),而rtsp协议基于TCP协议。 所以在frpc.ini中增加海康摄像头的配置即可。如下: `[common] server_port = 7000 server_addr = yourdomain.cn ;或者是IP ;server_addr = 10.10.10.25 [ipc01-rtsp] type = tcp local_ip = 192.168.1.12 local_port = 554 remote_port = 5540 ;端口随意,多个IPC的端口必须不一样,否则端口冲突 [ipc02-rtsp] type = tcp local_ip = 192.168.1.13 local_port = 554 remote_port = 5541 ;端口随意,多个IPC的端口必须不一样,否则端口冲突 ` frps.ini 无需特殊配置: ` [common] ;允许访问的ip bind_addr = 0.0.0.0 ;服务端和客户端链接的端口 bind_port = 7000 ` VLC打开网络串流: 如果服务器配置的是域名 rtsp://ipc用户名:ipc密码@yourdomain.cn:5540/Streaming/Channels/101 rtsp://ipc用户名:ipc密码@yourdomain.cn:5541/Streaming/Channels/101 如果服务器配置的是IP rtsp://ipc用户名:ipc密码@10.10.10.25:5540/Streaming/Channels/101 rtsp://ipc用户名:ipc密码@10.10.10.25:5541/Streaming/Channels/101
Author
Owner

@CoderChen01 commented on GitHub (Apr 2, 2021):

学到了

<!-- gh-comment-id:812662455 --> @CoderChen01 commented on GitHub (Apr 2, 2021): 学到了
Author
Owner

@chaymankala commented on GitHub (Jun 3, 2024):

How to use one port and different subdomains to stream multiple cameras?

<!-- gh-comment-id:2144343805 --> @chaymankala commented on GitHub (Jun 3, 2024): How to use one port and different subdomains to stream multiple cameras?
Author
Owner

@Daixingdeng commented on GitHub (Jul 5, 2024):

亲测使用frp可以实现海康网络摄像头(IPC)的视频代理。因为海康摄像头支持rtsp协议(端口号554),而rtsp协议基于TCP协议。

所以在frpc.ini中增加海康摄像头的配置即可。如下: `[common] server_port = 7000 server_addr = yourdomain.cn ;或者是IP ;server_addr = 10.10.10.25

[ipc01-rtsp] type = tcp local_ip = 192.168.1.12 local_port = 554 remote_port = 5540 ;端口随意,多个IPC的端口必须不一样,否则端口冲突

[ipc02-rtsp] type = tcp local_ip = 192.168.1.13 local_port = 554 remote_port = 5541 ;端口随意,多个IPC的端口必须不一样,否则端口冲突 ` frps.ini 无需特殊配置:

` [common] ;允许访问的ip bind_addr = 0.0.0.0

;服务端和客户端链接的端口 bind_port = 7000 `

VLC打开网络串流: 如果服务器配置的是域名 rtsp://ipc用户名:ipc密码@yourdomain.cn:5540/Streaming/Channels/101 rtsp://ipc用户名:ipc密码@yourdomain.cn:5541/Streaming/Channels/101

如果服务器配置的是IP rtsp://ipc用户名:ipc密码@10.10.10.25:5540/Streaming/Channels/101 rtsp://ipc用户名:ipc密码@10.10.10.25:5541/Streaming/Channels/101

服务器带宽有要求吗 我这边用vlc播放延时30S左右。。。 还有花屏现象

<!-- gh-comment-id:2210723028 --> @Daixingdeng commented on GitHub (Jul 5, 2024): > 亲测使用frp可以实现海康网络摄像头(IPC)的视频代理。因为海康摄像头支持rtsp协议(端口号554),而rtsp协议基于TCP协议。 > > 所以在frpc.ini中增加海康摄像头的配置即可。如下: `[common] server_port = 7000 server_addr = yourdomain.cn ;或者是IP ;server_addr = 10.10.10.25 > > [ipc01-rtsp] type = tcp local_ip = 192.168.1.12 local_port = 554 remote_port = 5540 ;端口随意,多个IPC的端口必须不一样,否则端口冲突 > > [ipc02-rtsp] type = tcp local_ip = 192.168.1.13 local_port = 554 remote_port = 5541 ;端口随意,多个IPC的端口必须不一样,否则端口冲突 ` frps.ini 无需特殊配置: > > ` [common] ;允许访问的ip bind_addr = 0.0.0.0 > > ;服务端和客户端链接的端口 bind_port = 7000 ` > > VLC打开网络串流: 如果服务器配置的是域名 rtsp://ipc用户名:ipc密码@yourdomain.cn:5540/Streaming/Channels/101 rtsp://ipc用户名:ipc密码@yourdomain.cn:5541/Streaming/Channels/101 > > 如果服务器配置的是IP rtsp://ipc用户名:ipc密码@10.10.10.25:5540/Streaming/Channels/101 rtsp://ipc用户名:ipc密码@10.10.10.25:5541/Streaming/Channels/101 服务器带宽有要求吗 我这边用vlc播放延时30S左右。。。 还有花屏现象
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#620
No description provided.