Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GB28181: 支持GB28181 RTP Proxy #2161 #22

Open
winlinvip opened this issue Jan 5, 2022 · 0 comments
Open

GB28181: 支持GB28181 RTP Proxy #2161 #22

winlinvip opened this issue Jan 5, 2022 · 0 comments
Assignees

Comments

@winlinvip
Copy link
Member

我们有个应用场景,就设备推RTP流到流媒体服务器。
用ffmpeg的命令:
ffmpeg -fflags nobuffer -rtsp_transport tcp -re -i rtsp://192.168.1.64/Streaming/Channels/1 -vcodec h264 -acodec aac -f rtp rtp://192.168.20.177:10001

或者
ffmpeg -re -i "e:\peiqi.mp4" -vcodec h264 -acodec aac -f rtp_mpegts rtp://192.168.20.177:10001

希望SRS能支持这个模式。

我看到ZLMediaKit有这个功能。
ZLM有2个HTTP接口,动态创建和关闭RTP服务端口, 也可以使用默认端口,通过SSRC来demux.

/index/api/openRtpServer
功能:创建GB28181 RTP接收端口,如果该端口接收数据超时,则会自动被回收(不用调用closeRtpServer接口)
例子:http://127.0.0.1/index/api/openRtpServer?port=10001&enable_tcp=1&stream_id=test

/index/api/closeRtpServer
功能:关闭GB28181 RTP接收端口
例子:http://127.0.0.1/index/api/closeRtpServer?stream_id=test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants