# How to connect two video streams into slicer using plus server

**URL:** <https://discourse.slicer.org/t/how-to-connect-two-video-streams-into-slicer-using-plus-server/35611>\
**Category:** Support\
**Tags:** plus\
**Created:** [April 19, 2024, 2:40am UTC](https://discourse.slicer.org/t/how-to-connect-two-video-streams-into-slicer-using-plus-server/35611 "2024-04-19T02:40:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![David.Xu](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@David.Xu](https://discourse.slicer.org/u/David.Xu)\
**Post date:** [April 19, 2024, 2:40am UTC](https://discourse.slicer.org/t/how-to-connect-two-video-streams-into-slicer-using-plus-server/35611/1 "2024-04-19T02:40:25Z")

</div>

I have two cameras to access, how to achieve through plus server and openigtlinkif . The access of a single camera has been completed, how to modify the configuration parameters of plus server when accessing two cameras at the same time? The corresponding parameter file is PlusDeviceSet\_Server\_MmfColorVideoCapture.xml

---

<div class="post-metadata">

**Author:** ![David.Xu](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@David.Xu](https://discourse.slicer.org/u/David.Xu)\
**Post date:** [April 19, 2024, 6:15am UTC](https://discourse.slicer.org/t/how-to-connect-two-video-streams-into-slicer-using-plus-server/35611/2 "2024-04-19T06:15:21Z")

</div>

I have successfully imported two video streams with a resolution of 640x480. However, when I adjusted the resolution of both streams to 1920x1080, the Plus Server failed to start. I need high-resolution images with a frame rate of 20fps. Is there a way to achieve this using Plus?

 ![lQLPJwjA19L136XNBoPNCH6wUqQerLglyRMGDt3NzSWNAA_2174_1667](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/7/47d79201114007eb8a7b2af00e438442a1a8fb3b.png)  
 ![lQLPKctkP61uL6XNBtbNC8OwxbAy-x77BJcGDt3NzSWNAQ_3011_1750](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/1/d1019309f8e071b3d0adabc1af079c03dd53730a.jpeg)

---

<div class="post-metadata">

**Author:** ![David.Xu](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@David.Xu](https://discourse.slicer.org/u/David.Xu)\
**Post date:** [April 19, 2024, 7:01am UTC](https://discourse.slicer.org/t/how-to-connect-two-video-streams-into-slicer-using-plus-server/35611/3 "2024-04-19T07:01:19Z")

</div>

How to set frame rate in XML file.

---

<div class="post-metadata">

**Author:** ![David.Xu](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@David.Xu](https://discourse.slicer.org/u/David.Xu)\
**Post date:** [April 19, 2024, 11:19am UTC](https://discourse.slicer.org/t/how-to-connect-two-video-streams-into-slicer-using-plus-server/35611/4 "2024-04-19T11:19:18Z")

</div>

When I use Plus to connect a 1080P camera, I find that the frame rate is quite low. However, when I connect the same 1080P camera directly using OpenCV, the frame rate is normal.

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [April 19, 2024, 2:10pm UTC](https://discourse.slicer.org/t/how-to-connect-two-video-streams-into-slicer-using-plus-server/35611/5 "2024-04-19T14:10:31Z")

</div>

You can specify **AcquisitionRate** to change the desired framerate.

[http://perk-software.cs.queensu.ca/plus/doc/nightly/user/Configuration.html#DeviceAcquisitionRate](http://perk-software.cs.queensu.ca/plus/doc/nightly/user/Configuration.html#DeviceAcquisitionRate)

---

<div class="post-metadata">

**Author:** ![David.Xu](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@David.Xu](https://discourse.slicer.org/u/David.Xu)\
**Post date:** [April 22, 2024, 2:45am UTC](https://discourse.slicer.org/t/how-to-connect-two-video-streams-into-slicer-using-plus-server/35611/6 "2024-04-22T02:45:14Z")

</div>

![1713753872690](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/7/37bd78d678091f78158afd7c071bf0b90011b165.png)  
I add this parameter, but the frame rate is still low.

---

<div class="post-metadata">

**Author:** ![David.Xu](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@David.Xu](https://discourse.slicer.org/u/David.Xu)\
**Post date:** [April 22, 2024, 1:51pm UTC](https://discourse.slicer.org/t/how-to-connect-two-video-streams-into-slicer-using-plus-server/35611/7 "2024-04-22T13:51:31Z")

</div>

And I change VideoFormat to “NV12” and “MJPG”, but It doen’t work.

 ![1713793762524](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/4/84604e527a7c2d26c42b36ce8e2138510b02cb66.png)  
 ![1713793790783](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/0/e0c7aaba27659785dbba056ca8c328a87d0662a1.png)  
 ![1713793867911](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/5/35bc4557a2ec0ebeabcfb495dfbf1e9e0f385c31.png)

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [April 22, 2024, 1:55pm UTC](https://discourse.slicer.org/t/how-to-connect-two-video-streams-into-slicer-using-plus-server/35611/8 "2024-04-22T13:55:30Z")

</div>

Have you tried using the [OpenCVVideo device](http://perk-software.cs.queensu.ca/plus/doc/nightly/user/DeviceOpenCVVideo.html) to see if the performance is better?

---

<div class="post-metadata">

**Author:** ![David.Xu](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@David.Xu](https://discourse.slicer.org/u/David.Xu)\
**Post date:** [April 22, 2024, 1:58pm UTC](https://discourse.slicer.org/t/how-to-connect-two-video-streams-into-slicer-using-plus-server/35611/9 "2024-04-22T13:58:16Z")

</div>

Yes, the frame rate in opencv is 30FPS, but when using plus server is 5FPS.
