• Снятие кадров с вебкамеры на Windows

    Для начала нам понадобится VCL. После его установки, мы можем отдавать ему команды из консоли, в том числе, прозрачно для пользователя. Например, вот такой файл позволит снять один кадр с вебкамеры и положить его в указанную директорию.

    "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --dshow-vdev="iLook 310" --dshow-size=640x480 --video-filter=scene --no-audio --scene-path=C:\Users\Ast\Pictures\Snaps\ --scene-format=jpeg --scene-prefix=snap --run-time=1 --intf=dummy -V dummy --scene-replace --dummy-quiet "dshow://" vlc://quit
    
    set datetimef=%date:~-4%_%date:~3,2%_%date:~0,2%__%time:~0,2%_%time:~3,2%_%time:~6,2%
    copy "C:\Users\Ast\Pictures\Snaps\snap.jpeg" "C:\Users\Ast\Pictures\Snaps\%datetimef%.jpeg"

    В данном примере «iLook 310» — название источника, его можно посмотреть через GUI VLC.

One is the pinnacle of evolution; another one is me

One on the picture is the pinnacle of evolution; another one is me: inspired developer, geek culture lover, sport and coffee addict