I'm trying to do something fairly specific and I was wondering if anyone had some suggestions for ways to do it.
I'm working on a program and for it I need an application to do the following utilizing a webcam:
Be able to locally broadcast live video from a webcam to the user on the screen at a decent frame-rate (somewhere around 10 would be nice)
From this live broadcast, be able to take single image snapshots at a commanded time
I'm looking for something that runs on the command line, preferably. I've tried using VLC which is nice for the first part, but in order to take a screenshot, I haven't found a way to do so using the command line. In order for that to work in my application I would need to simulate keystrokes with an active window which may make it a bit difficult to implement.
If anyone has any other suggestions as well using basic terminal commands that would also work, I'm fully open to them.