Any way to save web camera recording to file?

I am wondering if there is any easy way to save the recording of a web camera to a file? And not in “raw” format, but a format that doesn’t take up a lot of HDD space.

The problem is if it isn’t in RAW or straight pixels to frames like FRAPs then it impacts framerate too much. Capture and compression on the fly is a hard problem that you will probably need native for, even so you’d probably have to compress after like Video Capture | Tools | Unity Asset Store