Video input sources

Graphics and Screen4.0 (8.x)Video Capture Developer's GuideAPIProgramming

The Video Capture Manager supports the querying of the available capture sources.

(/dev/vcap-mgr/video_ins) The list of drivers and their corresponding status that the Video Capture manager can be accessed by clients by one of the following ways:

  • calling read()

    For example:

    ...
    int fd;
    int size_read;
    char buffer[80];
    
    /* Open a file for input */
    fd = open( "/dev/vcap-mgr/video_ins", O_RDONLY );
    
    /* Read the text */
    size_read = read( fd, buffer, sizeof( buffer ) );
    if( size_read == -1 ) {
        perror( "Error /dev/vcap-mgr/video_ins" );
        return EXIT_FAILURE;
    }
    close(fd);
    ...
     			
  • use the ls and cat commands from your shell

    For example:

    # ls /dev/vcap-mgr/video_ins
    right_front rearview
    
    # cat /dev/vcap-mgr/video_ins/rearview
    driver = libcapture-board-imx8x-nxp.so 
    device = 0 
    source = 0 
    label = rearview
    enable = 1 
    nbufs = 6 
    buf_size = 1280 x 720 
    buf_format = 15
    CAPTURE_PROPERTY_DST_FORMAT = 15 
    CAPTURE_PROPERTY_DST_WIDTH = 1280 
    CAPTURE_PROPERTY_DST_HEIGHT = 720 
    CAPTURE_PROPERTY_SRC_WIDTH = 1280 
    CAPTURE_PROPERTY_SRC_HEIGHT = 720 
     			
Page updated: