[Interest] Custom pipeline for QML MediaPlayer

Neuer User auslands-kv at gmx.de
Fri May 30 13:29:27 CEST 2014


Hi Yoann

See inline:

Am 30.05.2014 12:26, schrieb Lopes Yoann:
> On May 28, 2014, at 9:45 AM, Neuer User wrote:
>>
>> While the MediaPlayer in Qt5 is really great (especially with the new
>> zero-copy patch for imx6 in Qt5.3!), the "playbin" and "camerabin"
>> elements are not flexible enough and are not able to work with most IP
>> cams or with local analog video sources.
> 
> It should work with most IP cams and local analog video sources... Could you give more details about what doesn't work?
> 

IP cameras following the OnVif standard also publish a metadata stream,
which is not necessary for streaming video, but the playbin element
errors out on not finding a suitable decoder for this stream. Bug report
see here:  https://bugzilla.gnome.org/show_bug.cgi?id=730868

"Analog cams" (webcams, to be correct) I tested a couple of weeks back
and had very problematic results (took 5-10 seconds to initialize and
cgot a fps of 1 frame per 5 seconds). The pipeline built by the
"camerabin" element was very complex.

The video stream can normally easily be displayed with either "tvsrc !
mfw_v4lsink" or "v4l2src ! mf2_v4lsink", depending on type of camera.
You see, all of this is on imx6 platform.

I would need to go into testing again and build a detailed bug report
for the analog cam problem, but I thought it is much easier and also
much more flexible to go instead for the solution of having custom QML
pipelines in MediaPlayer.

>>
>> How difficult would it be to modify the MediaPlayer element, so that it
>> would accept custom gstreamer pipelines?
>>
>> I think this would be very helpful for Qt5. I would need it very urgent
>> and would be willing to sponsor such a development.
>>
>> What do you think? Anybody could help here?
> 
> Your best option is probably to modify the GStreamer backend in Qt to suit your needs.
> 
Btw. I opened a suggestion on Qt-Project
(https://bugreports.qt-project.org/browse/QTBUG-39327) with some more
details.

I think this would be a very useful addition to Qt5. I would be willing
to sponsor the development either partly or fully, depending on the
amount necessary.

Michael

> --
> Yoann
> 





More information about the Interest mailing list