hello,

I have an problem, I can't play videos on QML on ubuntu 14.04. I have alreay try to build QT5.7 white gstreamer 1.0 but i have those errors.

Qt Code:
  1. #### QML Code ###
  2.  
  3. Rectangle{
  4. id:rectvideo
  5. width: rootrect.width
  6. height: rootrect.height
  7. MediaPlayer {
  8. id: mediaplayer
  9. source: Qt.resolvedUrl("file:///home/user/video1/video1.mp4")
  10. autoPlay: true
  11. loops: Animation.Infinite
  12. }
  13. VideoOutput {
  14. id: previewvid
  15. width: rootrect.width
  16. height: rootrect.height
  17. anchors.fill: parent
  18. source: mediaplayer
  19. visible: true
  20. }
  21. }
  22. ****
To copy to clipboard, switch view to plain text mode 


Qt Code:
  1. ###### MAIN #####
  2.  
  3. int main(int argc, char *argv[])
  4. {
  5. QApplication app(argc, argv);
  6. QQmlApplicationEngine engine;
  7.  
  8. controler contrInst;
  9. Camera *camInstMain = new Camera;
  10.  
  11. QQmlContext *ctx = engine.rootContext();
  12. [B] contrInst.start(); // thread[/B]
  13.  
  14. QObject::connect(&contrInst, SIGNAL(onIMEI_Cont(QString)), &restapiInst, SLOT(sendQueryGetIMEI(QString)));
  15. QObject::connect(&contrInst, SIGNAL(onPostImages_Cont(QString)), &restapiInst, SLOT(sendQueryPostImage(QString)));
  16. QObject::connect(&restapiInst, SIGNAL(signalRqApi(QStringList)), &contrInst, SLOT(apiRequest(QStringList)));
  17. QObject::connect(&contrInst, SIGNAL(onStartCapture(int)), camInstMain, SLOT(startCapture(int)));
  18. QObject::connect(&contrInst, SIGNAL(onStopCapture()), camInstMain, SLOT(stopCapture()));
  19.  
  20. ctx->setContextProperty("controler", &contrInst);
  21. [B] engine.rootContext()->setContextProperty("ProvedorImagem", camInstMain);
  22. engine.addImageProvider("provedor", camInstMain);[/B]
  23.  
  24. engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
  25. return app.exec();
  26. }
To copy to clipboard, switch view to plain text mode 
Qt Code:
  1. (recy-interface-FO:12010): GLib-GObject-WARNING **: g_object_set_valist: object class 'GstPlayBin' has no property named 'flags'
  2.  
  3. (recy-interface-FO:12010): GLib-GObject-WARNING **: /build/buildd/glib2.0-2.40.2/./gobject/gsignal.c:2462: signal 'video-changed' is invalid for instance '0x1dce1d0' of type 'GstPlayBin'
  4.  
  5. (recy-interface-FO:12010): GLib-GObject-WARNING **: /build/buildd/glib2.0-2.40.2/./gobject/gsignal.c:2462: signal 'audio-changed' is invalid for instance '0x1dce1d0' of type 'GstPlayBin'
  6.  
  7. (recy-interface-FO:12010): GLib-GObject-WARNING **: /build/buildd/glib2.0-2.40.2/./gobject/gsignal.c:2462: signal 'text-changed' is invalid for instance '0x1dce1d0' of type 'GstPlayBin'
  8.  
  9. (recy-interface-FO:12010): GLib-GObject-WARNING **: cannot register existing type 'GstObject'
  10.  
  11. (recy-interface-FO:12010): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
  12.  
  13. (recy-interface-FO:12010): GLib-GObject-CRITICAL **: g_type_register_static: assertion 'parent_type > 0' failed
  14.  
  15. (recy-interface-FO:12010): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
  16.  
  17. (recy-interface-FO:12010): GStreamer-CRITICAL **: gst_pad_get_current_caps: assertion 'GST_IS_PAD (pad)' failed
To copy to clipboard, switch view to plain text mode 
$ dpkg -l | grep gstream

