processing:video_capture
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
processing:video_capture [2013/05/23 04:03] – [Capture is a PImage] mithat | processing:video_capture [2013/08/04 03:53] – mithat | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Video capture examples ====== | ====== Video capture examples ====== | ||
- | Examples | + | The examples |
===== List available capture devices ===== | ===== List available capture devices ===== | ||
- | The following sketch will print out a list of available capture devices to the console. You'll need at least one entry to do video capture. On Linux (the only platform I tested) different resolutions show up as different devices. | + | You'll need at least one available device to do video capture. |
<file java list_capture_devices.pde> | <file java list_capture_devices.pde> | ||
Line 31: | Line 31: | ||
===== Show video ===== | ===== Show video ===== | ||
+ | There are two ways you can set up video capture: by requesting capture parameters or specifying the device. | ||
+ | |||
==== By requesting capture parameters ==== | ==== By requesting capture parameters ==== | ||
<file java show_capture_by_parameters.pde> | <file java show_capture_by_parameters.pde> | ||
Line 66: | Line 68: | ||
==== By specifying device ==== | ==== By specifying device ==== | ||
- | Note that Processing will crop the capture to the canvas size if it doesn' | + | Processing will crop the capture to the canvas size if it doesn' |
<file java show_capture_by_devnum.pde> | <file java show_capture_by_devnum.pde> | ||
Line 112: | Line 114: | ||
</ | </ | ||
- | <WRAP center round info 80%> | + | |
+ | <WRAP center round tip 80%> | ||
===== Capture is a PImage ===== | ===== Capture is a PImage ===== | ||
- | Something the [[http:// | + | Something the [[http:// |
<code java> | <code java> | ||
- | This means all the methods and fields available to '' | + | This means all the methods and fields available to PImage objects should also be available to Capture objects. |
</ | </ | ||
processing/video_capture.txt · Last modified: 2013/08/23 04:10 by mithat