Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to run QCamera Example application in Embedded Linux i.MX6 platform?

How to run QCamera Example application in Embedded Linux i.MX6 platform?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
qt5.2.1qcamerai.mx6embedded linuxhow
17 Posts 5 Posters 9.8k 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.
  • A Offline
    A Offline
    ascnp
    wrote on 13 Sept 2016, 04:46 last edited by
    #8

    Hi,
    I'm working on playing video on rasp pi recently. Maybe most things are similar to camera, cause they both depend on multimedia and qdeclarative, hope my way will be helpful.

    First, you should not just copy the .so file to the multimedia dir. It will not work even the name is same. You should make the module and install it to multimedia dir. Here is the example of rasp pi.

    $ cd qt-everywhere-opensource-src-5.0.2/<module>
    $ /usr/local/Qt-5.0.2-raspberry/bin/qmake
    $ make
    $ sudo make install
    And the link: http://www.ics.com/blog/building-qt-5-raspberry-pi
    This may solve the error: "Camera error: "The camera service is missing"

    Second, you have to install gstreamer on you embedded device, or it will show the error "defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.camera".

    Hope it will be helpful.

    A 1 Reply Last reply 13 Sept 2016, 07:29
    0
    • A ascnp
      13 Sept 2016, 04:46

      Hi,
      I'm working on playing video on rasp pi recently. Maybe most things are similar to camera, cause they both depend on multimedia and qdeclarative, hope my way will be helpful.

      First, you should not just copy the .so file to the multimedia dir. It will not work even the name is same. You should make the module and install it to multimedia dir. Here is the example of rasp pi.

      $ cd qt-everywhere-opensource-src-5.0.2/<module>
      $ /usr/local/Qt-5.0.2-raspberry/bin/qmake
      $ make
      $ sudo make install
      And the link: http://www.ics.com/blog/building-qt-5-raspberry-pi
      This may solve the error: "Camera error: "The camera service is missing"

      Second, you have to install gstreamer on you embedded device, or it will show the error "defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.camera".

      Hope it will be helpful.

      A Offline
      A Offline
      Ajith_P_V
      wrote on 13 Sept 2016, 07:29 last edited by
      #9

      @ascnp Thank you very much for your support. I have put all the gstreamer libraries to my SD card and now I can able to run the QCamera with webcam (UVC USB Camera). Since, my actual camera make use of only IPU and not using any VPU encoding or decoding, the same application is hanging when I used it with OV5640 CMOS camera.
      Thanks again,
      Ajith P V

      1 Reply Last reply
      0
      • S SGaist
        12 Sept 2016, 19:43

        If you can make that camera work properly with gstreamer, you could modify the gstreamer backend of QtMultimedia and adapt the pipeline used.

        A Offline
        A Offline
        Ajith_P_V
        wrote on 13 Sept 2016, 07:45 last edited by
        #10

        @SGaist I'm afraid, I didn't get the point. Could you please elobarate a bit more regarding what I suppose to do.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 13 Sept 2016, 18:08 last edited by
          #11

          If you can get the image from your camera using gstreamer on the command line, you could modify the backend in QtMultimedia to match the pipeline used on the command line.

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

          A 1 Reply Last reply 14 Sept 2016, 05:40
          0
          • S SGaist
            13 Sept 2016, 18:08

            If you can get the image from your camera using gstreamer on the command line, you could modify the backend in QtMultimedia to match the pipeline used on the command line.

            A Offline
            A Offline
            Ajith_P_V
            wrote on 14 Sept 2016, 05:40 last edited by
            #12

            @SGaist May I know how to modify the backend in QtMultimedia to match the pipeline used on the command line, possibly with an example? I'm sorry if it is a basic question. But, I should tell here that, I'm not an expert in the gstreamer or QtMultimedia either.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 14 Sept 2016, 07:50 last edited by
              #13

              Didn't you cross-compile Qt 5 to run Qt on your device ?

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

              A 1 Reply Last reply 15 Sept 2016, 08:37
              0
              • S SGaist
                14 Sept 2016, 07:50

                Didn't you cross-compile Qt 5 to run Qt on your device ?

                A Offline
                A Offline
                Ajith_P_V
                wrote on 15 Sept 2016, 08:37 last edited by
                #14

                @SGaist I have used i.MX6 Yocto build with fsl-image-qt5. The backend from the bitbake I used is x11 (windowing system). The extra packages which are required for QCamera is extracted from bitbaking qtmultimedia.
                In this case, AFAIK, QCamera is accesiing the Qt media service plugins such as libgstcamerabin.so, libgstmediacapture.so etc. for doing it's operation and these libraries are by default directing to the VPU channel. I think this is happening because IPU YUV raw data can not be display directly to Qt without encode/decode.

                There must be a gap between our understanding on how to change the backend in QtMultimedia, however I will see how I can do that.
                Thank you :)
                Ajith P V

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 15 Sept 2016, 19:50 last edited by
                  #15

                  If you can tell Yocto where to take the sources for Qt, you could make it build your own copy where you can do modifications.

                  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
                    Daniel Nilsson
                    wrote on 14 Nov 2016, 18:26 last edited by
                    #16

                    I have the same problem, did you resolve it?

                    A 1 Reply Last reply 7 Dec 2020, 10:10
                    0
                    • D Daniel Nilsson
                      14 Nov 2016, 18:26

                      I have the same problem, did you resolve it?

                      A Offline
                      A Offline
                      adityaNatekar
                      wrote on 7 Dec 2020, 10:10 last edited by
                      #17

                      @Daniel-Nilsson did you get the solution to this?

                      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