Saving webcam stream as a video file without the use of paid assets?

Is there in any way I can get the raw data stream from webcam inside unity so that I can use to convert it into a video or can process it?

You can get raw pixels data from the WebcamTexture. And pass these pixels to any video decoder such as ffmpeg. And write the H.264 or any else codec to file.

Is there’s any paid assets for that?

I need to capture the the video from webcam and save it to local. I am using WebGL plateform