[Bug 732281] New: new element: inteldmabufupload
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Thu Jun 26 05:52:24 PDT 2014
https://bugzilla.gnome.org/show_bug.cgi?id=732281
GStreamer | gst-plugins-bad | git
Summary: new element: inteldmabufupload
Classification: Platform
Product: GStreamer
Version: git
OS/Version: Linux
Status: UNCONFIRMED
Severity: enhancement
Priority: Normal
Component: gst-plugins-bad
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: george.kiagiadakis at collabora.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
As part of my work implementing some experimental dmabuf support for
waylandsink, I have implemented an element that can upload video buffers to
dmabuf buffers allocated from the Intel DRM/PRIME stack.
The reason for creating this element was to test dmabuf support in waylandsink,
simply because I don't have any other hardware that can produce dmabuf buffers
and that I could use with GStreamer.
The element is based on GstBaseTransform. It provides a custom buffer pool,
which allocates buffer objects using libdrm_intel and exports them to dmabuf
objects. The GstMemory of those buffers is allocated from the
GstDmabufAllocator. This buffer pool is provided upstream, so either upstream
uses it and we have a zero-copy upload, or upstream doesn't use it, in which
case this element will copy the contents of the upstream buffers into these
dmabuf buffers.
The src caps are transformed to have a "memory:dmabuf" caps feature.
Example usage:
gst-launch-1.0 videotestsrc ! inteldmabufupload ! waylandsink
The code can be found in this branch:
http://cgit.collabora.com/git/user/gkiagia/gst-plugins-bad.git/log/?h=inteldmabufupload
Note that this element will obviously only work on systems with Intel GPUs and
it also requires booting a recent linux kernel with the drm.rnodes=1 option on
the kernel command line.
I am submitting this element because I feel it might seem useful to other
developers for testing as well. I don't know of any use case where it would be
useful for end users. Also note that waylandsink support for dmabuf is not
going to be merged at this point, because it is not standarized in wayland yet.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list