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 · hardware and interface manual · Sige5 · product page
- Rockchip MPP and codec examples
- ffprobe document of FFmpeg
