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. QCamera (auto) exposure/focus settings
Forum Updated to NodeBB v4.3 + New Features

QCamera (auto) exposure/focus settings

Scheduled Pinned Locked Moved Unsolved General and Desktop
21 Posts 4 Posters 8.5k 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #11

    Do you know whether that camera provides a RGB or YUV stream ?

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

    X 1 Reply Last reply
    0
    • SGaistS SGaist

      Do you know whether that camera provides a RGB or YUV stream ?

      X Offline
      X Offline
      xtingray
      wrote on last edited by
      #12

      @SGaist Not sure how to answer your question, but this is all the info I could get from the manufacturer:
      http://www.geniusnet.com/Genius/wSite/ct?xItem=53156&ctNode=161


      Qt Developer

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

        Do you mind building a custom QtMultimedia with two patches to test that ?

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

        X 1 Reply Last reply
        0
        • SGaistS SGaist

          Do you mind building a custom QtMultimedia with two patches to test that ?

          X Offline
          X Offline
          xtingray
          wrote on last edited by
          #14

          @SGaist Not at all. If you can give me the building instructions to follow I can do it :)


          Qt Developer

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

            You can clone QtMultimedia from here and checkout the branch matching your current Qt.

            Then:
            git fetch https://codereview.qt-project.org/qt/qtmultimedia refs/changes/04/156204/5 && git format-patch -1 --stdout FETCH_HEAD > yuv422.patch
            git fetch https://codereview.qt-project.org/qt/qtmultimedia refs/changes/45/156845/2 && git format-patch -1 --stdout FETCH_HEAD > yuv422_avcamera.patch

            That will give you two patches that you can apply with:
            patch -p1 -i yuv422.patch and patch -p1 -i yuv422_avcamera.patch.

            If you have trouble compiling QtMultimedia from git, you can also grab the sources from the installer and just apply the two patches on them. It shouldn't be problematic.

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

            X 1 Reply Last reply
            0
            • SGaistS SGaist

              You can clone QtMultimedia from here and checkout the branch matching your current Qt.

              Then:
              git fetch https://codereview.qt-project.org/qt/qtmultimedia refs/changes/04/156204/5 && git format-patch -1 --stdout FETCH_HEAD > yuv422.patch
              git fetch https://codereview.qt-project.org/qt/qtmultimedia refs/changes/45/156845/2 && git format-patch -1 --stdout FETCH_HEAD > yuv422_avcamera.patch

              That will give you two patches that you can apply with:
              patch -p1 -i yuv422.patch and patch -p1 -i yuv422_avcamera.patch.

              If you have trouble compiling QtMultimedia from git, you can also grab the sources from the installer and just apply the two patches on them. It shouldn't be problematic.

              X Offline
              X Offline
              xtingray
              wrote on last edited by
              #16

              @SGaist Hi, following your instructions I downloaded the git branch corresponding to my Qt version (5.6), applied the patches and finally, compiled the whole source code with no issues (qmake and then make).

              Now, what should I do with the content of this "qtmultimedia" folder?

              PS: I am running my tests on a Mac system.


              Qt Developer

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

                You need to call make install, that will replace your current QtMultimedia. Then you only have to re-build your application, it should use the new available format if possible (just double check that's indeed the case)

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

                X 1 Reply Last reply
                0
                • SGaistS SGaist

                  You need to call make install, that will replace your current QtMultimedia. Then you only have to re-build your application, it should use the new available format if possible (just double check that's indeed the case)

                  X Offline
                  X Offline
                  xtingray
                  wrote on last edited by
                  #18

                  @SGaist Just one question before continuing: Should I make a backup copy of some directory of my current Qt (official) installation? I don't want to break something :S


                  Qt Developer

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

                    It shouldn't break anything but you can copy your QtMultimedia.framework as well as the mediaservices plugin folder.

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

                    X 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      It shouldn't break anything but you can copy your QtMultimedia.framework as well as the mediaservices plugin folder.

                      X Offline
                      X Offline
                      xtingray
                      wrote on last edited by
                      #20

                      @SGaist Sorry for my delay. I was busy working on my latest release.

                      Now that I had some time to run the test, I must say that I couldn't detect any difference in my camera behavior after installing the new version of the QtMultimedia module. The blinking effect remains.

                      Initially, I was expecting to run my tests on my Mac system. Unfortunately, I couldn't work with the Qt 4.6 version due to some qmake bug I found when I was trying to compile my project, so I decided to try the whole thing from my Linux box.

                      This is the output I got before compiling:

                      # qmake
                      Checking for openal... no
                      Checking for alsa... yes
                      Checking for pulseaudio... yes
                      Checking for gstreamer... yes
                      Checking for gstreamer_photography... no
                      Checking for gstreamer_encodingprofiles... yes
                      Checking for gstreamer_appsrc... yes
                      Checking for linux_v4l... yes
                      Checking for resourcepolicy... no
                      Checking for gpu_vivante... no
                      

                      Not sure if this test doesn't have any sense in Linux. Please, let me know if there are another tests related to the webcam management I could run.


                      Qt Developer

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

                        From a quick look at the gstreamer plugin sources, I can't tell if you'll be using that format. You have to check that.

                        At least since GStreamer 1.0 the format is available (see the qgstutils.cpp file)

                        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

                        • Login

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