<br><br><div class="gmail_quote"><div dir="ltr">On Tue, Jan 5, 2016, 1:31 PM  <<a href="mailto:hrojas@lacuatro.com.ar">hrojas@lacuatro.com.ar</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
         I am trying to develop a custom video filter plugin but I am<br>
getting an empty buffer in VideoFrame parameter.<br>
<br>
The code is as follows:<br>
<br>
     def do_transform_frame_ip(self, f):<br>
         try:<br>
             data = f.buffer.extract_dup(0, f.buffer.get_size())<br>
             bgr = numpy.ndarray((1080, 1920, 3), buffer=data,<br>
dtype=numpy.uint8)<br>
             print bgr.shape<br>
         except Exception as e:<br>
             print e</blockquote></div><div><br></div><div>Are you by chance using gst with ooencv?  This code looks familiar</div><div class="gmail_quote"></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
         return Gst.FlowReturn.OK<br>
<br>
VideoFrame metada is fine, but Buffer is None<br>
<br>
<br>
Testing with the following pipeline:<br>
(mysink is the example provided in gst-plugin source code)<br>
<br>
GST_DEBUG=python:6 gst-launch-1.0 filesrc<br>
location=/media/storage/videos/Mirch2.avi ! decodebin ! videoconvert !<br>
miplugin ! mysink<br>
Estableciendo el conducto a PAUSA ?<br>
El conducto está PREPARÁNDOSE ?<br>
libva info: VA-API version 0.38.1<br>
libva info: va_getDriverName() returns 0<br>
libva info: Trying to open /usr/X11/lib/dri/i965_drv_video.so<br>
libva info: Found init function __vaDriverInit_0_38<br>
libva info: va_openDriver() returns 0<br>
Got context from element 'vaapidecode': gst.vaapi.Display=context,<br>
gst.vaapi.Display=(GstVaapiDisplay)NULL;<br>
Redistribuir latencia?<br>
0:00:00.421544040 28703 0x7f0464005a80 ERROR                  libav :0::<br>
Context scratch buffers could not be allocated due to unknown size.<br>
<br>
<br>
Buffer is reaching OK at the method do_render() in mysink which<br>
implements BaseSink()<br>
<br>
Any help will be much appreciated.<br>
<br>
Hernando<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>