ii gir1.2-gstreamer-0.10 0.10.36-1.2ubuntu3 amd64
ii gir1.2-gstreamer-1.0 1.2.4-0ubuntu1.1 amd64
ii gstreamer-tools 0.10.36-1.2ubuntu3 amd64
ii gstreamer0.10-alsa:amd64 0.10.36-1.1ubuntu2 amd64
ii gstreamer0.10-ffmpeg:amd64 0.10.13-5ubuntu1~trusty2.1 amd64
ii gstreamer0.10-fluendo-mp3:amd64 0.10.23.debian-3 amd64
ii gstreamer0.10-nice:amd64 0.1.4-1 amd64
ii gstreamer0.10-plugins-bad:amd64 0.10.23-7.2ubuntu1.3 amd64
ii gstreamer0.10-plugins-bad-multiverse 0.10.21-1ubuntu3 amd64
ii gstreamer0.10-plugins-base:amd64 0.10.36-1.1ubuntu2 amd64 GStreamer plugins from the "base" set
ii gstreamer0.10-plugins-base-apps 0.10.36-1.1ubuntu2 amd64 GStreamer helper programs from the "base" set
ii gstreamer0.10-plugins-good:amd64 0.10.31-3+nmu1ubuntu5 amd64 GStreamer plugins from the "good" set
ii gstreamer0.10-plugins-ugly:amd64 0.10.19-2ubuntu5 amd64 GStreamer plugins from the "ugly" set
ii gstreamer0.10-pulseaudio:amd64 0.10.31-3+nmu1ubuntu5 amd64 GStreamer plugin for PulseAudio
ii gstreamer0.10-tools 0.10.36-1.2ubuntu3 amd64 Tools for use with GStreamer
ii gstreamer0.10-x:amd64 0.10.36-1.1ubuntu2 amd64 GStreamer plugins for X11 and Pango
ii gstreamer1.0-alsa:amd64 1.2.4-1~ubuntu2 amd64 GStreamer plugin for ALSA
ii gstreamer1.0-clutter 2.0.8-1build1 amd64 Clutter PLugin for GStreamer 1.0
ii gstreamer1.0-libav:amd64 1.2.4-1~ubuntu1 amd64 libav plugin for GStreamer
ii gstreamer1.0-nice:amd64 0.1.4-1 amd64 ICE library (GStreamer plugin)
ii gstreamer1.0-plugins-bad:amd64 1.2.4-1~ubuntu1.1 amd64 GStreamer plugins from the "bad" set
ii gstreamer1.0-plugins-bad-faad:amd64 1.2.4-1~ubuntu1.1 amd64 GStreamer faad plugin from the "bad" set
ii gstreamer1.0-plugins-bad-videoparsers:amd64 1.2.4-1~ubuntu1.1 amd64 GStreamer videoparsers plugin from the "bad" set
ii gstreamer1.0-plugins-base:amd64 1.2.4-1~ubuntu2 amd64 GStreamer plugins from the "base" set
ii gstreamer1.0-plugins-base-apps 1.2.4-1~ubuntu2 amd64 GStreamer helper programs from the "base" set
ii gstreamer1.0-plugins-good:amd64 1.2.4-1~ubuntu1.4 amd64 GStreamer plugins from the "good" set
ii gstreamer1.0-plugins-ugly:amd64 1.2.3-2build1 amd64 GStreamer plugins from the "ugly" set
ii gstreamer1.0-pulseaudio:amd64 1.2.4-1~ubuntu1 amd64 GStreamer plugin for PulseAudio
ii gstreamer1.0-tools 1.2.4-0ubuntu1 amd64 Tools for use with GStreamer
ii gstreamer1.0-x:amd64 1.2.4-1~ubuntu2 amd64 GStreamer plugins for X11 and Pango
ii libgstreamer-plugins-bad0.10-0:amd64 0.10.23-7.2ubuntu1.3 amd64 GStreamer shared libraries from the "bad" set
ii libgstreamer-plugins-bad0.10-dev 0.10.23-7.2ubuntu1.3 amd64 GStreamer development files for libraries from the "bad" set
ii libgstreamer-plugins-bad1.0-0:amd64 1.2.4-1~ubuntu1.1 amd64
ii libgstreamer-plugins-bad1.0-dev 1.2.4-1~ubuntu1.1 amd64
ii libgstreamer-plugins-base0.10-0:amd64 0.10.36-1.1ubuntu2.1 amd64 GStreamer libraries from the "base" set
ii libgstreamer-plugins-base0.10-dev 0.10.36-1.1ubuntu2.1 amd64
ii libgstreamer-plugins-base1.0-0:amd64 1.2.4-1~ubuntu2.1 amd64
ii libgstreamer-plugins-base1.0-dev 1.2.4-1~ubuntu2.1 amd64
ii libgstreamer-plugins-good1.0-0:amd64 1.2.4-1~ubuntu1.4 amd64
ii libgstreamer-plugins-good1.0-dev 1.2.4-1~ubuntu1.4 amd64
ii libgstreamer0.10-0:amd64 0.10.36-1.2ubuntu3 amd64 Core GStreamer libraries and elements
ii libgstreamer0.10-dev 0.10.36-1.2ubuntu3 amd64 GStreamer core development files
ii libgstreamer1.0-0:amd64 1.2.4-0ubuntu1.1 amd64 Core GStreamer libraries and elements
ii libgstreamer1.0-dev 1.2.4-0ubuntu1.1 amd64 GStreamer core development files
ii libreoffice-avmedia-backend-gstreamer 1:4.2.8-0ubuntu4 amd64 GStreamer backend for LibreOffice