This project is intended to be a replacement of DV-switch based on GStreamer. ##Installing gst-switch
wget https://raw.github.com/timvideos/gst-switch/master/scripts/install2.sh
chmod +x install2.sh
./install2.sh
The dependencies are taken care by the installation method.
gst-switch contains two parts, gst-switch-srv and gst-switch-ui
The gst-switch server will open at least three ports for video/audio input, and command controls. Start gst-switch server as:
gst-switch-srv --video-input-port=3000 --audio-input-port=4000 --control-port=5000
The default video input port is 3000. Supported input video format: I420 (video/x-raw), 1280x720 (for debug mode, the video size could be 300x200).
The default audio input port is 4000.
The default command control port is 5000.
###The gst-switch UI The gst-switch UI is a graphical controller for controlling the input streams
gst-switch-ui
Key Bindings | Function |
Ctrl+Arrow | Adjust PIP position. |
Ctrl+Shift+Arrow | Adjust PIP size. |
Arrow Up/Down | Change selection of video previews. Selecting a video is the first step for switching video/audio input. |
A | Switch video input for channel A or activate audio input to the selected video/audio. |
B | Switch video input for channel B to the selected video. |
Tab | Change a mode of A/B compositing, stroking it repeatly will cycle within modes and off. |
Esc | Turn off A/B videos compositing. |
r | Start a new recording, the *--record _name_* will be used as a template, e.g. *record 2013-01-23 131139.dat* |
###The gst-switch Capture Implements speaker tracking
gst-switch-cap --device='/dev/ttyUSB0' --protocol='visca'
###The gst-switch PTZ Implements Pan-Tilt-Zoom Camera
gst-switch-ptz --device='/dev/ttyUSB0' --protocol='visca' --video='/dev/video0'