Is it possible to use a camera application in qt6 on the raspberry pi?
-
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 -
Hi,
Which version of Qt 6 are you using ?
Since 6.5, the ffmpeg backend has become the default and might yield better results. -
Hi,
Which version of Qt 6 are you using ?
Since 6.5, the ffmpeg backend has become the default and might yield better results.@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