Discussion:
[Bug 760403] New: VideoFilter works with gst 1.5 but not 1.6
"GStreamer" (GNOME Bugzilla)
2016-01-10 18:00:41 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=760403

Bug ID: 760403
Summary: VideoFilter works with gst 1.5 but not 1.6
Classification: Platform
Product: GStreamer
Version: unspecified
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gst-python
Assignee: gstreamer-***@lists.freedesktop.org
Reporter: ***@gmail.com
QA Contact: gstreamer-***@lists.freedesktop.org
GNOME version: ---

#!/usr/bin/env python

from gi.repository import GObject, GstVideo, Gst, GstBase

GObject.threads_init()
Gst.init()


class TestFilter(GstVideo.VideoFilter):
""" A basic, buffer forwarding Gstreamer element """

#here we register our plugin details
__gstmetadata__ = (
"TeetFilter plugin",
"Generic",
"TestFilter is a filter",
"Test Author")

_srctemplate = Gst.PadTemplate.new('src',
Gst.PadDirection.SRC,
Gst.PadPresence.ALWAYS,
Gst.Caps.from_string("video/x-raw,format=I420"))

_sinktemplate = Gst.PadTemplate.new('sink',
Gst.PadDirection.SINK,
Gst.PadPresence.ALWAYS,
Gst.Caps.from_string("video/x-raw,format=I420"))

__gsttemplates__ = (_srctemplate, _sinktemplate)

def __init__(self):
GstVideo.VideoFilter.__init__(self)
self.set_passthrough(True)

def do_transform_frame_ip(self, inframe):
print("succes!!!")
return Gst.FlowReturn.OK

def do_set_info(self, incaps, in_info, outcaps, out_info):
return True

def plugin_init_testfilter(plugin):
t = GObject.type_register (TestFilter)
Gst.Element.register(plugin, "testfilter", 0, t)
return True

Gst.Plugin.register_static(Gst.VERSION_MAJOR, Gst.VERSION_MINOR, "testfilter",
"test filter plugin", plugin_init_testfilter, '1', 'LGPL', 'testfilter',
'testfilter', '')

#
# Simple Sink element created entirely in python
#
class TestVideoSink(GstBase.BaseSink):
__gstmetadata__ = ('TestVideoSink','Sink', \
'Custom test sink element', 'Edward Hervey')

__gsttemplates__ = Gst.PadTemplate.new("sink",
Gst.PadDirection.SINK,
Gst.PadPresence.ALWAYS,
Gst.Caps.new_any())

def do_render(self, buffer):
Gst.info("timestamp(buffer):%s" % (Gst.TIME_ARGS(buffer.pts)))
print("do_render")
return Gst.FlowReturn.OK

def plugin_init_testvideosink(plugin):
t = GObject.type_register(TestVideoSink)
Gst.Element.register(plugin, "testvideosink", 0, t)
return True

Gst.Element.register(None, "testvideosink", Gst.Rank.NONE, TestVideoSink)

if __name__ == '__main__':
filter = Gst.ElementFactory.make('testfilter')
sink = Gst.ElementFactory.make('testvideosink')

assert(filter)
assert(sink)
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2016-01-10 18:01:41 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=760403

***@gmail.com changed:

What |Removed |Added
----------------------------------------------------------------------------
Version|unspecified |1.6.1
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2016-01-10 18:04:04 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=760403

***@gmail.com changed:

What |Removed |Added
----------------------------------------------------------------------------
Summary|VideoFilter works with gst |VideoFilter works with gst
|1.5 but not 1.6 |1.4.5 but not 1.6
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2016-01-10 18:08:26 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=760403

--- Comment #1 from ***@gmail.com ---
The above test works on Ubuntu 15.04 with gstreamer 1.4.5 but not with Ubuntu
15.10 with 1.6.1.

On 1.6.1 I get:

(See next comment cuz Android sux at copy paste)
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2016-01-10 18:08:43 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=760403

--- Comment #2 from ***@gmail.com ---
python testfilter.py

(python:8202): GStreamer-WARNING **: Element factory metadata for 'testfilter'
has no valid long-name field

(python:8202): GStreamer-WARNING **: Element factory metadata for
'testvideosink' has no valid long-name field
Traceback (most recent call last):
File "testfilter.py", line 77, in <module>
assert(filter)
AssertionError
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
"GStreamer" (GNOME Bugzilla)
2018-11-03 15:36:54 UTC
Permalink
https://bugzilla.gnome.org/show_bug.cgi?id=760403

GStreamer system administrator <***@gstreamer.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |OBSOLETE

--- Comment #3 from GStreamer system administrator <***@gstreamer.net> ---
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been
closed from further activity.

You can subscribe and participate further through the new bug through this link
to our GitLab instance:
https://gitlab.freedesktop.org/gstreamer/gst-python/issues/6.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
Loading...