How to stream video to controller
已完成Hi,
I have a question on how to stream video from a drone to its controller and view it on the controller.
I have a Matrice 350 and a PSDK application connected via the topside SkyPort (PSDK Port). I have the application connected to the drone with a UART and the eth0 network connection. When it starts, it receives an IP address of 192.168.140.2 which is pingable.
I start the video stream with `DjiTest_CameraEmuBaseStartService()`, which creates a black window on the controller that I can view, but it never populates with video data. I am sending AVPackets from a .h264 stream with the `DjiPayloadCamera_SendVideoStream()` function. Is this correct?
Do you have any suggestions for how to trouble shoot it?
-
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 -
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?
-
Hello, please upload it here: https://pan-sec.djicorp.com/s/FpoMSwcFMiM7snj -
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 -
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.
-
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 -
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).
-
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 -
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.
请先登录再写评论。
评论
16 条评论