Skip to content

Run Preview Demo

Prerequisites

Before running preview demo, you first need to:

  1. Install AVT SDK on your device:

    See AVTSDK Environment Setup for details. The installation script will install everything you need.

  2. Connect the cameras to the device

  3. Connect the monitor to the device

Run the Demo

This demo demonstrates how to display live video from a selected camera on a monitor.

Steps

  1. Create a script init.sh to configure the Wayland display environment for the demo:

    init.sh
    export XDG_RUNTIME_DIR=/dev/socket/weston
    export WAYLAND_DISPLAY=wayland-1
    

    Then you can source the script in your terminal:

    source init.sh
    
  2. Run the preview demo application. The application is installed to /usr/bin, so you can run it directly with the following command:

    preview_demo
    
  3. The application will prompt you to select the camera device, as well as its format, resolution, and framerate, one by one. You may select each setting according to your preference.

    Preview demo

    Settings for the camera.

  4. Live video from the selected camera will be displayed on the monitor.