Unsolved Qtmediaplayer and custom gstreamer pipeline
-
From what I gather in the documentation, something like:
gst-pipeline: filesrc location=input-file.mp4 ! qtdemux name=demux demux.video_0 ! h264parse ! omxh264dec ! queue max-size-bytes=0 ! kmssink bus-id=fd4a0000.zynqmp-display fullscreen-overlay=1
. You will likely have to fiddle a bit. Still based on the documentation, you should name your sinkqtvideosink
to make use of a QVideoWidget output. -
It gives invalid URI error. Qmediaplay uses playbin pipeline internally so we need to modify that somehow .
-
What version of Qt are you using ?
-
QT 5.11.3
-
Then upgrade your Qt version. As stated clearly in the documentation I linked to, it's a feature available since Qt 5.12.2.
-
@SGaist thanx for reply, i cannot upgrade qt as it comes as default package with the petalinux.
Can't we run custom gst-pipeline in 5.11.3 -
Would have to rebuild the GStreamer backend to fit your needs.
Unless you have special restrictions, you can have several Qt versions in parallel. They must be explicitly installed in different places though.
-
@SGaist thanx for replying.,
i have tried to use another version of QT and tried to cross-compile from the source available as qtopensource.. from qt site.
But i was not able to cross compile may i dont know exact way how to croos-compile Qt from source.So i am left with the default QT version provided with petalinux.
if you have any idea about cross compiling or procedure please help me, i'll try to cross compile another version.
And how this Gstreamer backend can be built to run gst custome pipeline under Qmediaplayer.
-
The procedure doesn't change between two Qt versions.
What errors did you get ?
The backend code can be found in the qtmultimedia module.
-
@SGaist I'll try to cross compile qt again and let you know the error .
Meanwhile can you please share any link where i can get the procedure about how to cross compile qt for zynq mpsoc devices.
Thanx. -