-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DJI Drone streaming issue when audio is enabled #928
Comments
What port are you using? I have a dji spark and it tried to use port 1935, never worked, changed to 8554 and has worked since |
Same here. Stream is working with DJI M210 and Mavic 2 Enterprise. |
Please (anyone) provide a network dump, that can be generated in this way:
|
I have mavic 2 Enterprise and I tested with its mobile SDK -> https://developer.dji.com/api-reference/android-api/Components/LiveStreamManager/DJILiveStreamManager.html , it works fine! simple-server receives the RTMP succesfully convert it to HLS or RTSP no problem! |
The problem is that the server receives an |
Himm that is your expertise @aler9 :) but based on what you are saying, it works for me because my audio is disabled ? |
Probably yes :) This is what normally happens when a publisher wants to publish something to the server, with RTSP or RTMP:
Some RTMP clients (like the DJI one) skip the second point, therefore we don't know what exactly they are streaming (video? audio? both?). I already edited the code in order to support streaming video without sending the track list, not audio, but evidently this is not enough. The current code is here: |
Here is a pcapng from a DJI Mavic won't work either audio is turned on or off Simple Server is running well with a Mavic 2 oder a Matrice 210 |
Same issue here with Mavic Air 2 (Firmware updated today) with default controller using the iOS DJI Fly App (App updated today) in Version 1.6.2 on an iPhone X with latest iOS 15.5 (updated today).
... endless repeating until stopping the broadcast in DJI Fly App. Another idea is that @ALL of us open a ticket at DJI support forum but what should we explain to them what they have to fix in detail!? I still open a ticket by DJI support (4262609) in my words and some snippets from this issue here. Update 28.05.: |
I've changed the track detection algorithm: now, when metadata is not provided by the client (like in case of DJI), the server analyzes 1 second of packets - if it founds video packets, it creates a video track, and if it founds audio packets, it creates an audio track. After 1 second, the analysis is stopped. Please try this nightly release and let me know if it works: |
Tried today with a DJI Mavic 3. The Drone was able to establish a connection and deliever a quick stream. However the server crashed afterwards: 10.20.100.161 is the drone 2022/06/08 11:52:44 INF [RTMP] [conn 10.20.100.161:55402] is publishing to path 'live', 2 tracks goroutine 184 [running]: |
Thanks for the report, please try this new release: |
Thanks for your great work! Now everything works fine! |
Thank you for the feedback, i don't own a DJI drone, so it would have been impossible to solve the issue. |
Dears. I've got feedback from DJI support that they was trying to fix that issue by iOS Fly-App version v1.6.6 but neither this DJI app nor the rtsp-simple-server v.1.19.1 will allow me to stream direct from the DJI Fly App via RTSP to the rtsp-simple-server. Nearby same log entries:
|
fixed in v0.19.2. |
Confirmed! @aler9 I may thank you A LOT! Now it is working (mostly) like expected. Now ... after a couple of minutes (four or five mins) of RTSP streaming to the rtsp-simple-server ... the DJI Fly App unecpectedly crashes on iPhone X (with latest iOS 15.5 and latest DJI Fly app version 1.6.6(645)). I will report this behavior to DJI and let this community know if any result is coming back ... |
After an DJI update the stream with a Mavic 3 is crashing again with the following error :-( 2022/08/03 18:41:00 INF [RTMP] [conn 10.20.100.161:43412] is publishing to path 'live', 1 track goroutine 836 [running]: @aler9 would it be possible to have a look at this? :-) |
@pbi1 please open another issue and provide relevant infos (which version are you using, and if the issue is still present on latest version). thanks. |
We try to stream video from DJI Go app running on iOS device connected to DJI Mavic 2s to a
rtsp-simple-server
running locally in the dockerThe text was updated successfully, but these errors were encountered: