Skip to content

TheImagingSource/ic4-gstreamer

Repository files navigation

ic4src

Simple GStreamer-1.0 source element to access TIS cameras via IC4.

Usage

Ensure GENICAM_GENTL64_PATH is set! source env.sh from build dir, for test usage. gst-launch-1.0 -v ic4src serial=40210174

To activate conversion by ic4, add device-format to the caps.

gst-launch-1.0 ic4src ident=28710095 ! video/x-raw,format=BGRx,device-format=GRAY8,width=1920,height=1080,framerate=30/1 !  videoconvert ! waylandsink sync=false 

You will get BGRx. The camera is set to Mono8.

The internal conversions of IC4 replaces the tcamdutils, which should not be needed working with ic4src.

Setting properties is done as follows:

gst-launch-1.0 ic4src prop="ExposureAuto=Continuous GainAuto=Continuous" ! ....

Tests

Require IC4SRC_ENABLE_TESTS to be set to ON. doclib has to installed. Add it to vcpkg for easiest usage.

Tests imply the following:

Installation of a GenTL provider

Set TEST_SERIAL_IC4SRC to the device to use.

The device MUST have the following properties:

  • DeviceReset
  • ExposureTime
  • ExposureAuto
  • Contrast

Build Requirements

  • ic4
  • vcpkg
  • gstreamer-1.0
  • g++/clang
  • sphinx
  • tcam-properties

Building

cmake --workflow --preset package-linux

License

Published under the Apache-2.0 license.

About

GStreamer libraries and tools for IC4

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published