Archive for the ‘Java’ Category

Capture Webcam Video from Java Application

Sunday, November 30th, 2008

Java provide a framework API which enables audio, video and other time-based media to be added to applications and applets built on Java technology. We can use The Java Media Framework API (JMF) to capture video/images from a webcam device.

Above picture explains how JMF works, first we initialize capture device, and then create a datasource object, bind it to player object, and display it to user on JFrame window (the TV). Now I will demonstrate you how to implement it.

Requirements

Click read more to see the code!

(more…)