Video frames from web camera cannot be decoded with newer Qt versions
Unsolved
General and Desktop
-
Hi
I am decoding raw video frames from web camera with the following codeQImage image(input->bits(), input->width(), input->height(), QVideoFrame::imageFormatFromPixelFormat(input->pixelFormat())); if (image.isNull()) { qWarning() << "Cannot convert from pixel format"; }
where input is
QVideoFrame *input;
On one specific PC the above code works only with Qt 5.11.1 x64 MS Visual Studio 2017, with more recent versions (Qt 5.12.5 or qt 5.13.2) the Image after conversion is NULL. Does anyone knows why this happens ?
thanks
Bogdan -
Hi,
What Windows version does that machine run ?
What hardware is that ?
Does it already fail for Qt 5.12.0 ?