# Configure USB camera with Yavta

Source: [https://docs.qualcomm.com/doc/80-88500-3/topic/15_Build_Yavta.html](https://docs.qualcomm.com/doc/80-88500-3/topic/15_Build_Yavta.html)

Yavta is a camera test application. To set up Yavta, perform the following steps.

1. Run the following command.

        bitbake yavtaCopy to clipboard
2. Plug in the USB camera, and locate the newly added device  /dev/videoX. For example, /dev/video3.
3. Use the following command to check the output formats, resolutions, and frames per second (fps), that the device supports.

        yavta --enum-formats (./yavta /dev/video0)Copy to clipboard

For example: Device  /dev/video0 opened: HD webcam `C525 (usb-0000:00:14.0-9)`.
    - Format 0: YUYV (56595559), type: video capture (1)
              
        Name: YUYV 4:2:2

            Frame size: 640x480 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 160x120 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 176x144 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 320x176 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 320x240 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 432x240 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 352x288 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 544x288 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 640x360 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 752x416 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 800x448 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 864x480 (1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 960x544 (1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 1024x576 (1/15, 1/10, 2/15, 1/5)
            Frame size: 800x600 (1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 1184x656 (1/15, 1/10, 2/15, 1/5)
            Frame size: 960x720 (1/15, 1/10, 2/15, 1/5)
            Frame size: 1280x720 (1/10, 2/15, 1/5)
            Frame size: 1392x768 (1/10, 2/15, 1/5)
            Frame size: 1504x832 (2/15, 1/5)
            Frame size: 1600x896 (2/15, 1/5)
            Frame size: 1280x960 (2/15, 1/5)
            Frame size: 1712x960 (1/5)
            Frame size: 1792x1008 (1/5)
            Frame size: 1920x1080 (1/5)Copy to clipboard
    - Format 1: MJPG (47504a4d), type: video capture (1)
              
        Name: Motion-JPEG

            Frame size: 640x480 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 160x120 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 176x144 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 320x176 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 320x240 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 432x240 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 352x288 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 544x288 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 640x360 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 752x416 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 800x448 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 864x480 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 960x544 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 1024x576 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 800x600 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 1184x656 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 960x720 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 1280x720 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 1392x768 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 1504x832 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 1600x896 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 1280x960 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 1712x960 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 1792x1008 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)
            Frame size: 1920x1080 (1/30, 1/24, 1/20, 1/15, 1/10, 2/15, 1/5)Copy to clipboard

Note: When YUYV format is selected, the output fps reaches 30 fps only if the output size is less than 800 x 448. MJPEG format has no such limitation.
4. Set the image format and image size.
    1. Specify MJPEG format and the 1280 x 960 output size as 30 fps. Save 10 files under  /data/. The generated filename is testmjpeg-\*.bin.

            ./yavta -f MJPEG -s 1280x960 -t 1/30 -c10 -F/data/testmjpeg /dev/video3   #Copy to clipboard
    2. Specify YUV format and the 1280 x 960 output size as 30 fps. Save 10 files under  /data/. The generated filename is testyuv-\*.bin.

            ./yavta -f YUYV -s 1280x960 -t 1/30 -c10 -F/data/testyuv /dev/video3 #Copy to clipboard
    3. Pull the \*.bin under  /data/ and modify the filename extension to  .yuv or  .jpeg. Use the 7yuv or jpeg application to verify the files.

**Parent Topic:** [Configure multimedia settings](https://docs.qualcomm.com/doc/80-88500-3/topic/7_Configure_multimedia_settings.html)

Last Published: Sep 26, 2023

[Previous Topic
Verify GPU usage](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/12_Check_GPU_usage.md) [Next Topic
Configure video settings](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/16_Configure_video_settings.md)