After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 676509 - Port QtGStreamer to 1.0
Port QtGStreamer to 1.0
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: qt-gstreamer
unspecified
Other All
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-05-21 17:28 UTC by Josh Doe
Modified: 2014-12-29 18:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch serial to partially port qtgstreamer to 0.11 (61.92 KB, application/x-tar)
2012-06-11 16:54 UTC, Joshua M. Doe
Details

Description Josh Doe 2012-05-21 17:28:54 UTC
Found one mention of porting QtGStreamer to 0.11/1.0 here:
http://gkiagia.wordpress.com/2012/02/09/introducing-qtvideosink-gstreamer-meets-qml/

With a partial port (of just qtvideosink, none of the actual bindings) here:
http://cgit.collabora.com/git/user/gkiagia/libqtgstreamer.git/log/?h=qtvideosink-0.11

Anyone planning to port this? Any idea how much work will be involved? I've got almost no experience with C++ templates, so not sure how much help I'll be, unless our next project settles on using these bindings.
Comment 1 George Kiagiadakis 2012-05-21 19:28:48 UTC
Planning, of course, but not sure when. Unfortunately, I'm the only one who touches that code :/

So, let me briefly explain the situation here. QtGStreamer is currently implmented as static bindings. It was done like this because g-i did not work very well with 0.10 and also my time was limited to research creating a g-i based generator. Also, despite being advertised as Qt bindings, it is not *really* Qt bindings, it is rather C++ bindings with a Qt-style API, utilizing a minimal set of Qt's classes, just to provide some minimal integration with Qt.

Also, QtGStreamer consists of two parts: QtGLib, which is the base layer that binds GObject, and QtGStreamer, which is the static GStreamer bindings built on top of QtGLib. In the beggining, QtGLib was meant to be used only by QtGStreamer and it was designed to contain only the features that QtGStreamer would need. However, other projects popped up later, such as telepathy-logger-qt, which use QtGLib but not QtGStreamer.

To add to all this, together with GStreamer breaking its API/ABI, there is also Qt doing that in parallel with Qt5.

Picking up the pieces now... The target is of course to port QtGStreamer to 0.11/1.0, but by doing that we have the opportunity to break the API/ABI. So, I am hoping to be able to use this opportunity to do as much as possible of the following:

- Create an automatic g-i based generator, now that 0.11/1.0 works better with g-i (or at least, it is supposed to; I haven't checked its status since January).
- Integrate certain things better with Qt. The smoke-gobject project has provided a lot of interesting ideas and I have collected some notes at [1].
- Split QtGLib out of QtGStreamer.
- Port to Qt5 and ensure that the codebase builds with both Qt4 and Qt5 (they are mostly API-compatible, so maintaining a single codebase is not impossible and many projects, including QtCreator itself, are doing this). This may actually just require build system adjustments.

I hope I will be able to start this work during the summer, but of course I can't guarantee that I will be free of other work and I can't estimate when this work will be finished. Any help is obviously welcome.

[1]. http://gstreamer.freedesktop.org/wiki/QtGStreamer/QtGLibResearch
Comment 2 Josh Doe 2012-05-22 10:39:19 UTC
Thanks for the detailed explanation, it seems like your plan is very sound in the long term. I'd be happy to help, however I'm not familiar enough with the technologies employed (especially g-i) to get this effort started. 0.11/1.0 is more important to us than anything else right now, and we will be getting started sooner rather than later, so we'll likely either forgo using QtGStreamer or do a naive port using the current design.
Comment 3 Josh Doe 2012-06-01 18:57:44 UTC
I've done a rudimentary port following the current static binding method. I'll attach it here at a later point. If anyone's especially interested let me know and I'll do so sooner than I would otherwise. The exercise definitely leads me to believe a dynamic approach would be better.
Comment 4 Joshua M. Doe 2012-06-11 16:54:16 UTC
Created attachment 216135 [details]
patch serial to partially port qtgstreamer to 0.11

All manual and some auto tests run fine, but any subclasses of MiniObject throw an assertion regarding a missing wrapper constructor. I'll have to come back to this later, or hopefully George or someone else can enlighten me as to what I'm doing wrong (probably many things!). Most of these commits should be squashed into one, but it's probably more informative to leave them separate for now.
Comment 5 David E. Narvaez 2013-03-15 17:30:59 UTC
https://bugzilla.gnome.org/show_bug.cgi?id=695934
Comment 6 Tim-Philipp Müller 2014-12-29 17:39:03 UTC
Is this still relevant, master is 1.0 already, no?
Comment 7 George Kiagiadakis 2014-12-29 18:35:00 UTC
Correct, this is "fixed"