Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is it possible to use a camera application in qt6 on the raspberry pi?
Qt 6.12 LTS is out! See what's new in the release blog

Is it possible to use a camera application in qt6 on the raspberry pi?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 1.1k 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.
  • S Offline
    S Offline
    SirBillyBobJoe
    wrote on last edited by SirBillyBobJoe
    #1

    I tried using the Qt6 multimedia camera example and crosscompile it to the pi but it wont detect the camera i get this problem. But its definitely trying to access the camera cause my camera is heating up. someone told me that compatibility between qt6 and gstreamer is still inconsistent. Is this true? if so would i need to restart my camera app in qt5? Ive also already installed these as well so i dont know whats wrong gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-pulseaudio

    risosltd@raspberrypi:~/RaspCam $ ./RaspCam
    
    [0:27:18.992896013] [1730] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
    
    ** (RaspCam:1730): CRITICAL **: 09:21:23.813: gst_alsa_device_new: assertion 'caps' failed
    
    (RaspCam:1730): GLib-GObject-WARNING **: 09:21:23.847: g_object_set_is_valid_property: object class 'GstQueue' has no property named '\u0007'
    
    [0:27:19.303299190] [1730] INFO Camera camera_manager.cpp:299 libcamera v0.0.4+22-923f5d70
    
    [0:27:19.350539757] [1742] INFO Camera camera.cpp:1028 configuring streams: (0) 4656x3496-MJPEG
    
    (RaspCam:1730): GLib-GObject-WARNING **: 09:21:24.072: specified instance size for type 'QGstSubtitleSink' is smaller than the parent type's 'GstBaseSink' instance size
    
    (RaspCam:1730): GStreamer-CRITICAL **: 09:21:24.073: gst_element_register: assertion 'g_type_is_a (type, GST_TYPE_ELEMENT)' failed
    
    (RaspCam:1730): GLib-GObject-CRITICAL **: 09:21:24.073: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
    
    (RaspCam:1730): GLib-GObject-CRITICAL **: 09:21:24.074: g_object_set: assertion 'G_IS_OBJECT (object)' failed
    
    (RaspCam:1730): GLib-GObject-WARNING **: 09:21:24.075: specified instance size for type 'QGstVideoRendererSink' is smaller than the parent type's 'GstVideoSink' instance size
    
    (RaspCam:1730): GStreamer-CRITICAL **: 09:21:24.075: gst_element_register: assertion 'g_type_is_a (type, GST_TYPE_ELEMENT)' failed
    
    (RaspCam:1730): GLib-GObject-CRITICAL **: 09:21:24.076: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
    
    (RaspCam:1730): GLib-GObject-WARNING **: 09:21:24.076: invalid (NULL) pointer instance
    
    (RaspCam:1730): GLib-GObject-CRITICAL **: 09:21:24.077: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Which version of Qt 6 are you using ?
      Since 6.5, the ffmpeg backend has become the default and might yield better results.

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

      V 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Which version of Qt 6 are you using ?
        Since 6.5, the ffmpeg backend has become the default and might yield better results.

        V Offline
        V Offline
        Vladyslav S.
        wrote on last edited by
        #3

        @SGaist it didnt get any better nor for 6.6 nor 6.7
        moreover, both backends ffmpeg and gstreamer doesnt works with csi cameras in RPi4 64

        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
        • Unsolved