Rockchip · AI & Linux Hub

Display & audio

Measuring how GOP length affects the first frame of a Rockchip camera stream

Successful network connection, receiving compressed data, decoding the first frame and displaying the picture are four points in time.

If the preview is accessed midway through the video stream, the decoder may need to wait for the image and related parameters to start decoding independently. First measure the interval between each stage, and then decide to adjust the encoder or player.

Design a midway access experiment

Keep the code rate and frame rate the same as the client, repeatedly enter the same code stream from different times, and record the time distribution from receiving the first packet to displaying the first frame. Compare random access points and parameter set locations in the code stream. If the startup duration changes periodically with the access moment, the GOP deserves priority inspection.

Calculate an expected magnitude

For example, if the frame rate is 25, a suitable independent access point is set every 50 frames, with an interval of about two seconds. It is not a guarantee of actual first-screen time, and player caching, network retransmissions, and parameter set availability can alter results. Shortening the interval may also increase bit rate overhead.

Retain image quality conditions before drawing conclusions

Fixed the same motion scene, and compared the first screen delay, actual bit rate and compression artifacts after changing the interval. When delivering live previews versus long-term archives, different encoding strategies can be used for the two uses.

Board documentation and references

ArmSoM Sige5

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 →