Unsolved Black and white video with Qt but not with VLC
-
Hi!
Firstly, sorry for my english, it's not my mother tongue.
I have an USB camera named DFx 41AU02 and I wan't to use it in a Qt program. When I get video with VLC I have colored image but not with Qt example camera (black and white image).
Do you know how to resolve this problem ? -
Hi and welcome to devnet,
What version of Qt are you using ?
What OS are you running ?
Are you using the Qt Camera example ? -
Qt 5.12 on Windows 10
Yes i use QCamera example -
Do you get the same issue if you use a Windows application with your camera ?
Qt uses the DirectShow backend IIRC for camera acquisition. -
No, when I use VLC or the manufacturer's software, I have no problems.
Maybe it comes from the video format because with the manufacturer's software when I set the video format to Y800, the image is in black and white
I tried to change the video format but it doesn't change anythingviewfinderSettings.setPixelFormat(QVideoFrame::Format_YUYV); m_camera->setViewfinderSettings(viewfinderSettings);
-
Camera use YUY2 video format and it doesn't seem to be managed by Qt
-
Are you using the widget based camera example ? If so try again with the QML camera example.