Custom element in python
Felipe Ortiz
faortizc at gmail.com
Sat Feb 11 18:49:51 UTC 2017
Hi, I try to create a custom element using python inheriting from
GstBase.BaseTransform implementing do_transform() method, but when I launch
a pipeline with gst-launch-1.0 I see the following error:
$ gst-launch-1.0 filesrc location=/path/to/some_text_file ! print_tst !
fakesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
(gst-launch-1.0:13550): GStreamer-CRITICAL **: gst_mini_object_unref:
assertion 'mini_object != NULL' failed
And process never finish, I need to press Ctrl + c
To learn and test this I write a very simple element that receives a buffer
and print to stdout, the code is here
https://gist.github.com/fortizc/d67109eaa021f5ae9a7b72179f67a95b and to
write this I use as a model this element
https://github.com/GStreamer/gst-python/blob/master/examples/plugins/python/identity.py
The element works fine if I use do_transform_ip() instead do_transform()
but I need to modify the buffer and to do this use do_transform() seems to
be the only way.
Anyone has had the same problem?
Cheers
--
Felipe Ortiz C.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170211/86b785e8/attachment.html>
More information about the gstreamer-devel
mailing list