-
-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems when operating two cameras at the same time #137
Comments
Please see this: #99 |
thanks for your reply I already know this # 99, but I asked because the situation is different. #99 states The difference is that my environment doesn't use a USB hub and connects directly to the Raspberry Pi. Also, depending on the camera model, even if two UVC cameras with different resolutions are connected at the same time, the packets will be transferred in a well-balanced manner by the two cameras, and there is no problem with streaming. If this software cannot be used due to the specifications of the camera, I think it can't be helped. But you're busy, so it's hard to answer my questions. |
Raspberry Pi already contains a USB HUB inside. The USB to which you connect your cameras are not chip interfaces, they are connected to a PCI-E USB controller. Let's start with debugging. Show the command line opts that you use to launch and the ustreamer logs for each camera. I'm not refusing to help you, I just don't fully understand the root of the problem. |
thank you for your reply. Now, let me give you some details about the current situation. 1)The following two cameras are connected to the Raspberry Pi. $ v4l2-ctl -d /dev/video0 --list-formats-ext
The log is as follows.
The log is as follows.
https://drive.google.com/file/d/1ApOHYZ7aVXrzJr6z5fcphWzwykdBgCtA/view This is the screen of another PC to which the Raspberry Pi is connected.
https://drive.google.com/file/d/1HLkqCRISXthlsA5CjyTcMve7YRvVMg9Z/view This seems to be starting iptraf-ng on Raspberry Pi and monitoring traffic. There is a clear difference in the amount of packet and byte count increments between ports 8080 and 8081. That is all for the current situation. |
Interesting. Please attach JSON from the |
Is this okay for json files? |
Okay, the video capture is fine. It looks like a purely network problem. Just for the sake of experiment: can you output the camera image to two physically different computers? Will the problem be reproduced like on your video? |
I'm sorry. https://drive.google.com/file/d/1e77j97yJveuXG7xNMzyYT-6sp7Ulff0h/view?usp=sharing |
I forgot to attach the log. |
@nabetayam Okay, I don't have any ideas yet, but I know who to ask @xornet-sl Could you take a look at this? Looks like a strange network problem from Pi side. |
Thank you for your support. |
@xornet-sl boop |
Sorry. I will be here on the nearest weekend for inspecting this. |
hi guys |
Hi guys |
Hi, didn't have a chance to take a look at it but definitely will have time in the upcoming weeks. |
@xornet-sl Did you get a chance to look into this? |
I connected two UVC cameras to the Raspberry Pi and started ustreamer with different ports.
However, when I use two of the same camera at the same time, the problem is that the streaming of the camera started earlier is normal, but the streaming of the camera started later is awkward / not streamed.
For example, suppose I have two same cameras, one with camera A and one with camera B.
I stream normally when I first run camera A on port 8080, but then when I run camera B on port 8081 the streaming is awkward.
I stream normally when I first run camera B on port 8081, but then when I run camera A on port 8080 the streaming is awkward.
I checked with iptraf.
Then, the amount of packets transferred by the camera started earlier is large, and the amount transferred by the camera started later is abnormally small, so it is thought that this imbalance in streaming data transfer is the cause.
So far, I have confirmed the following contents.
The cameras that are having problems are:
https://www.watec.co.jp/English/e_USB.html
MODEL: WAT-01U2
In addition, the image sensor chip used internally by this camera is as follows.
https://www.nisshinbo-microdevices.co.jp/ja/products/usb-camera-controller/
USB2.0 Camera Controller LSI R5U8710
If you have any ideas for a solution, please suggest.
The text was updated successfully, but these errors were encountered: