dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
972 stars 579 forks source link

Sending GPS position with RTMP stream #1169

Open ghost opened 1 year ago

ghost commented 1 year ago

Hi,

I'm currently using the mobile sdk demo and I would like to know if it's doable to send the GPS info for each frame of a RTMP stream.

I'm using this stream to detect elements with an IA and I would like to be able to places them on a map.

dji-dev commented 1 year ago

Agent comment from yating.liao in Zendesk ticket #69379:

The live stream itself does not contain GPS information.I'm not sure if it is possible to store the location information in yourself.

°°°

ghost commented 1 year ago

Yeah I think it isn't possible right now.

So I'm trying to get the GPS info of a recorded video, some forums said it's doable.

dji-dev commented 1 year ago

Agent comment from yating.liao in Zendesk ticket #69379:

The recorded video itself also has no GPS information, but this information is stored in the video captions. Once the video captioning function is switched on, the caption file is generated together with the video file and corresponds to the video. The enable interface is setVideoCaptionEnabled. Related article:Why the video does not have video caption after set setVideoCaptionEnabled?

°°°

pktiuk commented 1 year ago

So I'm trying to get the GPS info of a recorded video, some forums said it's doable.

@Kanhoto
Have you figured it out?
Are there any metadata hidden in RTMP/RTSP streams when we stream it using DJI pilot app, or do we have to do it the other way?

ghost commented 1 year ago

Hey,

Actually, I found the GPS position in the subtitle of the video using DJI Go4, but not in the stream And I'm trying to use them on python to draw them on a map

Does it help you ?

pktiuk commented 1 year ago

Not really :/
I am looking for easy way of obtaining video and telemetry in real time.
But thanks for your answer anyway.

I will look for other Drone apps compatible with DJI, maybe they can stream telemetry. In the worst case I will try to use Cloud API.

ghost commented 1 year ago

Well, for that, I'm actually thinking of building my own with this tutorial https://all3dp.com/2/raspbery-pi-drone-simply-explained/

I'm not sure if it will be easier, but a raspberry pi seems easier to tweak than a finished DJI product

pktiuk commented 1 year ago

I think finding and tweaking already developed Open Source project may be easier. I think RosettaDrone looks promising: https://github.com/The1only/rosettadrone

miroshniktyt commented 1 year ago

@Kanhoto are there any updates or solutions on it?

JakobLeh commented 2 months ago

I am also trying to solve the livestream and metadata problem. My current approach is to retrieve telemetry data through the Cloud-API and then sync it to the RTMP-Stream. The metadata comes with a timestamp. But how can I connect the information now with the RTMP-Stream? I cannot find a time information in the RTMP-Stream...