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?! -
@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 ?
-
What camera is that ?
-
One possible way is to use the
v4l2-ctl --set-fmt-video
command -
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.
-
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.