Mavic Air 1 RTMP stream

已完成

评论

9 条评论

  • DJI Developer Support
    Is it same result when you use MSDK sample to stream the video? -3 means failure to obtain sps/pps. So you have used DJICodecMangaer to decode the video?
    0
    评论操作 固定链接
  • Rob Whall

    I am not using DJICodecManager to decode the video. I send the video to my rtmp address and use VLC to try to watch it. 

    I am using the FPVDrone project and have just modified it by adding a button to start the video stream. The FPVDrone project doesn't have streaming already coded in it. Is there another project that does have RTMP streaming?

     

    Thank you,

     

    Rob

    0
    评论操作 固定链接
  • DJI Developer Support
    Dear Client Thank you for contacting DJI. DJICodecManager.sendDataToDecoder will add the sps/pps to the video. You can read What is the theory of LiveStreamManager? to understand the theory of LiveStreamManager. We have the part of LiveStreamManager in MSDK sample.The link is here. Mobile-SDK-Android/LiveStreamView.java at master · dji-sdk/Mobile-SDK-Android (github.com) Kindly Regards, DJI Developer Support
    0
    评论操作 固定链接
  • Rob Whall

    I will read those suggestions articles and try those suggestions. Thank you!

    0
    评论操作 固定链接
  • Rob Whall

    I have made a bit of progress in that I now get a 254 instead of a -3. Is there a log level I can set to get a bit more of an explanation as to why I might be getting a 254? Someplace I can look for a stack dump, for example?

    0
    评论操作 固定链接
  • Rob Whall

    FYI I have used an outside app (larix studio) to test my RTMP server set up and it is working. All of my firewall and nat/ip passthrough settings are working. I just can't broadcast the RTMP stream from my app when it is connected to the Mavic via wifi and connected to the cellular network (LTE) with 2 bars. 

    0
    评论操作 固定链接
  • DJI Developer Support
    245 means that there was a problem during the initialisation of the LiveStreamManager.You can find out the meaning of some common error codes in this article.What does the startStream() return mean in live stream feature? Internet is needed for live streaming, but when you manipulate the drone through WIFI, can the mobile device be connected to the internet through LTE? You can try to communicate with the drone by using the remote control and then use LTE for live streaming.
    0
    评论操作 固定链接
  • Rob Whall

    Ok, I did what you suggested and it worked. I connected my phone to the remote control and the phone connected to my server via wifi, so I can send the rtmp stream from the drone, though my phone, to the RTMP server. I didn't think I would need the controller since my phone can connect to the drone directly via the drone's wifi hotspot, but that would then take all internet requests. So I switched the drone back into controller mode, used the USB cable to attach the phone to the drone, and the phone used it's wifi radio to connect to my home wifi router. Thank you.

    0
    评论操作 固定链接
  • DJI Developer Support
    I'm glad I could help you.
    0
    评论操作 固定链接

请先登录再写评论。