Mobile-SDK-Android icon indicating copy to clipboard operation
Mobile-SDK-Android copied to clipboard

Sending GPS position with RTMP stream

Open ghost opened this issue 3 years ago • 10 comments

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.

ghost avatar Aug 17 '22 08:08 ghost

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.

°°°

dji-dev avatar Aug 17 '22 11:08 dji-dev

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.

ghost avatar Aug 17 '22 11:08 ghost

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?

°°°

dji-dev avatar Aug 18 '22 02:08 dji-dev

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?

pktiuk avatar Mar 28 '23 13:03 pktiuk

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 ?

ghost avatar Mar 29 '23 07:03 ghost

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.

pktiuk avatar Mar 29 '23 07:03 pktiuk

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

ghost avatar Mar 29 '23 07:03 ghost

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

pktiuk avatar Mar 29 '23 07:03 pktiuk

@Kanhoto are there any updates or solutions on it?

miroshniktyt avatar Jun 16 '23 20:06 miroshniktyt

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...

JakobLeh avatar Apr 18 '24 08:04 JakobLeh