Rockchip · AI & Linux Hub

Android & BSP

Sound but no picture on Rockchip Android: tracing MediaCodec output

Normal audio can rule out some input problems, but it cannot prove that video decoding, color conversion, and Surface display paths are normal.

When porting players to Rockchip Android devices, you should start with the codec components and output targets actually selected by the application.

Record the basic facts of a playback

Save the video MIME type, resolution, profile, actual codec name, and whether the output is to Surface or read from the buffer by the application. Select a short clip within the system’s capabilities as a baseline. The MPP example of the same chip under Linux can be played, but it can only be used as a clue to the hardware capabilities.

Find the display along the first frame

Confirm whether the output format change is received, whether the output buffer is obtained, and whether rendering is required when releasing the buffer. The Surface life cycle may change when you rotate the screen, switch to the background, or rebuild the page. Play without switching pages first, and then repeat the switching action.

Verify recovery instead of just watching the premiere

Test pause continuation, front and back resumption, horizontal and vertical screen switching and second playback. Correspond each Surface creation and destruction to the first frame record. In this way, we can distinguish two types of problems: video is not supported and the picture is lost after the interface is restored.

Board documentation and references

ArmSoM Sige7

Products and development resources

Check the hardware revision, carrier, image and interfaces in the product documentation. An article association is not evidence that a configuration has been tested.

Explore this topic → · Learning paths →