artoolkit-docs

Configuring GStreamer Video Capture in ARToolKit

A variety of GStreamer pipelines can be constructed, for example to pull video from a webcam, local file, or network stream. These are the important points to observe regarding where ARToolKit fits into a GStreamer pipeline:

Putting these points together, the last part of the GStreamer pipeline for ARToolKit will usually be:

ffmpegcolorspace ! video/x-raw-rgb,bpp=24 ! identity name=artoolkit sync=true ! fakesink

Note also that ARToolKit will respect the size of incoming video, so you can add the ‘width=’ and ‘height=’ properties to the capsfilter element, should you so desire.

Some complete examples:

Further interesting reading concerning GStreamer and webcam control: