Example-3: (USB-Camera → Decode → Display) - 2023.1 English

H.264/H.265 Video Codec Unit v1.2 Solutions LogiCORE IP Product Guide (PG252)

Document ID
PG252
Release Date
2023-05-16
Version
2023.1 English

Connect USB camera to the board (Verified Cameras: Logitech HD camera, C920).

  1. Connect USB camera to the board (Verified Cameras: Logitech HD camera, C920).
  2. Run the following command for USB video decode display pipeline:
    vcu-demo-camera-decode-display.sh -s 1920x1080
  3. Run the command for USB video decode pipeline with audio:
    ALSA Library API
    vcu-demo-camera-decode-display.sh -a aac --use-alsasrc -i "hw:1,0" --use-alsasink --audio-output "hw:0,0"
    Pulse Library API
    vcu-demo-camera-decode-display.sh -s 640x480 -a aac -i 
    "alsa_input.usb-046d_HD_Pro_Webcam_C920_C06272EF-02. analog-stereo" \
    --use-pulsesrc --use-pulsesink --audio-output "alsa_output. 
    platform-fd4a0000.zynqmp-display_zynqmp_dp_snd_card. analog-stereo"
    Note: For "How to Guide" on selecting the values of arguments to be passed to -i and ---audio-output option, refer section 10.2.
    Gstreamer Autoaudiosrc and Autoaudiosink plugins
    vcu-demo-camera-decode-display.sh -a aac
    Important: Resolutions for Example 2 and 3 must be set based on USB Camera Capabilities.

To find capabilities, use v4l2-ctl --list-formats-ext. If V4lutils is not installed in the pre-built image, install it using dnf or rebuild the PetaLinux image including v4lutils.