Unsolved Set pixelformat of USB camera to MJPG
-
Hi all,
is it possible to set the pixelformat of a usb camera to MJPG?
At the moment the camera's pixelformat is YUVU.
I am using Ubuntu 16.Kind regards,
MHermann -
@MHermann
how is this related to Qt?! -
@raven-worx : The question is, if it is possible to do these settings out of a Qt application.
-
Hi,
Do you have any API to use with that camera that allows that change of settings ?
-
@SGaist : No. At the moment I don't have this...
-
What camera is that ?
-
@SGaist : Sorry for the late answer...
I am using a ELP-USBFHD01M-L170. -
One possible way is to use the
v4l2-ctl --set-fmt-video
command -
@SGaist : You mean starting the a separate process and then use v4l2-ctl --set-fmt-video?
-
That's just quick way to get you up and running.
You can try to get the QCameraCaptureBufferFormatControl from your QCamera object and see if you can modify what you want from there.
-
@SGaist : Ok. Thanks. I will check this.