I am writing an app (running on ARM Ubuntu) that needs to be able to do image processing on the video stream from a webcam. The easiest way that I can get the data is through the output stream on a process, so I am planning to host a child process, run a command, and consume the output. My current plan is to use FFMPEG, but I can use any command-line tool that works on ARM. There are really two parts to my question:
- What FFMPEG (or other utility, if there is a better one) command do I need to use from the command line to get a stream of pixel data from a webcam?
- What format will the output be in (preferably just RGB data, no encodings or headers)? I am going to need to parse it in my app and need to know the encoding format.
Any information would be appreciated!