ok, you should have a look at these pages then:
we always recommend the commercial PICVIDEO mjpg codec since it compresses only keyframes and no diff frames which makes it possible to jump precisely to all frames… but there might be free alternatives.