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:
v4l2src device=/dev/video0 use-fixed-fps=false ! ffmpegcolorspace ! video/x-raw-rgb,bpp=24 ! identity name=artoolkit sync=true ! fakesink
filesrc location=gstreamer_test_xvid.avi ! decodebin2 ! ffmpegcolorspace ! video/x-raw-rgb,bpp=24 ! identity name=artoolkit sync=true ! fakesink
videotestsrc ! capsfilter caps=video/x-raw-rgb,bpp=24 ! identity name=artoolkit sync=true ! fakesink
Further interesting reading concerning GStreamer and webcam control: