QMediaPlayer inside QGraphicsView with gstreamer
-
@Pl45m4
Qt6 does not have such a thing as videoItem.videoSurface(), therefore, the thread that you have pointed to does not help me.Downgrading version is out of question for me, I need several components that are available only in Qt6 (even though I have tried your solution in PySide2 and it appears to be working there, but it is of no use for me)
-
I have tried the solution you have pointed to and I get the same issue. I just get a gray window.
self.player.setSource(QUrl.fromLocalFile("1.mp4"))
works well
self.player.setSource(QUrl("gst-pipeline: videotestsrc ! autovideosink"))
does not workDowngrading to PySide2 does solve the issue, so I am not sure what is the issue, that does sort of imply that GStreamer works well, unless PySide6 and PySide2 requires different gstreamer plugins or something...
As I said however, using PySide2 is not a solution for me.
-
@SGaist
I have tested local files to confirm that I have been using widgets appropriately and also in order to try to identify source of the issue.I dont need local files, my ultimate intention is to use gstreamer pipeline, this was for testing only...
So are you telling me that there is no way for me to use gstreamer pipeline or are there any potential workarounds???
Theoretically I could use OpenCV to do all this, so all of this is not too much of an issue, but I still prefer using gstreamer if possible.... Is there no way?
-
@JokZiz1 check here.
https://forum.qt.io/topic/154489/simple-app-to-show-webcam-output-via-gstreamer-pipeline/6?_=1708034483864you can create a qml widget as sink and use gstreamer raw code to run a pipeline if you know gstreamer well.