Gstreamer support for GPU codecs

Aaron Boxer boxerab at gmail.com
Sat May 14 16:25:40 UTC 2016


On Sat, May 14, 2016 at 3:41 AM, Sebastian Dröge <sebastian at centricular.com>
wrote:

> On Fr, 2016-05-13 at 08:34 -0400, Aaron Boxer wrote:
> > I have a question about how the streaming architecture works with GPU
> acceleration.
> >
> > Since discrete cards are sitting on the PCI bus, best performance
> happens when data is
> > moved to the card in a pipeline and the host gets notified when data has
> been processed
> > and moved back to the host.
> >
> > Also, it is sometimes more efficient to process N frames at a time.
> >
> > So, for best perf, the flow would be:
> >
> > A) host keeps a list of N host-side memory buffers
> > B) host waits for a host buffer to become available
> > C) when buffer is available, host copies memory into that buffer, and
> queues the buffer
> > to be copied over to the card
> > D) when N buffers have been processed, and copied back to host, the host
> receives an event
> > E) host can use the processed buffers, and when it is finished, that
> buffers becomes available
> > for another frame
> >
> > Would this workflow work with GStreamer?
>
> Yes, you just need to ensure that latency is reported accordingly by
> your element.
>


Thanks. So, you mean to update the time stamp on the frame?


>
> --
> Sebastian Dröge, Centricular Ltd · http://www.centricular.com
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160514/e26fb516/attachment.html>


More information about the gstreamer-devel mailing list