# Processing can't find the camera - Video Libraries don't work

**URL:** <https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128>\
**Category:** Libraries\
**Created:** [November 2, 2020, 9:20am UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128 "2020-11-02T09:20:58Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![lfredericks](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@lfredericks](https://discourse.processing.org/u/lfredericks)\
**Post date:** [April 1, 2021, 6:51pm UTC](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128/23 "2021-04-01T18:51:58Z")

</div>

Thank you for coming up with a workaround to this it’s been driving me nuts.

autovideosrc defaults to yuyv, which is slow at higher resolutions. To get mjpeg, I used this pipeline:

`cam = new Capture(this, 1920, 1080, "pipeline: ksvideosrc device-index=0! image/jpeg, width=1920, height=1080, framerate=30/1 ! jpegdec ! videoconvert");`

I had to specify my resolution twice so that Processing and gstreamer were on the same page, but it might not be necessary in all cases.

---

_[View the full topic](https://discourse.processing.org/t/processing-cant-find-the-camera-video-libraries-dont-work/25128)._
