Using do_transform_frame in GstVideo.VideoFilter (python)
dpw157
dinethw04 at gmail.com
Tue Mar 27 21:22:54 UTC 2018
hey,
so here is some minimal code that may explain my issue.
class GstTimestamp(GstVideo.VideoFilter):
__gstmetadata__ = ('<longname>', '<classification>',
'<description>', '<author>')
__gsttemplates__ = (Gst.PadTemplate.new("sink",
Gst.PadDirection.SINK,
Gst.PadPresence.ALWAYS,
Gst.Caps.new_any()),
Gst.PadTemplate.new("src",
Gst.PadDirection.SRC,
Gst.PadPresence.ALWAYS,
Gst.Caps.new_any()))
def __init__(self):
GstVideo.VideoFilter.__init__(self)
def do_transform_frame(self,inframe,outframe):
#this should give me that data for the frame
data = inframe.buffer
print data
return Gst.FlowReturn.OK
When i do this every time a frame a pushed data is None and i just get a
blank screen from ximagesink.
Thanks for the help and taking the time to look at this
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list