Nice program. One question though. I have a Bt878 card with 4 video inputs (I'm only using 2 right now). These inputs are addressed with the channel attribute.
I create two camdev nodes in the configuration file one with channel 0 and the other with channel 1. Both use /dev/video0. I can set one or the other inactive and the other works as expected. However if I have both active, I always see the channel 0 camera. I can tell it is switching between camdev nodes though because I have different text filters for the two ("Camera 1" and "Camera 2"). So I switch cameras (via url) and the text changes but the image is the same.
Should this work? If not, can you point me in the code where I can make changes to make it work?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
it should work, but it doesnt :) a single video device can only be opened once, and with this config youd have to open it twice, select a different channel for each, and this doesnt work. apparently theres a way to access two different channels while only opening the video device once, but thats currently unsupported (and in fact i'm not really sure if it works at all, as i have no way to test this). its on the todo list, so its just a matter of time. meanwhile you can try video4linux v2, it should be possible to actually open the device twice with it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Nice program. One question though. I have a Bt878 card with 4 video inputs (I'm only using 2 right now). These inputs are addressed with the channel attribute.
I create two camdev nodes in the configuration file one with channel 0 and the other with channel 1. Both use /dev/video0. I can set one or the other inactive and the other works as expected. However if I have both active, I always see the channel 0 camera. I can tell it is switching between camdev nodes though because I have different text filters for the two ("Camera 1" and "Camera 2"). So I switch cameras (via url) and the text changes but the image is the same.
Should this work? If not, can you point me in the code where I can make changes to make it work?
Thanks
it should work, but it doesnt :) a single video device can only be opened once, and with this config youd have to open it twice, select a different channel for each, and this doesnt work. apparently theres a way to access two different channels while only opening the video device once, but thats currently unsupported (and in fact i'm not really sure if it works at all, as i have no way to test this). its on the todo list, so its just a matter of time. meanwhile you can try video4linux v2, it should be possible to actually open the device twice with it.