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. Black and white video with Qt but not with VLC
Forum Updated to NodeBB v4.3 + New Features

Black and white video with Qt but not with VLC

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 628 Views 2 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.
  • P Offline
    P Offline
    Poubelle2577
    wrote on last edited by
    #1

    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 ?

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

      Hi and welcome to devnet,

      What version of Qt are you using ?
      What OS are you running ?
      Are you using the Qt Camera example ?

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

      P 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        What version of Qt are you using ?
        What OS are you running ?
        Are you using the Qt Camera example ?

        P Offline
        P Offline
        Poubelle2577
        wrote on last edited by
        #3

        @SGaist

        Qt 5.12 on Windows 10
        Yes i use QCamera example

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

          Do you get the same issue if you use a Windows application with your camera ?
          Qt uses the DirectShow backend IIRC for camera acquisition.

          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
          1
          • P Offline
            P Offline
            Poubelle2577
            wrote on last edited by Poubelle2577
            #5

            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 anything

            viewfinderSettings.setPixelFormat(QVideoFrame::Format_YUYV);
            m_camera->setViewfinderSettings(viewfinderSettings);
            
            1 Reply Last reply
            0
            • P Offline
              P Offline
              Poubelle2577
              wrote on last edited by
              #6

              Camera use YUY2 video format and it doesn't seem to be managed by Qt

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

                Are you using the widget based camera example ? If so try again with the QML camera example.

                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
                1

                • Login

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