This tutorial explains how to record video from webcam and save it as mp4 file from java program. We have discussed how to take video feed from webcam in the previous chapters.
A video is nothing but collection of still images. In this example, we will take images from the webcam in very short durations and then convert it as a video. For video encoding we will use Xuggler library.
Xuggler for Java: http://www.xuggle.com/xuggler/
Code is available at…