QML MediaPlayer. Custom source for gst-pipeline
-
On android you will have to build it yourself. There are instructions on the GStreamer site for that if memory serves well.
QtGStreamer bindings have been deprecated and unmaintained since a long time. They have replaced them with the qmlgl plugin.
As for your pipeline issue, the message is giving suggestions on how to fix it.
-
That message:
@Ms-J said in QML MediaPlayer. Custom source for gst-pipeline:
Warning: "Pipeline construction is invalid, please add queues."
Does your pipeline work properly on the command line ?
-
That message:
@Ms-J said in QML MediaPlayer. Custom source for gst-pipeline:
Warning: "Pipeline construction is invalid, please add queues."
Does your pipeline work properly on the command line ?
@SGaist I got the same corrupted video from command line :(
this is my command "gst-pipeline: udpsrc port=5000 ! h264parse ! avdec_h264 ! videoconvert ! autovideosink" for receive camera streamer. i searched and nothing helpfull found for that.
command line message:
Not enough buffering available for the processing deadline of 0:00:00.015000000, add enough queues to buffer 0:00:00.015000000 additional data. Shortening processing latency to 0:00:00.000000000.
any suggestion to improve pipelines for better preview?
thank you in advance. -
Add debugging to your pipeline, it may give you some more information about what is going on.
-
Add debugging to your pipeline, it may give you some more information about what is going on.
-
On android you will have to build it yourself. There are instructions on the GStreamer site for that if memory serves well.
QtGStreamer bindings have been deprecated and unmaintained since a long time. They have replaced them with the qmlgl plugin.
As for your pipeline issue, the message is giving suggestions on how to fix it.
-
Did you already check the android platform notes for GStreamer ?
-
Did you already check the android platform notes for GStreamer ?
@SGaist yes i checked it.
i installed gstreamer-1.0 in my ubuntu and download video/android/gstreamer example.
when i want to build it for android (on ubuntu) i get following errors: :((Project ERROR: Unknown module(s) in QT: multimediagsttools-private
[Inexact] Project ERROR: Library 'libresourceqt5' is not defined.
main.cpp:82:5: error: use of undeclared identifier 'QGstUtils'
main.cpp:54:10: error: 'private/qgstutils_p.h' file not found.same problem: https://forum.qt.io/topic/122140/unknown-module-s-in-qt-multimediagsttools-private
Any advice is greatly appreciated.
-
As the platform notes says, to use the GStreamer backend on Androïd, you have to build the module yourself.
-
As the platform notes says, to use the GStreamer backend on Androïd, you have to build the module yourself.
-
At least the Qt multimedia module. You can already find pre-built versions of GStreamer for Androïd AFAIR.
I haven't built QtMultimedia to enable GStreamer for Androïd, but the basic are usually the same, use qmake, make, make install.
I would recommend backing up your current installation if something goes wrong.
And use out of source builds so you can experiment more easily.
-
@Ms-J hi and welcome to devnet,
Do you have the required GStreamer plugin package installed ?
@SGaist Hello, could you refer me to this Gstreamer plugin package?
I'm trying the following qml:
MediaPlayer{ id: playVideo source: "gst-pipeline: videotestsrc ! autovideosink" videoOutput: videoOutput } VideoOutput{ id: videoOutput anchors.fill: parent }
But as soon as the component is loaded I get this message:
qt.multimedia.player: Unable to set the pipeline to the paused state.And I cannot visualize the pipeline. I tried using a generic video as source in the MediaPlayer component instead of a pipeline and it works.