If the offline frame extraction project exits immediately after the last input package is submitted, the end of the short film will be especially prone to missing frames. First record two different events: input end and output end.
Count input and output separately
Refer to the decoding example of the MPP version used to transfer EOS according to the interface agreement, and then continue to obtain the output until the output side end flag is obtained or an error is clear. A compressed package does not necessarily correspond to a display frame, so the objects and order must be unified before comparing counts.
Use readable frame numbers to make samples
Prepare a short video with a sequence number in each frame, and use reference software to decode and generate a sequence number list. Check the first frame, last three frames and the total display order of the board respectively. If the last few frames are always lost, check the draining logic. If it is misaligned from the middle, continue to check the package delivery and format change processing.
Record exit reason
Count normal ends, read timeouts, format changes and errors separately. Run it once for long films and short films with only one or two frames. In this way, when you see “0 thumbnails generated” after going online, you can determine whether it is an empty input or the decoding process was terminated early.
Minimal regression example of EOS problem
| input | The result of comparison |
|---|---|
| Single frame video | Output once and exit normally |
| Short film with display rearrangement | The last few frame numbers are complete |
| Two sections of files are processed continuously | After the first section is emptied, the second section can start normally |
Board documentation and references

- ArmSoM Sige7 · hardware and interface manual · Sige7 · product page
- Rockchip MPP and codec examples
- Rockchip MPP Development Reference: Media Framework, Codec APIs, Memory and Debugging
