简体   繁体   English

如何在没有任何网络的情况下将 stream RTMP 从 android 设备直接发送到现场的 windows pc

[英]How to stream RTMP direct from an android divice to a windows pc in the fild without any Network

i would like to stream Dron video from the controler (Dji mavic air 2 with a RC-N1 controler) via RTMP direktly from the controler/my Phone to my PC wihl i am in the fields without having any inte.net conection or an extra Network.我想通过 RTMP 从控制器(带有 RC-N1 控制器的 Dji mavic air 2)直接从控制器/我的手机到我的 PC 的 stream Dron 视频,我在田野里没有任何 inte.net 连接或额外的网络。 Is that some how possible?那怎么可能?

First, you still need a.network.首先,你还需要一个.network。 You can create a hotspot using a computer (laptop) or a device that connects to the RC-controller (phone, tablet).您可以使用计算机(笔记本电脑)或连接到 RC 控制器的设备(手机、平板电脑)创建热点。 Secondly, you need an RTMP server that will be located in this.network.其次,您需要一个位于 this.network 中的 RTMP 服务器。 As a quick example, I can recommend MonaServer2 , it is easy to install and run.作为一个简单的例子,我可以推荐MonaServer2 ,它很容易安装和运行。 Thirdly, you need someone who will "listen" to the server when the stream comes to it.第三,您需要有人在 stream 到达时“监听”服务器。 For example, you can use a VLC player.例如,您可以使用 VLC 播放器。 Launch it and specify RTMP stream as a source.启动它并指定 RTMP stream 作为源。

So, you start the RTMP-server, let's say it is located at 192.168.0.1:1935.因此,您启动 RTMP 服务器,假设它位于 192.168.0.1:1935。 On your device connected to the RC-controller, using the standard DJI-Fly application or your own app developed using Mobile SDK, select the option to start streaming, specify the address: rtmp://192.168.0.1:1935/live.在您连接遥控器的设备上,使用标准的 DJI-Fly 应用程序或您自己开发的应用程序,使用 Mobile SDK、select 选项开始推流,指定地址:rtmp://192.168.0.1:1935/live。 Next, launch VLC-Player, select File->Open Network Stream and type rtmp://192.168.0.1:1935/live in URL field.接下来,启动 VLC-Player,select File->Open Network Stream 并在 URL 字段中输入 rtmp://192.168.0.1:1935/live。 Now you will be able to watch live-stream in your VLC window.现在您可以在您的 VLC window 中观看直播。

This is the fastest and easiest way I can recommend.这是我可以推荐的最快和最简单的方法。

Also you can take raw h264 frames from camera, send them to decoder and do whatever you want.你也可以从相机中获取原始的 h264 帧,将它们发送到解码器并做任何你想做的事情。 If you need some more info about it feel free to ask.如果您需要有关它的更多信息,请随时询问。 Hope it helps!希望能帮助到你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM