Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Camera Recorder GStreamer missing a plug-in



  • Hi,

    I try to record a video from camera. I'm using no desktop (GL) . Here is the error

    (tes_camera:10874): GStreamer-WARNING **: 17:44:41.339: Name 'video-encodebin' is not unique in bin 'camerabin', not adding
    
    (tes_camera:10874): GStreamer-WARNING **: 17:44:41.339: Name 'videobin-filesink' is not unique in bin 'camerabin', not adding
    
    (tes_camera:10874): GStreamer-WARNING **: 17:44:41.339: Name 'image-encodebin' is not unique in bin 'camerabin', not adding
    
    (tes_camera:10874): GStreamer-WARNING **: 17:44:41.339: Name 'imagebin-filesink' is not unique in bin 'camerabin', not adding
    
    (tes_camera:10874): GStreamer-WARNING **: 17:44:41.339: Name 'viewfinderbin-queue' is not unique in bin 'camerabin', not adding
    CameraBin error: "Your GStreamer installation is missing a plug-in."
    

    Here is my code

    import QtQuick 2.12
    import QtQuick.Controls 2.12
    import QtMultimedia 5.8
    
    ApplicationWindow {
        visible: true
        width: 640
        height: 480
        title: qsTr("Hello World")
    
    
        Rectangle {
            id : myCamera
            width: 376
            height: 254
            color: "white"
    
                property alias record: camera.videoRecorder
                property alias camera: camera
    
            Camera {
                id: camera
                deviceId: QtMultimedia.availableCameras[1].deviceId
                captureMode: Camera.CaptureVideo
    
                videoRecorder {
                    resolution: "640x480"
                    frameRate: 30
                    mediaContainer: "mp4"
                }
    
            }
    
            VideoOutput {
                id: viewfinder
                visible: true
    
                x: 0
                y: 0
                anchors.fill: parent
                source: camera
                autoOrientation: true
            }
        }
    
        Button {
            id: button1
            x: 466
            y: 77
            text: qsTr("START")
            onClicked: {
                myCamera.record.record()
            }
        }
    
        Button {
            id: button
            x: 477
            y: 150
            text: qsTr("STOP")
    
            onClicked: {
                console.log("Done")
                myCamera.camera.stop()
            }
        }
    }
    
    

    I also try using declarative-camera example in qtmultimedia, to try recording but it's not working too.

    AL lib: (EE) ALCcaptureAlsa_open: Could not open capture device 'default': No such file or directory
    CameraBin error: "Could not open device."
    CameraBin error: "Internal data stream error."
    

    I think i already install gstreamer 1.0 plugins :

    libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad libgstreamer-plugins-bad1.0-dev gstreamer1.0-pulseaudio gstreamer1.0-tools gstreamer1.0-alsa
    
    gstreamer1.0-alsa is already the newest version (1.14.4-2).
    gstreamer1.0-plugins-bad is already the newest version (1.14.4-1+b1).
    gstreamer1.0-plugins-base is already the newest version (1.14.4-2).
    gstreamer1.0-plugins-ugly is already the newest version (1.14.4-1).
    gstreamer1.0-tools is already the newest version (1.14.4-1).
    libgstreamer-plugins-bad1.0-dev is already the newest version (1.14.4-1+b1).
    libgstreamer-plugins-base1.0-dev is already the newest version (1.14.4-2).
    libgstreamer1.0-dev is already the newest version (1.14.4-1).
    gstreamer1.0-plugins-good is already the newest version (1.14.4-1+rpt1).
    gstreamer1.0-pulseaudio is already the newest version (1.14.4-1+rpt1).
    

    Is there something that i missed? any help would be very apreciate!


  • Lifetime Qt Champion

    Hi,

    Since alsa is mentioned, did you try installing the GStreamer alsa package ?



  • Hi, thank you for your answer, this is gstreamer and alsa related installed

    apt list |grep gstream
    
    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
    
    baresip-gstreamer/stable 0.6.1-1 armhf
    deejayd-gstreamer/stable 0.10.0-6 all
    fso-deviced-player-gstreamer/stable 0.12.0-7 armhf
    gir1.2-gstreamer-0.10/testing 0.10.36-1.5 armhf
    gir1.2-gstreamer-1.0/stable,now 1.14.4-1 armhf [installed,automatic]
    gnome-twitch-player-backend-gstreamer-cairo/stable 0.4.1-3+b7 armhf
    gnome-twitch-player-backend-gstreamer-clutter/stable 0.4.1-3+b7 armhf
    gnome-twitch-player-backend-gstreamer-opengl/stable 0.4.1-3+b7 armhf
    gstreamer-qapt/stable 3.0.4-1 armhf
    gstreamer-tools/testing 0.10.36-1.5 armhf
    gstreamer0.10-alsa/testing 0.10.36-2 armhf
    gstreamer0.10-doc/testing 0.10.36-1.5 all
    gstreamer0.10-gnomevfs/testing 0.10.36-2 armhf
    gstreamer0.10-plugins-base-apps/testing 0.10.36-2 armhf
    gstreamer0.10-plugins-base-dbg/testing 0.10.36-2 armhf
    gstreamer0.10-plugins-base-doc/testing 0.10.36-2 all
    gstreamer0.10-plugins-base/testing 0.10.36-2 armhf
    gstreamer0.10-qapt/stable 3.0.4-1 all
    gstreamer0.10-tools/testing 0.10.36-1.5 armhf
    gstreamer0.10-x/testing 0.10.36-2 armhf
    gstreamer1.0-alsa/stable,now 1.14.4-2 armhf [installed]
    gstreamer1.0-clutter-3.0/stable 3.0.26-2 armhf
    gstreamer1.0-clutter/stable 2.0.18-1 armhf
    gstreamer1.0-doc/stable 1.14.4-1 all
    gstreamer1.0-dvswitch/stable 0.1.1-1 armhf
    gstreamer1.0-espeak/stable 0.5.0-1 armhf
    gstreamer1.0-fluendo-mp3/stable 0.10.32.debian-1 armhf
    gstreamer1.0-gl/stable,now 1.14.4-2 armhf [installed,automatic]
    gstreamer1.0-gnonlin-dbg/stable 1.4.0-2 armhf
    gstreamer1.0-gnonlin-doc/stable 1.4.0-2 all
    gstreamer1.0-gnonlin/stable 1.4.0-2 armhf
    gstreamer1.0-gtk3/testing 1.14.4-1+rpt1 armhf
    gstreamer1.0-libav-dbg/stable 1.15.0.1+git20180723+db823502-2 armhf
    gstreamer1.0-libav/stable 1.15.0.1+git20180723+db823502-2 armhf
    gstreamer1.0-nice/stable 0.1.14-1 armhf
    gstreamer1.0-omx-bellagio-config/testing 1.14.4-1+rpt1 armhf
    gstreamer1.0-omx-dbg/stable 1.0.0.1-0+rpi12+jessiepmg armhf
    gstreamer1.0-omx-generic-config/testing 1.14.4-1+rpt1 armhf
    gstreamer1.0-omx-generic-dbgsym/testing 1.14.4-1+rpt1 armhf
    gstreamer1.0-omx-generic/testing 1.14.4-1+rpt1 armhf
    gstreamer1.0-omx-rpi-config/testing 1.14.4-1+rpt1 armhf
    gstreamer1.0-omx-rpi-dbgsym/testing 1.14.4-1+rpt1 armhf
    gstreamer1.0-omx-rpi/testing 1.14.4-1+rpt1 armhf
    gstreamer1.0-omx/testing 1.14.4-1+rpt1 armhf
    gstreamer1.0-opencv/stable 1.14.4-1+b1 armhf
    gstreamer1.0-packagekit/stable 1.1.12-5 armhf
    gstreamer1.0-pipewire/stable 0.2.5-1 armhf
    gstreamer1.0-plugins-bad-dbg/stable 1.14.4-1+b1 armhf
    gstreamer1.0-plugins-bad-doc/stable 1.14.4-1 all
    gstreamer1.0-plugins-bad/stable,now 1.14.4-1+b1 armhf [installed]
    gstreamer1.0-plugins-base-apps/stable 1.14.4-2 armhf
    gstreamer1.0-plugins-base-dbg/stable 1.14.4-2 armhf
    gstreamer1.0-plugins-base-doc/stable 1.14.4-2 all
    gstreamer1.0-plugins-base/stable,now 1.14.4-2 armhf [installed]
    gstreamer1.0-plugins-good-dbg/testing 1.14.4-1+rpt1 armhf
    gstreamer1.0-plugins-good-doc/testing 1.14.4-1+rpt1 all
    gstreamer1.0-plugins-good/testing,now 1.14.4-1+rpt1 armhf [installed]
    gstreamer1.0-plugins-rtp/stable 1.14.4.1 armhf
    gstreamer1.0-plugins-ugly-dbg/stable 1.14.4-1 armhf
    gstreamer1.0-plugins-ugly-doc/stable 1.14.4-1 all
    gstreamer1.0-plugins-ugly/stable,now 1.14.4-1 armhf [installed]
    gstreamer1.0-pocketsphinx/stable 0.8+5prealpha+1-2+b2 armhf
    gstreamer1.0-pulseaudio/testing,now 1.14.4-1+rpt1 armhf [installed]
    gstreamer1.0-python3-dbg-plugin-loader/stable 1.14.4-1 armhf
    gstreamer1.0-python3-plugin-loader/stable 1.14.4-1 armhf
    gstreamer1.0-rtsp-dbg/stable 1.14.4-1 armhf
    gstreamer1.0-rtsp/stable 1.14.4-1 armhf
    gstreamer1.0-tools/stable,now 1.14.4-1 armhf [installed]
    gstreamer1.0-vaapi-doc/stable 1.14.4-1 all
    gstreamer1.0-vaapi/stable 1.14.4-1 armhf
    gstreamer1.0-x/stable,now 1.14.4-2 armhf [installed,automatic]
    libcanberra-gstreamer/stable 0.30-7 armhf
    libghc-tagstream-conduit-dev/stable 0.5.5.3-10+b1 armhf
    libghc-tagstream-conduit-doc/stable 0.5.5.3-10 all
    libghc-tagstream-conduit-prof/stable 0.5.5.3-10+b1 armhf
    libgstreamer-gl1.0-0/stable,now 1.14.4-2 armhf [installed,automatic]
    libgstreamer-ocaml-dev/stable 0.2.0-2+b3 armhf
    libgstreamer-ocaml/stable 0.2.0-2+b3 armhf
    libgstreamer-opencv1.0-0/stable,now 1.14.4-1+b1 armhf [installed,automatic]
    libgstreamer-plugins-bad1.0-0/stable,now 1.14.4-1+b1 armhf [installed,automatic]
    libgstreamer-plugins-bad1.0-dev/stable,now 1.14.4-1+b1 armhf [installed]
    libgstreamer-plugins-base0.10-0/testing 0.10.36-2 armhf
    libgstreamer-plugins-base0.10-dev/testing 0.10.36-2 armhf
    libgstreamer-plugins-base1.0-0/stable,now 1.14.4-2 armhf [installed,automatic]
    libgstreamer-plugins-base1.0-dev/stable,now 1.14.4-2 armhf [installed]
    libgstreamer0.10-0-dbg/testing 0.10.36-1.5 armhf
    libgstreamer0.10-0/testing 0.10.36-1.5 armhf
    libgstreamer0.10-dev/testing 0.10.36-1.5 armhf
    libgstreamer1-perl/stable 0.003-3 all
    libgstreamer1.0-0-dbg/stable 1.14.4-1 armhf
    libgstreamer1.0-0/stable,now 1.14.4-1 armhf [installed,automatic]
    libgstreamer1.0-dev/stable,now 1.14.4-1 armhf [installed]
    libgstreamerd-3-0/stable 3.8.5-1 armhf
    libgstreamerd-3-dev/stable 3.8.5-1 armhf
    libgstreamermm-1.0-1/stable 1.10.0+dfsg-2 armhf
    libgstreamermm-1.0-dev/stable 1.10.0+dfsg-2 armhf
    libgstreamermm-1.0-doc/stable 1.10.0+dfsg-2 all
    libqt5gstreamer-1.0-0/stable 1.2.0-5 armhf
    libqt5gstreamer-dev/stable 1.2.0-5 armhf
    libqt5gstreamerquick-1.0-0/stable 1.2.0-5 armhf
    libqt5gstreamerui-1.0-0/stable 1.2.0-5 armhf
    libqt5gstreamerutils-1.0-0/stable 1.2.0-5 armhf
    libreoffice-avmedia-backend-gstreamer/stable 1:6.1.5-3+rpi1+deb10u4 armhf
    mkchromecast-gstreamer/stable 0.3.8.1-1 all
    node-stringstream/stable 0.0.6-1 all
    phonon-backend-gstreamer-common/stable 4:4.9.0-1 armhf
    phonon-backend-gstreamer/stable 4:4.9.0-1 armhf
    phonon4qt5-backend-gstreamer/stable 4:4.9.0-1 armhf
    qml-module-qtgstreamer/stable 1.2.0-5 armhf
    qtgstreamer-doc/stable 1.2.0-5 all
    qtgstreamer-plugins-qt5/stable 1.2.0-5 armhf
    ruby-gstreamer/stable 3.3.2-1 armhf
    
    
    alsa-base/stable 1.0.27+1 all
    alsa-firmware-loaders/stable 1.1.7-1 armhf
    alsa-oss/stable 1.1.8-1 armhf
    alsa-tools-gui/stable 1.1.7-1 armhf
    alsa-tools/stable 1.1.7-1 armhf
    alsa-utils/stable,now 1.1.8-2 armhf [installed,automatic]
    alsamixergui/stable 0.9.0rc2-1-10 armhf
    alsaplayer-alsa/stable 0.99.81-2 armhf
    alsaplayer-common/stable 0.99.81-2 armhf
    alsaplayer-daemon/stable 0.99.81-2 armhf
    alsaplayer-gtk/stable 0.99.81-2 armhf
    alsaplayer-jack/stable 0.99.81-2 armhf
    alsaplayer-nas/stable 0.99.81-2 armhf
    alsaplayer-oss/stable 0.99.81-2 armhf
    alsaplayer-text/stable 0.99.81-2 armhf
    alsaplayer-xosd/stable 0.99.81-2 armhf
    balsa/stable 2.5.6-2 armhf
    bluealsa-dbgsym/testing 0.13 armhf
    bluealsa/testing 0.13 armhf
    cairo-dock-alsamixer-plug-in/stable 3.4.1-4+b7 armhf
    gstreamer0.10-alsa/testing 0.10.36-2 armhf
    gstreamer1.0-alsa/stable,now 1.14.4-2 armhf [installed]
    libalsa-ocaml-dev/stable 0.2.3-1+b1 armhf
    libalsa-ocaml/stable 0.2.3-1+b1 armhf
    libalsaplayer-dev/stable 0.99.81-2 armhf
    libalsaplayer0/stable 0.99.81-2 armhf
    libclalsadrv-dev/stable 2.0.0-3 all
    libclalsadrv2/stable 2.0.0-3 armhf
    libdssialsacompat-dev/stable 1.0.8a-1 armhf
    libdssialsacompat0/stable 1.0.8a-1 armhf
    libghc-alsa-core-dev/stable 0.5.0.1-5+b2 armhf
    libghc-alsa-core-doc/stable 0.5.0.1-5 all
    libghc-alsa-core-prof/stable 0.5.0.1-5+b2 armhf
    libghc-alsa-mixer-dev/stable 0.2.0.3-3+b2 armhf
    libghc-alsa-mixer-doc/stable 0.2.0.3-3 all
    libghc-alsa-mixer-prof/stable 0.2.0.3-3+b2 armhf
    libomxil-bellagio0-components-alsa/stable 0.1-2 armhf
    liboss4-salsa-asound2/stable 4.2-build2010-5+b3 armhf
    liboss4-salsa2/stable 4.2-build2010-5+b3 armhf
    libsnack-alsa/stable 2.2.10.20090623-dfsg-8 armhf
    libsox-fmt-alsa/stable 14.4.2+git20190427-1 armhf
    libzita-alsa-pcmi-dev/stable 0.2.0-4 armhf
    libzita-alsa-pcmi0/stable 0.2.0-4 armhf
    mkchromecast-alsa/stable 0.3.8.1-1 all
    mopidy-alsamixer/stable 1.1.1-1 all
    osspd-alsa/stable 1.3.2-11 armhf
    python-alsaaudio/stable 0.8.4-1 armhf
    python-pyalsa/stable 1.1.6-1+b1 armhf
    python3-alsaaudio/stable 0.8.4-1 armhf
    python3-pyalsa/stable 1.1.6-1+b1 armhf
    tuxguitar-alsa/stable 1.2-23 armhf
    volumeicon-alsa/stable 0.5.1+git20170117-1 armhf
    xmms2-plugin-alsa/stable 0.8+dfsg-18.2 armhf
    zita-alsa-pcmi-utils/stable 0.2.0-4 armhf
    
    

    I think i already installed all gstreamer package required?


  • Lifetime Qt Champion

    What version of Qt are you using ?



  • i'm using 5.12.5


  • Lifetime Qt Champion

    Self built ?



  • @SGaist yes i follow these tutorial. tutorial 1 , tutorial 2


  • Lifetime Qt Champion

    Did you check whether your build is using GStreamer 1 or 0.1 since you seem to have both installed ?



  • @SGaist How do i check it? and if one of it, what's the problem i both installed?


  • Lifetime Qt Champion

    You can find the information in the configure summary and also by running ldd on the plugin library.

    No problem with having both installed however it's better to know which one you are using for debugging your issue.


Log in to reply