I'm capturing a video using a webcam that supports streaming its output as mjpeg. So far I've been doing it successfully on linux as follows:
ffmpeg -pixel_format mjpeg -i /dev/video4 ...
However, I'm deploying my application on Mac and don't seem to find an alternative with avfoundation.
ffmpeg -f avfoundation -pixel_format mjpeg -i /dev/video4 ...
returns and error saying that mjpeg is not recognized.
Streaming the video uncompressed limits the resolution that my application is able to process (downstream processing is quite intensive). Is there any way to read mjpeg from the webcam on Mac?
Thanks a lot!