I have made a motion blur effect for my own use a long time ago that is pretty much like your request.
It still needs some cleaning up and polishing to be published for public though. Whenever I find the time I'll try to work on it and release to the community.
I have a dozen other effects on the same situation, but I lack the time or drive to polish and optimize them.
Someday I'll get to it!