Zenmuse H20 camera video stream decoding error
CompletedI am attempting to use the OSDK with a Raspberry Pi 4 8Gb and a Jetson Nano to control and obtain data from a Matrice M300 RTK drone with its software updated to the latest version. However, I am encountering issues when trying to run either the 'camera_stream_callback_sample' or 'camera_stream_poll_sample' functions. When I select the main camera option, the video received and displayed on the computer appears distorted, as shown in the attached image. However, when I choose the FPV camera option, there are no issues. Similarly, when I run the 'camera_h264_callback_sample' function, I receive a file from the FPV option that can be played in VLC, but the file from the main camera (H20) cannot be opened. |
-
H20 H264 is based on GDR format, please use ffplay to check whether H264 is valid OSDK saves H20 video streams as H264 files, which cannot be played using ffmpeg/ffplay(https://sdk-forum.dji.net/hc/en-us/articles/900006766943) -
In the sample, FFmpeg is used for real-time decoding, and the parameter -flags2 showall is added. You can refer to the decoding of the sample to process the image in real time. https://github.com/dji-sdk/Onboard-SDK/blob/master/osdk-core/advanced-sensing/camera_stream/src/dji_camera_stream_decoder.cpp -
I'm trying to run the sample using ffmpeg version 3.4 and the latest version but get the same error.
I had to update the code to be able to use the latest version of ffmpeg. But there is a problem with the linker that doesnt allow me to finish the proccess. Maybe is a problem with the architecture since its a Raspberry Pi 4? what others boards would recommend to use?
Please sign in to leave a comment.
Comments
4 comments