The Video library plays movie files and captures video data from a camera. Video can be captured from USB Cameras, IEEE 1394 (Firewire) Cameras, or Video Cards with composite or S-video input devices connected to the computer. Movies can be loaded from files located on your computer or anywhere on the Internet. It is based on the GStreamer multimedia framework, and uses the gstreamer-java bindings to interface GStreamer from Java to support a wide range of media formats. We recommend using H.264, but many other formats will work as well.
The source code is available on the processing-video GitHub repository. Please report bugs here.
Datatype for storing and manipulating video frames from an attached capture device such as a camera.
Returns "true" when a new frame from the device is available to read.
Sets how often frames are read from the capture device.
Reads the current frame of the device.
Starts capturing frames from an attached device.
Stops capturing frames from an attached device.
Datatype for storing and playing movies.
Returns "true" when a new movie frame is available to read.
Returns the length of the movie in seconds.
Sets how often frames are read from the movie.
Jumps to a specific location within a movie.
Plays a movie continuously, restarting it when it's over.
If a movie is looping, this will cause it to play until the end and then stop on the last frame.
Pauses a movie during playback.
Plays a movie one time and stops at the last frame.
Reads the current frame of the movie.
Sets the relative playback speed of the movie.
Stops a movie from continuing.
Returns the location of the playback head in seconds.