Qt6 QtMultimedia : using custom gstreamer pipeline
-
Hi and welcome to devnet,
To the best of my knowledge you would have to use GStreamer directly with their QML sink.
-
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.
-
@ACF87 Hi,
Did you manage to solve this issue?
I have exact same problem and Tried different approaches with no success yet.
Thxwrote on 23 Jun 2023, 15:00 last edited byThis post is deleted! -
wrote on 23 Jun 2023, 15:07 last edited by
I moved to the ffmpeg pipeline as their defaults work acceptable in my application.
-
wrote on 23 Jun 2023, 15:41 last edited by
@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 -
@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?
Thankswrote on 1 Feb 2024, 15:58 last edited by@malikcis
you can try
https://doc.qt.io/qt-6/qtmultimedia-index.html#changing-backends
export QT_MEDIA_BACKEND=ffmpeg -
wrote on 10 Mar 2024, 13:50 last edited by
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...
-
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 As already written, custom GStreamer pipelines have been dropped in Qt 6.
wrote on 11 Mar 2024, 02:28 last edited by@SGaist
Hi thank you so much for your response
Suppose If I want to implement gstreamer pipeline in qt6 is there any way to do soo
I am just looking for possibilities -
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...
wrote on 12 Mar 2024, 16:27 last edited by@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