maybe could be done with http://www.elphel.com/
or a webcam that doesn't encode the video it self - outputs raw. I don't think any hd webcams do this. early HD cameras (hint: DLSR's ;) ) or camcorders, recorded into mjpeg which doesn’t have any fees to be paid and so I believe that format is in the public domain = free.