How to stream video to controller

已完成

评论

15 条评论

  • DJI Developer Support
    Dear Developer, Hello, thank you for contacting DJI. Regarding the black screen problem when you push the stream, first you can call the function DjiPayloadCamera_GetVideoStreamRemoteAddress to check the IP assigned by the drone, and when you start pushing the stream, ping this IP to see if the ping can succeed. You can pay attention to the ifconfig command to see if your network port is online. If the above is normal, you can save the stream you want to push as an H264 file, use the PSDK sample, replace the sample's default push file with your H264 file, and see if it can be displayed normally. Note that in terms of link, you can choose DJI-H264 first. (Related function: DjiPayloadCamera_SetVideoStreamType) Thank you for your support of DJI products. Best Regards, DJI Dajiang innovation SDK technical support
    0
    评论操作 固定链接
  • Josh

    Hello,

    DjiPayloadCamera_GetVideoStreamRemoteAddress gives an IP address and port of 192.168.112.1 and 23003. Here is the result of the ping:

    so it looks like it has no problem.

    In my main.cpp file, I am trying to stream one of the DJI .mp4 files provided with the PSDK sample code. The relevant code is here:

    The controller only shows a black screen from the PSDK application video stream:

    I have verified that the DjiPayloadCamera_SendVideoStream call is running without error in the UserCameraMedia_SendVideoTask, and the video file is correctly located.

    Is it likely that this is still a network issue? Or do you have any other input on how to fix it?

    0
    评论操作 固定链接
  • DJI Developer Support
    Dear Developer, Hello, thank you for contacting DJI. Is it convenient for you to save the video data you want to stream into an H264 file? Let us replace and verify your video here. Thank you for your support of DJI products. Best Regards, DJI Dajiang innovation SDK technical support
    0
    评论操作 固定链接
  • Josh

    Hi, I am trying to use Payload-SDK/samples/sample_c/module_sample/camera_emu/media_file/PSDK_0005.h264 that comes with the PSDK sample code. It is too big to upload it here.

    0
    评论操作 固定链接
  • DJI Developer Support
    Hello, please upload it here: https://pan-sec.djicorp.com/s/FpoMSwcFMiM7snj
    0
    评论操作 固定链接
  • Josh

    I have uploaded the two files that I have tried.

    0
    评论操作 固定链接
  • DJI Developer Support
    Dear Developer, Hello, thank you for contacting DJI. Thank you for the videos you provided. We checked them. One of them is the video pushed by the PSDK sample code by default, and the other is an MP4 file. Can you successfully see the picture by running the sample directly? In addition, you can check the firmware version number of SkyportV2 (M350 requires version 1.3.5 or above to support push streaming) Thank you for your support of DJI products. Best Regards, DJI Dajiang innovation SDK technical support
    0
    评论操作 固定链接
  • Josh

    Hi,

    Via the DJI Assistant, I have checked that my SkyPort V2 has firmware V09.01.0102 released 2024-01-25. But I think this may be an error because the firmware number is not in the same form as what you have suggested.

    I have tried to upgrade the firmware, but I see from (https://sdk-forum.dji.net/hc/en-us/community/posts/19076588970521-M350RTK%E6%97%A0%E6%B3%95%E8%8E%B7%E5%8F%96%E8%B4%9F%E8%BD%BD%E7%9B%B8%E6%9C%BA%E7%94%BB%E9%9D%A2 ) that it may need to be mounted on a Matrice 300 for an initial upgrade first. Is this correct? I do not have a Matrice 300 to use.

    0
    评论操作 固定链接
  • DJI Developer Support
    Dear Developer, Hello, thank you for contacting DJI. Thank you for your patience. Could you please check the version number of this package for us in the firmware upgrade section of the DA2 software? Let us confirm it for you. In addition, SkysportV2 suites with versions lower than 1.3.5 need to be upgraded with the M300 model before they can be adapted to the M350 and subsequent upgrades. If you do not have an M300 model, we recommend that you contact your local agent or after-sales team for You upgrade. Thank you for your support of DJI products. Best Regards, DJI Dajiang innovation SDK technical support
    0
    评论操作 固定链接
  • Josh

    I have gone to the local dealer here, who tried to upgrade the firmware using the DJI Assistant. The upgrade failed and now my SkyPort is bricked, unresponsive, and does not even correctly appear in the DJI Assistant Software anymore.

    0
    评论操作 固定链接
  • DJI Developer Support
    Dear Josh, Sorry for the inconvenience. What is your region and your agent? We may need to put you in touch with another team to assist you with this issue.
    0
    评论操作 固定链接
  • Josh

    I am in Reykjavik Iceland, was having the upgrade done at the Reykjavik DJI store. They were very accommodating and seem to have done everything by the book. The firmware update process just failed. It is just unfortunate that because of this I cannot proceed with my development.

    Some more info: the SkyPort appeared to have a firmware version V00.00.00 when it showed up in the DJI Assistant software via the Matrice 300 at the store. When trying to upgrade the firmware, the download phase would be very short, as if it was being skipped, and then it would hang during the transmitting phase at 100%, and finally it would show as having failed. When I tried to inspect it via my Matrice 350, it simply did not show up in the DJI Assistant software.

    Do you have any way of fixing this without sending the product for repair (for quickness)? The DJI store here has offered to send it for repair either for a fee that costs roughly the same as the price of the product (Payload SDK Development Kit 2.0), or has offered to include it in a future enterprise shipment (but they do not have a date when that will happen). 

    0
    评论操作 固定链接
  • DJI Developer Support
    Dear Josh, Greetings. We appreciate your contact with DJI - Da-Jiang Innovations. We apologize for any inconvenience caused. Could you please try using the DA2 software version provided in the link below to upgrade the M300 model again? We have recently discovered a high probability of firmware upgrade failure with the latest version of the DA2 software, and we suspect that this may be related to the issue you are experiencing: https://pan-sec.djicorp.com/s/oBrkk3C4Lqy4om7 Thank you for your support of DJI products! We wish you all the best! Best Regards, DJI - Da-Jiang Innovations SDK Technical Support
    0
    评论操作 固定链接
  • Josh

    Thank you for your support. I have re-done the firmware upgrade using the DJI Assistant 2 Enterprise Edition V2.1.9 which you have provided, via a Matrice 300 at the DJI store. This time it worked without problems and updated directly to version 1.3.5. I did not have to do an additional update via the Matrice 350, and indeed none was available. After trying it again today, the video transmission sample immediately worked.

    0
    评论操作 固定链接
  • DJI Developer Support
    Dear Josh, We are pleased that this could resolve your issue. Regarding the failed firmware upgrade, we are currently investigating the potential impact of the DJI Assistant 2 software and will address it as soon as possible.
    0
    评论操作 固定链接

请先登录再写评论。