[Bug 753591] vaapi: encoders: implement "direct-uploading"

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Oct 21 18:17:11 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=753591

--- Comment #9 from Josep Torra Valles <n770galaxy at gmail.com> ---
I can't reach github now but I did the following change:

diff --git a/gst/vaapi/gstvaapipluginbase.c b/gst/vaapi/gstvaapipluginbase.c
index 7b39d34..8ce5e38 100644
--- a/gst/vaapi/gstvaapipluginbase.c
+++ b/gst/vaapi/gstvaapipluginbase.c
@@ -535,7 +535,7 @@ ensure_sinkpad_allocator (GstVaapiPluginBase * plugin,
GstVideoInfo * vinfo)

     if (gst_caps_is_video_raw (plugin->sinkpad_caps)) {
       usage_flag = GST_VAAPI_IMAGE_USAGE_FLAG_DIRECT_UPLOAD;
-      alloc_flag = GST_VAAPI_SURFACE_ALLOC_FLAG_LINEAR_STORAGE;
+      //alloc_flag = GST_VAAPI_SURFACE_ALLOC_FLAG_LINEAR_STORAGE;
       GST_INFO_OBJECT (plugin, "enabling direct upload in sink allocator");
     }


It almost doubles encoder performance.

Being able to stream 2x4K at 28 and 3x4K at 22 when without it I can just 1x4K at 28 in
my hardware without using LP mode. I can't test LP Mode yet because the gpu
hangs.

-- 
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