I am not an expert in this field, but I believe that the answer to your question is NO.
If you want to save the I-frame as a JPEG image, you still need to “transcode” the video frame, that is, you first need to decode the I-frame using an H264 decoder, and then encode it using a JPEG encoder. This is due to the fact that the JPEG encoder does not understand the H264 frame, it only accepts uncompressed video frames as input.
Aside, since the entrance to the JPEG encoder is an uncompressed frame, you can generate a JPEG image from any type of frame (I / P / B), since it will already be decoded (using the reference I-frame, if necessary) before being fed to the encoder.
source share