Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Video frames from web camera cannot be decoded with newer Qt versions
Forum Update on Monday, May 27th 2025

Video frames from web camera cannot be decoded with newer Qt versions

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 180 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cristeab
    wrote on last edited by
    #1

    Hi
    I am decoding raw video frames from web camera with the following code

            QImage 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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What Windows version does that machine run ?
      What hardware is that ?
      Does it already fail for Qt 5.12.0 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cristeab
        wrote on last edited by cristeab
        #3

        Hi

        Thanks for your quick reply.

        OS is Windows 10 Pro, x64.
        The hardware is an ASUS Tek Notebook PC, Model TP300L.
        Qt 5.12.0 is working with our hardware, but not Qt 5.13.2

        Bogdan

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved