# Unable to set webcam camera video recording resolution \[LINUX\]

**URL:** <https://discourse.psychopy.org/t/unable-to-set-webcam-camera-video-recording-resolution-linux/41399>\
**Category:** Builder\
**Created:** [September 13, 2024, 1:56pm UTC](https://discourse.psychopy.org/t/unable-to-set-webcam-camera-video-recording-resolution-linux/41399 "2024-09-13T13:56:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ales](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@ales](https://discourse.psychopy.org/u/ales)\
**Post date:** [September 13, 2024, 1:56pm UTC](https://discourse.psychopy.org/t/unable-to-set-webcam-camera-video-recording-resolution-linux/41399/1 "2024-09-13T13:56:38Z")

</div>

**OS** : Linux, Ubuntu  
**PsychoPy version** (e.g. 1.84.x): 2024.2.1

I’m trying to use the camera component to record from a web cam. It successfully records video but the video is always 640x480. The camera is a 4k resolution and able to be used outside psychopy.

I’m using the opencv backend. The builder component resolution options in the dialog don’t seem to work. I tried editing the generated python script to change the intiliazition code from setting frameSize=None to frameSize=[1024,768] or frameSize=‘UHD’. However, when I do that the call to save the video hangs and it never writes anything to disk.

---

<div class="post-metadata">

**Author:** ![Natalia1](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/natalia1/32/44541_2.png) [@Natalia1](https://discourse.psychopy.org/u/Natalia1)\
**Post date:** [April 6, 2025, 2:29pm UTC](https://discourse.psychopy.org/t/unable-to-set-webcam-camera-video-recording-resolution-linux/41399/2 "2025-04-06T14:29:41Z")

</div>

Hello @ales, just wondering if you managed to have the responses form the video response component to have a sound file in them if data were collected on-line? If so, what did you do? Thanks
