# Error when streaming from camera

**URL:** https://forum.commonvisionblox.com/t/error-when-streaming-from-camera/2337
**Category:** General Questions
**Tags:** acquisition, genicam, python
**Created:** [January 8, 2025, 4:23pm UTC](https://forum.commonvisionblox.com/t/error-when-streaming-from-camera/2337 "2025-01-08T16:23:08Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Paulo](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@Paulo](https://forum.commonvisionblox.com/u/Paulo)
#### Post date: [January 8, 2025, 4:23pm UTC](https://forum.commonvisionblox.com/t/error-when-streaming-from-camera/2337/1 "2025-01-08T16:23:08Z")

</div>

I’m using a DALSA Liena 4K.  
I’m using CVB version 14.01.002, with Python 3.11.  
I’m trying to stream the camera but I can’t get the images. When I use the GenICam.vin driver I get the following error “ValueError: no converter available”. I tested it with CVMock.vin and got results, but since CVMock is just for testing I know that my problem is with the driver I’m using. However, I downloaded the Dalsa drivers and noticed that there is no specific one for this camera. Is there any way to use python with this model of camera?

I’ll leave the code below:

```auto
import cvb

install_path = cvb.install_path()

vin_device: cvb.Device = cvb.DeviceFactory.open(f"{install_path}\\drivers\\GenICam.vin")
#vin_device: cvb.Device = cvb.DeviceFactory.open(f {install_path}\\drivers\\CVMock.vin")

stream = vin_device.stream()

stream.start()

try:
    for i in range(0 ,10):
        image, status = stream.wait_for(1000)
        if status == cvb.WaitStatus.Ok:
            print("Acquired image " + str(i) + " into buffer " + str(image.buffer_index) + ".")
        else:
            raise RuntimeError("timeout during wait" if status == cvb.WaitStatus.Timeout else "acquisition aborted")
finally:
    stream.try_abort()

```

---

<div class="post-metadata">

### Author: ![Sebastian](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/sebastian/32/1267_2.png) [@Sebastian](https://forum.commonvisionblox.com/u/Sebastian)
#### Post date: [January 9, 2025, 1:34pm UTC](https://forum.commonvisionblox.com/t/error-when-streaming-from-camera/2337/2 "2025-01-09T13:34:28Z")

</div>

Hi @Paulo,  
It seems that you are using a PixelFormat in the camera which is not supported by the underlying converter of the GenICam.vin driver.

Which PixelFormat is selected in your camera, and can you use another one which works?

---

<div class="post-metadata">

### Author: ![Paulo](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@Paulo](https://forum.commonvisionblox.com/u/Paulo)
#### Post date: [January 9, 2025, 3:19pm UTC](https://forum.commonvisionblox.com/t/error-when-streaming-from-camera/2337/3 "2025-01-09T15:19:47Z")

</div>

Hi @Sebastian , thanks for replying.  
I’m using this pixel format BiColorRGB8

---

<div class="post-metadata">

### Author: ![Paulo](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@Paulo](https://forum.commonvisionblox.com/u/Paulo)
#### Post date: [January 9, 2025, 4:52pm UTC](https://forum.commonvisionblox.com/t/error-when-streaming-from-camera/2337/4 "2025-01-09T16:52:02Z")

</div>

Hello @Sebastian .  
I change to RGB8 and now i can access the buffer.

---

<div class="post-metadata">

### Author: ![Sebastian](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/sebastian/32/1267_2.png) [@Sebastian](https://forum.commonvisionblox.com/u/Sebastian)
#### Post date: [January 10, 2025, 8:30am UTC](https://forum.commonvisionblox.com/t/error-when-streaming-from-camera/2337/5 "2025-01-10T08:30:30Z")

</div>

Hi @Paulo,  
Then it is clear that we have a problem with the BiColorRGB8 PixelFormat which was also already confirmed by our development. We will work on fixing it. For now, you have to work with RGB8 and a reduced performance. I hope this is not a problem for you in the meantime.

---

<div class="post-metadata">

### Author: ![Paulo](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@Paulo](https://forum.commonvisionblox.com/u/Paulo)
#### Post date: [January 10, 2025, 9:02am UTC](https://forum.commonvisionblox.com/t/error-when-streaming-from-camera/2337/6 "2025-01-10T09:02:14Z")

</div>

I also checked that it works with the BGRa 8-Bit pixel format. I don’t think it’ll be a problem for now, what I’m going to try to do now is manipulate the images.
