In my project, SD card was used to store the video, JPEG peripherals +DMA2D were used to convert the video format and finally displayed on the LCD screen, but only the first 4 frames could be converted each time, and then HAL_JPEG_DecodeCpltCallback ...