DJI-Mobile-SDK-Tutorials / Android-VideoStreamDecodingSample

This sample project demonstrates how to use FFmpeg for video frame parsing and to use MediaCodec for hardware decoding on DJI Products.
MIT License
169 stars 80 forks source link

How to obtain PTS #47

Open boosan opened 5 years ago

boosan commented 5 years ago

I need to push video stream to the RTSP server, the callback function onDataRecv(byte[] data, int size, int frameNum, boolean isKeyFrame, int width, int height), but there is no timestamp field.I see function Java_com_dji_videostreamdecodingsample_media_NativeHelper_parse PTS, but it is zero, should how to get? Thank you for your precious time!