- Connect USB camera to the board (Verified Cameras: Logitech HD camera, C920).
- Run the following command for USB video capture serial pipeline
vcu-demo-camera-encode-decode-display.sh -s 640x480
- Run the following commands for USB video capture serial pipeline with audio for
the applicable setting:
- ALSA Library API
-
vcu-demo-camera-encode-decode-display.sh -s 640x480 -a aac --use-alsasrc -i "hw:1,0" --use-alsasink --audio-output "hw:0,0"
- Pulse Library API
-
vcu-demo-camera-encode-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"
- Gstreamer Autoaudiosrc and Autoaudiosink plugins
-
vcu-demo-camera-encode-decode-display.sh -s 640x480 -a aac
Note: In above example using gstreamer auto plugins, gstreamer selects the API and devices to be used for capture and playback automatically. Normally, it tries to use default devices enumerated at bootup by pulseaudio server or as mentioned in the alsa configuration file. So, it might not choose the device you want to use sometimes, in which case you can use the above-mentioned script arguments.
Note: For selecting the values of arguments to be passed to-i
and---audio-output
option, refer section 10.2.