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

精灵4RTK无人机使用DJIVideoStreamDecoder.getInstance().parse(videoBuffer, size)去解码得到的yuv数据有问题 #85

Open sheng930920 opened 1 year ago

sheng930920 commented 1 year ago

精灵4RTK无人机在Android rk3399设备上使用DJIVideoStreamDecoder.getInstance().parse(videoBuffer, size)去解码得到的yuv数据有问题,保存成图片后变灰了 image

image
neilyoung commented 1 year ago

Typical "This is not I420 but NV12" (or vice versa) issue. Check the MediaFormat parameter for proper interpretation of the buffer

Am 19.09.2022 um 11:12 schrieb Andy @.***>:

精灵4RTK无人机使用DJIVideoStreamDecoder.getInstance().parse(videoBuffer, size)去解码得到的yuv数据有问题,保存成图片后变灰了 https://user-images.githubusercontent.com/13199067/190985684-dfbdb8fa-f83d-4571-8816-f3868ac75dfd.png https://user-images.githubusercontent.com/13199067/190985699-d66cbfd7-1d09-48d3-bebe-20c3699641ad.png — Reply to this email directly, view it on GitHub https://github.com/DJI-Mobile-SDK-Tutorials/Android-VideoStreamDecodingSample/issues/85, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFSPDHIGJDSXJFXDC5EMW3V7AVBBANCNFSM6AAAAAAQP5E5BE. You are receiving this because you are subscribed to this thread.