重新流式传输实时视频源 [英] Re-stream live video feed

查看:54
本文介绍了重新流式传输实时视频源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有一台运行Ubuntu且已连接华硕Xtion Pro Live的设备.我想做的是捕获视频并将其 push 推送到服务器,然后让服务器重新流式传输,以便连接到我的服务器的其他客户端可以查看该流.该服务器正在运行Windows,并具有一个公共IP.

I currently have a device running Ubuntu with an Asus Xtion Pro Live attached. What I'm trying to do is to capture the video and push it to a server, and then have the server re-stream it so that other clients that connect to my server can view the stream. The server is running Windows and has a public ip.

我现在拥有的是,当设备与客户端位于同一网络上时,客户端可以直接连接到设备以查看流.例如,如果设备的 ip 为 192.168.1.101,我可以将设备设置为 192.168.1.101:8181/stream?topic=/camera/rgb/的视频流image_color,客户端只需在浏览器中输入上述 url 即可查看流.我要克服的是,如果我想在其他地方使用我的设备并使用3G/4G加密狗或其他wifi网络,则将无法直接连接到该设备.因此,我希望它将流推送到我的服务器,然后让客户端连接到服务器以通过Web应用程序查看流.该服务器当前使用Java,JavaScript,JSP,jQuery,MSSQL在Tomcat上运行webapp.我想在Webapp上添加功能,以允许查看来自Asus Xtion的视频流.

What I currently have now is, while the device is on the same network as a client, the client can connect directly to the device to view the stream. For example, if the device has an ip of 192.168.1.101, I can set the device to have the video stream at 192.168.1.101:8181/stream?topic=/camera/rgb/image_color, and the client can simply type the above url into a browser to view the stream. What I'm trying to overcome is, if I wanted to use my device elsewhere and use a 3G/4G dongle, or a different wifi network, I wouldn't be able to connect to it directly. So I want it to push the stream to my server, and then have clients connect to the server to view the stream through a webapp. The server currently runs a webapp on Tomcat, using Java, JavaScript, JSP, jQuery, MSSQL. I want to add on functionality to the webapp to allow viewing of the video stream from the Asus Xtion.

我大概知道我必须做三件事:

I roughly know that there will be three things I have to do:

  1. 将Asus Xtion摄像机供稿流式传输到服务器,
  2. 以某种方式在我的服务器上接收流,并且
  3. 让我的服务器重新流式传输视频.

但是我真的不知道如何去做.我知道,有了VLC,我可以视频流,然后将其重新流化.但是,这对我不起作用,因为我将无法从设备中拉出.它没有公共IP,因此无法访问.

But I don't really have any idea on how to go about doing this. I know that with VLC, I can pull a video stream, and then re-stream it. However this won't work for me because I won't be able to pull from the device; it doesn't have a public ip so it wouldn't be accessible.

我找不到适合我的情况的任何东西,但是我猜测这是可能的.例如,使用YouTube live,任何启用了此功能的帐户都可以将其网络摄像头供稿流式传输到YouTube,然后希望观看该流的观看者可以通过YouTube进行此操作.有人可以帮忙吗?

I can't find anything that applies to my situation, but I'm guessing that this is possible. For example, with YouTube live, any account with the feature enabled can stream their webcam feed to YouTube, then viewers who want the view the stream can just do so via YouTube. Can anyone help?

推荐答案

如果流服务器没有公共IP,您仍然可以通过在NAT路由器中设置端口转发使外部网络可以访问它.这样可以解决您的问题吗?

if the stream server doesnt have a public IP, still you can make it accessible to outside network, by setting up port-forwarding in the NAT router. Wont this solve your issue ?

这篇关于重新流式传输实时视频源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