Connect USB camera to the board (Verified Cameras: Logitech HD camera, C920).
- Connect USB camera to the board (Verified Cameras: Logitech HD camera, C920).
- Run the following command for USB video decode display
pipeline:
vcu-demo-camera-decode-display.sh -s 1920x1080
- 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.