# ValueError: Invalid Output resolution 1920x0

**URL:** <https://discuss.pynq.io/t/valueerror-invalid-output-resolution-1920x0/5074>\
**Category:** Support\
**Created:** [January 2, 2023, 12:44pm UTC](https://discuss.pynq.io/t/valueerror-invalid-output-resolution-1920x0/5074 "2023-01-02T12:44:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea\_nisco](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/andrea_nisco/32/4121_2.png) [@andrea\_nisco](https://discuss.pynq.io/u/andrea_nisco)\
**Post date:** [January 2, 2023, 12:44pm UTC](https://discuss.pynq.io/t/valueerror-invalid-output-resolution-1920x0/5074/1 "2023-01-02T12:44:54Z")

</div>

I am working on a Pynq z2 and my image is the 3.0.1, but I have faced this error also in 2.7.

When I try to run the default hdmi streaming pipeline from base overlay:

```auto
hdmi_in.configure()
hdmi_out.configure(hdmi_in.mode)

hdmi_in.start()
hdmi_out.start()

```

it gives me this error:

```auto
ValueError Traceback (most recent call last)
Input In [2], in <cell line: 2>()
      1 hdmi_in.configure()
----> 2 hdmi_out.configure(hdmi_in.mode)
      4 hdmi_in.start()
      5 hdmi_out.start()

File /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/lib/video/hierarchies.py:263, in VideoOut.configure(self, mode, pixelformat)
    261 self._color.colorspace = pixelformat.out_color
    262 self._pixel.bits_per_pixel = pixelformat.bits_per_pixel
--> 263 self._hdmi.mode = mode
    264 self._vdma.writechannel.mode = mode
    265 self._hdmi.start()

File /usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/lib/video/dvi.py:142, in HDMIOutFrontend.mode(self, value)
    140 self._display.mode(_outputmodes[resolution])
    141 else:
--> 142 raise ValueError(
    143 "Invalid Output resolution {}x{}".format(value.width, value.height)
    144 )

ValueError: Invalid Output resolution 1920x0

```

I am sure I have connected the hdmi properly and they work fine when I try to stream my screen to another monitor. I also tried to run a streaming video but with USB webcam and it works, so the problem is the hdmi input. Is there anything I can do to solve this problem ? Is the board broken ?  
Just to mention that I’ve worked with base overlay one week ago and it started correctly, so I don’t understand where is the problem.

---

<div class="post-metadata">

**Author:** ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)\
**Post date:** [January 4, 2023, 8:25am UTC](https://discuss.pynq.io/t/valueerror-invalid-output-resolution-1920x0/5074/2 "2023-01-04T08:25:40Z")

</div>

It looks like the HDMI resolution is not being detected properly.

You coudl try checking this by printing:  
`hdmi_in.mode`  
after you run:  
`hdmi_in.configure()`  
However, I expect this will show: 1920x0

You could try manually setting hdmi out:  
hdmi\_out.configure(1920, 1080)

Have you tried a lower resolution? 1920x1080 on the PYNQ Z2 is a little outside the HDMI timing specification. It can sometimes work with some equipment but is not guaranteed.

Cathal
