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 745459 - v4l2: expose memory:DMABuf capsfeature
v4l2: expose memory:DMABuf capsfeature
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on: 759358
Blocks: 755072
 
 
Reported: 2015-03-02 14:39 UTC by Gwenole Beauchesne
Modified: 2018-11-03 14:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gwenole Beauchesne 2015-03-02 14:39:42 UTC
This is a follow-up to bug #743345 where it became apparent that some memory:dmabuf capsfeature could be useful for both negotiation purposes, but also probable optimization wins.

Though, the initial intent here is only to help negotiation of elements.
Comment 1 Gwenole Beauchesne 2015-03-02 14:57:39 UTC
This could be more involved than it seems as, in the ideal world, if downstream offers memory:dmabuf, it would be best for v4l2src to automatically elect for io-mode=dmabuf-import, instead of having to explicitly set that property.

Comments welcome.
Comment 2 Nicolas Dufresne (ndufresne) 2015-03-02 21:05:53 UTC
It could be nice to document through example pipelines the cases where you want the caps feature to be announce and how it will be useful to solve something we can't otherwise. A proposed solution to probe the HW for EXPBUF would also help.
Comment 3 Nicolas Dufresne (ndufresne) 2015-03-02 21:06:47 UTC
(or maybe you only care about the caps feature for DMABUF importation, memory:dmabuf caps feature has this ambiguity we need to consider)
Comment 4 Benjamin Gaignard 2015-08-30 09:05:18 UTC
You don't need to put dmabuf in the caps, it is an allocator, it should be selected at pool negotiation time.
You can iterate into pool possible allocators and decide to use dmabuf so you can set the correct io-mode.
Comment 5 Nicolas Dufresne (ndufresne) 2015-08-31 00:27:59 UTC
This statement is not entirely correct. The dmabuf caps feature can lead to different output videoformat being chosen by v4l2transform, it can also help certain auto-plugger cases. It's not just a matter of allocation.
Comment 6 Julien Isorce 2015-09-14 17:46:19 UTC
+1 for memory:dmabuf caps feature. I think the discussions about having this feature as derived here: https://bugzilla.gnome.org/show_bug.cgi?id=711155
Comment 7 Julien Isorce 2017-06-30 07:46:18 UTC
After gst wayland, vaapi and gl, isn't v4l2 turn ? :)
Comment 8 Nicolas Dufresne (ndufresne) 2017-06-30 12:10:14 UTC
Patch welcome of course. Though, it's not as trivial, I would do the exporter. First, the importer require several weeks of work.
Comment 9 GStreamer system administrator 2018-11-03 14:58:10 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/163.