dji-sdk / RoboMaster-SDK

DJI RoboMaster Python SDK and Sample Code for RoboMaster EP.
Apache License 2.0
312 stars 141 forks source link

Robomaster h264 decoding for Android Mobile App ?! #71

Open Vinz1911 opened 2 years ago

Vinz1911 commented 2 years ago

Hi Guys,

I'm working on a mobile app to drive the robomaster with the DJI Smart Controller. But I have a lot of struggle to decode the h264 video stream. is there a good solution or something you can provide me which would help me to decode and display the Videostream from the robomaster?

Thank you!!

brunoga commented 2 years ago

This might help you. I wrote some C code that uses libavcodec (and related libraries) to decode the h264 stream from the Robomaster. libavcodec is available for Android at least but even if you can't won't use it, this code might help you figure out how to do it using something else:

https://github.com/brunoga/robomaster/tree/master/sdk/modules/video/internal/h264