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)
-
@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)
-
The function was renamed or replaced in Qt6 by
so try this instead. Might work if your GStreamer is setup correctly.
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.
-
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.
-
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.
-
@JokZiz1 Hi,
Custom GStreamer pipeline have been dropped in Qt 6. That said, the PySide6 version you have should be using the ffmpeg backend so it should be able to play mp4 files.
-
@JokZiz1 Hi,
Custom GStreamer pipeline have been dropped in Qt 6. That said, the PySide6 version you have should be using the ffmpeg backend so it should be able to play mp4 files.
@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?
-
@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?
-
@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?