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. Qt Camera example not working
Forum Updated to NodeBB v4.3 + New Features

Qt Camera example not working

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 3 Posters 870 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.
  • T Offline
    T Offline
    tech.hi
    wrote on last edited by
    #1

    Hi,
    I am using debian 10, Qt creator 4.8.2 based on qt 5.11.3

    While trying to build the code, The Application output is showing an error message,
    Unable to query the parameter info : "Inappropriate ioctl for device"
    Unable to query the parameter info : "Inappropriate ioctl for device"
    Unable to query the parameter info : "Inappropriate ioctl for device"
    Camerabin ERROR: "Failed to allocate memory"

    When i tried to record some video with Gstreamer commands the camera worked fine.
    Any idea how to solve this error?

    Thanks

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

      Hi,

      What device is that ?
      What GStreamer pipeline did you use ?

      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
      • T Offline
        T Offline
        tech.hi
        wrote on last edited by
        #3

        I am using ov5645 camera module and i tried in USB camera also. Both are showing the same error.

        Sorry i didnt understand what you mean by "what Gstreamer pipeline did you use" .
        Did you mean the command I used ??

        gst-launch-1.0 v4l2src device=/dev/videoX ! 'video/x-raw,format=UYVY,width=1920,height=1080' ! glimagesink

        I used the camera example program from this link https://github.com/qt/qtmultimedia.git .

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

          That's what I was asking.

          One thing you can try is to modify the pipeline from the GStreamer backend to use the same source as your command line version.

          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
          • T Offline
            T Offline
            tech.hi
            wrote on last edited by
            #5

            @sgaist How can I do that?

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

              Edit the files from the camera GStreamer plugin in Qt's sources and then rebuild it.

              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
              • V Offline
                V Offline
                VaL Doroshchuk
                wrote on last edited by
                #7

                @tech-hi said in Qt Camera example not working:

                gst-launch-1.0 v4l2src device=/dev/videoX ! 'video/x-raw,format=UYVY,width=1920,height=1080' ! glimagesink

                Does it work?

                What device do you use? Or is it desktop?

                you can run with GST_DEBUG=4 ./app
                and see gst errors, memory related?
                Can you see camera output in camera example?

                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