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. QML Camera doesn't work properly

QML Camera doesn't work properly

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 4 Posters 1.8k 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.
  • AlienA Offline
    AlienA Offline
    Alien
    wrote on last edited by
    #1

    Hello
    I run declarative-camera which is one of Qt examples on imx6q also set QT_GSTREAMER_CAMERABIN_VIDEOSRC value properly but the video freezed and below messages appear on screen whenever I try to unplug and plug the video connector again :

    ** CRITICAL **: gst_audio_format_from_string: assertion 'format != NULL' failed
    ERROR: v4l2 capture: slave not found!
    Unable to query the parameter info: QCameraImageProcessingControl::WhiteBalancePreset : "Invalid argument"
    Unable to query the parameter info: QCameraImageProcessingControl::ColorTemperature : "Invalid argument"
    Unable to query the parameter info: QCameraImageProcessingControl::ContrastAdjustment : "Invalid argument"
    Unable to query the parameter info: QCameraImageProcessingControl::SaturationAdjustment : "Invalid argument"
    Unable to query the parameter info: QCameraImageProcessingControl::BrightnessAdjustment : "Invalid argument"
    Unable to query the parameter info: QCameraImageProcessingControl::SharpeningAdjustment : "Invalid argument"
    ERROR: v4l2 capture: unsupported ioctrl!
    
    (Chopper:173): GStreamer-CRITICAL **: Registering meta implementation 'GstImxV4l2Meta' without init function
    ERROR: v4l2 capture: mxc_streamon buffer need ping pong at least two buffers
    ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0
    CameraBin error: "Internal data stream error."
    ERROR: v4l2 capture: unsupported ioctrl!
    
    

    The main problem is "mxc_streamon buffer need ping pong at least two buffers"
    When i run below command everything is right by gstreamer even I unplug and plug the video connector no matter how many time I do that :
    gst-launch-1.0 imxv4l2videosrc ! imxipuvideosink

    I appreciate any help

    Yours,

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

      Hi,

      What version of Qt are you using ?

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

      AlienA A 2 Replies Last reply
      0
      • SGaistS SGaist

        Hi,

        What version of Qt are you using ?

        AlienA Offline
        AlienA Offline
        Alien
        wrote on last edited by Alien
        #3

        Dear @SGaist ,
        I checked on two versions of QT :
        5.9.2 and 5.11.1
        they had same error.

        Is there any way to not to use qml Camera type and VideoOutput to use gstreamer pipeline directly and putting its sink on qml gui?

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          What version of Qt are you using ?

          A Offline
          A Offline
          adjexpress
          wrote on last edited by
          #4

          @SGaist
          hi i faced same error
          is there any solution

          Qt 5.15 EGLFS Raspberry Pi
          (all gstreamer plugins installed ... )

          1 Reply Last reply
          0
          • O Offline
            O Offline
            Oleg Borzov
            wrote on last edited by
            #5

            I have the same problem with ELP HD Usb camera. Probably the problem with the camera hardware, I think there is no WhiteBalance for example.
            You should get camera stream from Usb till qt library has fixed.

            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