Zao SDK for Jetson / libzep API Reference
Loading...
Searching...
No Matches
examples-usage-video-source-webcam

\Examples-usage-video-source-webcam Sample Program How to use ZaoVideoSourceWebcam

ZaoVideoSourceWebcam is a program that sends video captured by one WebCam to the cloud side.

■ Build and Installation

Follow the build instructions to obtain video-source-webcam/ZaoVideoSourceWebcam. To replace the pre-built binary installed by the SDK setup, execute the following command. ```` $ sudo install -m 755 -o root -g root video-source-webcamZaoVideoSourceWebcam /usr/local/bin

## ■ Command line options.

ZaoVideoSourceWebcam -i <device> [-p <link-path] [-m] [-w <width>] [-h <hight>] [-r <frame-rate>] `` *-i <device>: path to the V4L2 device to connect.

  • Example:/dev/video0.
  • This option is required. *-p <link-path>: specify a path for linking. *-p <link-path>: specify the path for linking with ZaoRemoteEndpoint.
  • If omitted, the path isunix:///run/zao/RemoteEndpoint.sock. *-m.
  • If this option is specified, capture in MJPG.
  • If omitted, capture in YUYV. *-w <width>: width of the frame.
  • If omitted, it will be 1920. *-h <height>: height of the frame. *-h <height>: frame height * If omitted, it will be set to 1080. *-r <frame-rate>: frame rate. *-r <frame-rate>: frame rate of the video format.
    • Fractional expressions are allowed.
    • Example:-r 60-r 60000/1001` * If omitted, the value is 30.
  • If omitted, the value is 30.

■ Main operations

  • Type Ctrl-C to stop fetching and sending.

■ Restrictions

  • Device must be present at process startup.
  • If a device is disconnected during operation, it will not be recognized again by the process even if it is reconnected.