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 Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 187 Views 1 Watching
  • 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 11 Nov 2019, 22:08 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 11 Nov 2019, 22:15 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 11 Nov 2019, 22:29 last edited by cristeab 11 Dec 2019, 18:45
        #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

        1/3

        11 Nov 2019, 22:08

        • Login

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