Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. SoftwareContext and QML Camera
Forum Updated to NodeBB v4.3 + New Features

SoftwareContext and QML Camera

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
11 Posts 3 Posters 3.4k 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
    #2

    Hi,

    Might be a silly question but are you sure you are getting images with content from the camera ?

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

    ramnR 1 Reply Last reply
    0
    • SGaistS SGaist

      Hi,

      Might be a silly question but are you sure you are getting images with content from the camera ?

      ramnR Offline
      ramnR Offline
      ramn
      wrote on last edited by
      #3

      Hi @SGaist

      If I use QMainWindow (i.e., use widgets) along with QCamera and QCameraViewFinder, the camera works fine.
      If I switch to QML application, there is nothing on the screen. Please see the GStreamer output (GST_DEBUG=4) below.

      0:00:05.321409586   221   0x268600 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<camerabin> completed state change to PLAYING
      0:00:05.321595211   221   0x268600 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<camerabin> notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
      0:00:05.322469461   221   0x1d9860 INFO                 v4l2src gstv4l2src.c:830:gst_v4l2src_create:<camera_source> sync to 0:00:00.133333332 out ts 0:00:02.032928945
      
      0:00:05.368815919   221   0x1d9860 INFO                 v4l2src gstv4l2src.c:830:gst_v4l2src_create:<camera_source> sync to 0:00:00.166666665 out ts 0:00:02.097022611
      0:00:05.369229586   221   0x1d9860 WARN                 v4l2src gstv4l2src.c:849:gst_v4l2src_create:<camera_source> lost frames detected: count = 1 - ts: 0:00:02.097022611
      
      0:00:05.403758586   221   0x1d9860 INFO                 v4l2src gstv4l2src.c:830:gst_v4l2src_create:<camera_source> sync to 0:00:00.199999998 out ts 0:00:02.130178903
      0:00:05.436278003   221   0x1d9860 INFO                 v4l2src gstv4l2src.c:830:gst_v4l2src_create:<camera_source> sync to 0:00:00.233333331 out ts 0:00:02.165139987
      0:00:05.468890711   221   0x1d9860 INFO                 v4l2src gstv4l2src.c:830:gst_v4l2src_create:<camera_source> sync to 0:00:00.266666664 out ts 0:00:02.197661361
      0:00:05.503736086   221   0x1d9860 INFO                 v4l2src gstv4l2src.c:830:gst_v4l2src_create:<camera_source> sync to 0:00:00.299999997 out ts 0:00:02.230155986
      0:00:05.536265336   221   0x1d9860 INFO                 v4l2src gstv4l2src.c:830:gst_v4l2src_create:<camera_source> sync to 0:00:00.333333330 out ts 0:00:02.265127403
      0:00:05.568742294   221   0x1d9860 INFO                 v4l2src gstv4l2src.c:830:gst_v4l2src_create:<camera_source> sync to 0:00:00.366666663 out ts 0:00:02.297644903
      0:00:05.603719836   221   0x1d9860 INFO                 v4l2src gstv4l2src.c:830:gst_v4l2src_create:<camera_source> sync to 0:00:00.399999996 out ts 0:00:02.330132236
      0:00:05.636222086   221   0x1d9860 INFO                 v4l2src gstv4l2src.c:830:gst_v4l2src_create:<camera_source> sync to 0:00:00.433333329 out ts 0:00:02.365100945
      0:00:05.668740336   221   0x1d9860 INFO                 v4l2src gstv4l2src.c:830:gst_v4l2src_create:<camera_source> sync to 0:00:00.466666662 out ts 0:00:02.397607820
      

      Thanks again.

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

        If you start your widget application after your QML application, does it work correctly ?

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

        ramnR 1 Reply Last reply
        0
        • SGaistS SGaist

          If you start your widget application after your QML application, does it work correctly ?

          ramnR Offline
          ramnR Offline
          ramn
          wrote on last edited by
          #5

          @SGaist

          Sorry for the delayed reply. I don't need to run both the applications. I'm evaluating software rendering and is not working with QML multimedia.

          Thanks for your help!

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

            Are you thinking about using the Qt Quick 2D renderer ?

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

            D 1 Reply Last reply
            0
            • SGaistS SGaist

              Are you thinking about using the Qt Quick 2D renderer ?

              D Offline
              D Offline
              dzawisko
              wrote on last edited by
              #7

              @SGaist

              Hi SGaist,

              You asked:
              "Might be a silly question but are you sure you are getting images with content from the camera ?"

              I have got that problem with the QML Camera.

              I can make images and show images on the screen but I cannot see a video stream in the VideoOutput.
              The camera's LED lights like during normal work.

              Best Regards
              Darek

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

                Hi,

                Please give more information about your setup.

                Qt version
                OS version
                Camera type
                etc.

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

                D 1 Reply Last reply
                0
                • SGaistS SGaist

                  Hi,

                  Please give more information about your setup.

                  Qt version
                  OS version
                  Camera type
                  etc.

                  D Offline
                  D Offline
                  dzawisko
                  wrote on last edited by
                  #9

                  @SGaist

                  i.MX6ull
                  Yocto Rocko with a framebuffer
                  export DISPLAY=:0
                  export QMLSCENE_DEVICE=softwarecontext
                  export QT_QPA_PLATFORM=linuxfb
                  Qt 5.9.2
                  2 different type of the USB Camera (UVC) from Logitech

                  I have got a video output when I am using GStreamer from the command line, for example:
                  gst-launch-1.0 v4l2src device=/dev/video1 ! imxpxpvideosink

                  The problem is that I cannot use a GStreamer separate because the imxpxpvideosink doesn't have an overlay feature.
                  In that case, I have to use a QML Camera inside the Qt application.

                  Best Regards
                  Darek

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

                    Depending on what you need the QtGstreamer module might be interest.

                    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
                    • D Offline
                      D Offline
                      dzawisko
                      wrote on last edited by
                      #11

                      Thank you for your help.
                      I will check it.

                      Darek

                      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