Gstreamer development package (on Ubuntu, libgstreamer1.0-dev) and libuvc with UVC1.5/H.264 support are required.
PKG_CONFIG_PATH
environment variable.Just run make
at gsttehtauvc/thetauvc.
Copy gstthetauvc.so into the gstreamer plugin directory or wherever you like.
GST_PLUGIN_PATH
environment variable.mode : Video mode to playback
flags: readable, writable
Enum "GstThetauvcMode" Default: 0, "2K"
(0): 2K - 1920x960(THETA V/Z1)/1920x1080(THETA S)
(1): 4K - 3840x1920(THETA V/Z1)
serial : The serial number of the THETA to use.
Useful if multiple THETAs are connected to the system.
For other properties, run gst-inspect-1.0 thetauvcsrc
.
$ gst-launch-1.0 thetauvcsrc mode=4K ! queue ! h264parse ! decodebin ! queue ! autovideosink sync=false
VideoCapture cap("thetauvcsrc ! decodebin ! autovideoconvert ! video/x-raw,format=BGRx ! queue ! videoconvert ! video/x-raw,format=BGR ! queue ! appsink");