appsrc fed data python
Michael Gruner
michael.gruner at ridgerun.com
Sat Feb 22 11:34:52 PST 2014
Hi Troywang
I don't know if you are using the same GStreamer python binding as I am, but you need to set self.data as the GStreamer buffer data. I usually do that as:
src.emit('push-buffer', gst.Buffer(str(bytearray(self.data))))
Michael
On Feb 21, 2014, at 3:03 AM, troywang <troywang123 at gmail.com> wrote:
> hi all:
> I wanna using python gstreamer to do something。I use appsrc。
>
> appsrc.connect('need-data',need_data)
>
>
> def need_data(self,src, need_bytes):
> self.data = self.stream_queue.dequeue()
> src.emit('push-buffer', self.data)
>
>
> I wanna insert self.data into appsrc,But it told me needing Gst.buffer
> data,what should I do?
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/appsrc-fed-data-python-tp4665423.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list