Andreas1331 / android-webrtc-dji

A sample for transmitting the videofeed of a DJI drone on Android to a webbrowser using WebRTC.
MIT License
9 stars 3 forks source link

DJI Mini SE #1

Open kripper opened 11 months ago

kripper commented 11 months ago

Interesting. Do you think you could get it working on a DJI Mini SE? It seems all models have different video formats.

Andreas1331 commented 11 months ago

I don't see why not, but I don't have that model available for testing however.

kripper commented 11 months ago

Well, I'm successfully getting the YUV frames the same way as you here: https://github.com/RosettaDrone/rosettadrone/blob/e5ac3aabce5560cf74f9a054bfa3fc50a11461a2/app/src/main/java/sq/rogue/rosettadrone/plugins/RawVideoStreamer.java#L24

I believe we should implement WebRTC streaming in RosettaDrone. We already implemented RTSP streaming, but it's not working on all models probably because of NAL splitting issues.

But streaming the decoded YUV frame should work fine I guess.

Why don't you join our RosettaDrone project?

kripper commented 11 months ago

The only thing I don't like of this approach is that we are decoding and reencoding the frames on the phone.

The ideal solution would be to decode just once on the viewer, but not on the phone.