Using do_transform_frame in GstVideo.VideoFilter (python)

Mathieu Duponchelle mathieu at centricular.com
Tue Mar 27 21:26:42 UTC 2018


Can you please file a bug with that code, ideally including the registration code
and various imports to make things easy to reproduce?

On 03/27/2018 11:22 PM, dpw157 wrote:
> 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/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list