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

qmlvideo example won't run in Raspberry pi 2



  • I am trying to play example qml video from qt5.5.1 in raspberry pi 2. I get the following error message.

    I have installed gstreamer 0.10 ad gstreamer1.0 libraries by searching through google.

    Please someone help about this error message.

    >$ ./qmlvideo 
    [9;0]Unable to query physical screen size, defaulting to 100 dpi.
    To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
    Cannot connect to server socket err = No such file or directory
    Cannot connect to server request channel
    jack server is not running or cannot be started
    qml: [qmlvideo] VideoItem.onError error 2 errorString Cannot play stream of type: <unknown>
    qml: [qmlvideo] Content.onFatalError
    Warning: "No decoder available for type 'video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3, profile=(string)constrained-baseline, codec_data=(buffer)0142e01effe100152742e01ea9181405ff2e00d418041adb0ad7bdf01001000428de09c8, width=(int)640, height=(int)360, framerate=(fraction)625/26, pixel-aspect-ratio=(fraction)1/1, parsed=(boolean)true'."
    
    

  • Qt Champions 2020

    you need also to install gst-plugins-good/ugly



  • Yeah I already installed gst plugins.Is any other dependency which is needed???



  • I have the following gstreamer plugins installed.

    :~/qml-projects $ dpkg -l | grep gstreamer
    ii  gir1.2-gstreamer-0.10                 0.10.36-1.5                               armhf        Description: GObject introspection data for the GStreamer library
    ii  gir1.2-gstreamer-1.0                  1.4.4-2                                   armhf        Description: GObject introspection data for the GStreamer library
    ii  gstreamer0.10-alsa:armhf              0.10.36-2                                 armhf        GStreamer plugin for ALSA
    ii  gstreamer0.10-gconf:armhf             0.10.31-3+nmu4                            armhf        GStreamer plugin for getting the sink/source information from GConf
    ii  gstreamer0.10-plugins-bad:armhf       0.10.23-7.4                               armhf        GStreamer plugins from the "bad" set
    ii  gstreamer0.10-plugins-base:armhf      0.10.36-2                                 armhf        GStreamer plugins from the "base" set
    ii  gstreamer0.10-plugins-good:armhf      0.10.31-3+nmu4                            armhf        GStreamer plugins from the "good" set
    ii  gstreamer0.10-plugins-ugly:armhf      0.10.19-2.1+b1                            armhf        GStreamer plugins from the "ugly" set
    ii  gstreamer0.10-tools                   0.10.36-1.5                               armhf        Tools for use with GStreamer
    ii  gstreamer0.10-x:armhf                 0.10.36-2                                 armhf        GStreamer plugins for X11 and Pango
    rc  gstreamer1.0-omx                      1.0.0.1-0+rpi18rpi1g                      armhf        GStreamer OpenMAX plugins
    ii  gstreamer1.0-plugins-bad:armhf        1.4.4-2.1rpi4rpi1g                        armhf        GStreamer plugins from the "bad" set
    ii  gstreamer1.0-plugins-base:armhf       1.4.4-2                                   armhf        GStreamer plugins from the "base" set
    ii  gstreamer1.0-plugins-good:armhf       1.4.4-2                                   armhf        GStreamer plugins from the "good" set
    ii  gstreamer1.0-plugins-ugly:armhf       1.4.4-2                                   armhf        GStreamer plugins from the "ugly" set
    ii  gstreamer1.0-x:armhf                  1.4.4-2                                   armhf        GStreamer plugins for X11 and Pango
    ii  libgstreamer-plugins-bad0.10-0:armhf  0.10.23-7.4                               armhf        GStreamer development files for libraries from the "bad" set
    ii  libgstreamer-plugins-bad1.0-0:armhf   1.4.4-2.1rpi4rpi1g                        armhf        GStreamer development files for libraries from the "bad" set
    ii  libgstreamer-plugins-base0.10-0:armhf 0.10.36-2                                 armhf        GStreamer libraries from the "base" set
    ii  libgstreamer-plugins-base0.10-dev     0.10.36-2                                 armhf        GStreamer development files for libraries from the "base" set
    ii  libgstreamer-plugins-base1.0-0:armhf  1.4.4-2                                   armhf        GStreamer libraries from the "base" set
    ii  libgstreamer0.10-0:armhf              0.10.36-1.5                               armhf        Core GStreamer libraries and elements
    ii  libgstreamer0.10-dev                  0.10.36-1.5                               armhf        GStreamer core development files
    ii  libgstreamer1.0-0:armhf               1.4.4-2                                   armhf        Core GStreamer libraries and elements
    ii  libgstreamer1.0-dev                   1.4.4-2                                   armhf        GStreamer core development files
    ii  libreoffice-avmedia-backend-gstreamer 1:4.3.3-2+rpi3                            armhf        GStreamer backend for LibreOffice
    
    

    When I try the qmlvideo example, I get the following error message.

    $ ./qmlvideo 
    [9;0]Unable to query physical screen size, defaulting to 100 dpi.
    To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
    Cannot connect to server socket err = No such file or directory
    Cannot connect to server request channel
    jack server is not running or cannot be started
    qml: [qmlvideo] VideoItem.onError error 2 errorString Cannot play stream of type: <unknown>
    qml: [qmlvideo] Content.onFatalError
    Warning: "No decoder available for type 'video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3, profile=(string)constrained-baseline, codec_data=(buffer)0142e01effe100152742e01ea9181405ff2e00d418041adb0ad7bdf01001000428de09c8, width=(int)640, height=(int)360, framerate=(fraction)625/26, pixel-aspect-ratio=(fraction)1/1, parsed=(boolean)true'."
    qrc:///qml/qmlvideo/Scene.qml:42: TypeError: Cannot read property of null
    
    

    I wonder if qml is not linking correctly to the installed gstreamer plugins. Where would be gstreamer plugins installed?


Log in to reply