I would like live stream video from Drone to Wowza Streaming Engine Server. I got H264
raw data from this callback , And I'm looking a library which supports live stream from H264
raw data or any document about live stream from H264 data. Thank for any support.
DJI released a new version of the SDK 4.0, where it comes with an example of how to decode that raw data into YUV image using FFMpeg.
Folowing that example, you can modify this method
private void screenShot(byte[] buf, String shotDir) {
YuvImage yuvImage = new YuvImage(buf,
ImageFormat.NV21,
DJIVideoStreamDecoder.getInstance().width,
DJIVideoStreamDecoder.getInstance().height,
null);
//you can therefore stream it to your Wowza Server
}
I don't know what are your objectives. However, I'd sugest you to encode that YUV frame to Jpeg, and transmit it throught UDP, like a Peer to Peer application.
Here is a simple way of how to stream live video using UDP. It uses C++, but is simple to understand
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.