I'm trying to understand how the encoding of a I and P Frame works. The I frame is just encoded like a JPEG image.
I'v read that for the P-Frame we need to calculate some motion vectors, apply it to the reference image and calculate the difference between the target and the reference image.
Why do we need such motion vectors? Why can't we just take the difference of the I Frame and the B Frame and encrypt it?