You can add a driver to an image/movie input node frame value or offset value. This can be simple python code. I have successfully created skip frame or speed changes. I guess you could generate specific values to insert in these fields. What effect do you want to produce?
Btw the addon “vse strip to compositor” does something like this.