Qt6 QtMultimedia : using custom gstreamer pipeline
-
Hi,
I am currently trying to port a video player I implemented using Qml/MediaPlayer from Qt 5.12 to 6.3. To that video player I used to pass a gstreamer pipeline by assigning 'gst-pipeline: ...' string to MediaPlayer.source property and it worked fine. However, I have been inspecting the source code of Qt 6.3 and it seems that 'gst-pipeline' protocol is not longer supported. The question here is, how could I use my custom gstreamer pipeline in Qt 6.3?
Thanks.
-
@Jojojoris Hi,
when you say you moved to FFMPEG, does that mean you stick to the default FFMPEG backend when using QT6 QML frontend or are you using FFMEG programmatically using ffmpeg's library directly?
Is it possible to share some code so this becomes clear?
Thanks -
I am also having the exact problem "gst-pipeline:<custom pipeline>" is not supporting in QtMultimedia in Qt6 but in Qt5 it works even though I have given "export QT_MEDIA_BACKEND=gstreamer" before executing the binary
Anybody please help...
-
@DeepakVishak As already written, custom GStreamer pipelines have been dropped in Qt 6.
-
@DeepakVishak
SGaist is right. custom GStreamer pipelines have been dropped in Qt 6 Multimedia, however you can achieve the same using qml6glsink.
Have a look at this example:
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/tree/1.24/subprojects/gst-plugins-good/tests/examples/qt6/qmlsink?ref_type=heads