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 743635 - plugins: add support for dma_buf exports (v4l2src)
plugins: add support for dma_buf exports (v4l2src)
Status: RESOLVED FIXED
Product: gstreamer-vaapi
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: gstreamer-vaapi maintainer(s)
gstreamer-vaapi maintainer(s)
Depends on: 735362
Blocks: 731852
 
 
Reported: 2015-01-28 10:58 UTC by Gwenole Beauchesne
Modified: 2015-01-28 16:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gwenole Beauchesne 2015-01-28 10:58:55 UTC
This is a follow-on to bug #735362 whereby supporting v4l2src is not going to work if the underlying V4L2 driver does not support DMABUF exports. There is another possible approach, since GStreamer 1.4, to allow for dma_buf exports from the downstream element, and importing that buffer in v4l2src element instead. This uses io-mode=dmabuf-import, and this needs to be explicitly requested for.

Ultimately, further dependencies to core GStreamer need to be added so that clear DMABUF capabilities/requirements are exposed either as capsfeatures or appropriate bufferpool options.
Comment 1 Gwenole Beauchesne 2015-01-28 16:39:52 UTC
commit 82fc406dfda4d477396c1396d0cf2d03b4417d6a
Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Date:   Mon Jan 26 18:30:47 2015 +0100

    plugins: add support for dma_buf exports (v4l2src).
    
    Allow v4l2src element to connected to vaapipostproc or vaapisink when
    "io-mode" is set to "dmabuf-import". In practice, this is a more likely
    operational mode with uvcvideo. Supporting v4lsrc with "io-mode" set
    to "dmabuf" could work, but with more demanding driver or kernel reqs.
    
    Note: with GStreamer 1.4, v4l2src (gst-plugins-good) needs to be built
    with --without-libv4l2.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=743635