Mjpg alternatives

Hi all,

I’m looking for alternative video codecs for mjpg that run with AVFoundation?
I have a number of older projects where I used the mjpg format to play and manipulate videos in real time. I tried all flavors of AppleProRes and H264 quality settings and they all fail terribly when I use video scrubbing, by manipulating .setPosition() of the video. With mjpg this worked without problems.

I would highly appreciate any advice.

Thanks, Marko