smoother transition of video rate

mzdoherty's icon

I am working a patch that controls the playback rate(0-2) of a video from a serial input. When I am changing the rate the video becomes choppy, but once it is set at that rate it becomes smooth again. Any suggestions on how to fix this?

jit.qt.mov feeds into jit.window

Video Info
format: .mov
encoding: MJPG-A
resolution: 1024x768
audio: none
fps: 29.97