Simultaneously access of 2 device files of the same camera

For some other cameras, I can have 2 processes access 2 different device files of the same camera
For example Process1 can access /dev/video0 for color stream and Process2 can access /dev/video0 for b/w stream so that they can do 2 different things with those streams

For the USB UVC cameras, is there a way to support it?

  1. Where did you get the camera module(s)?

  2. Model number of the product(s)?

  3. What hardware/platform were you working on?

  4. Instructions you have followed. (link/manual/etc.)

  5. Problems you were having?

  6. The dmesg log from your hardware?

  7. Troubleshooting attempts you’ve made?

  8. What help do you need?


Video0 does not support fetching two different streams simultaneously.

You can use the main thread to fetch the data, and then use the sub-thread to convert it into a grayscale image using opencv.