How to run - Plugin writer's guide, Sometimes pads example

ChrisLiuv chris.liuv at
Tue May 11 07:53:37 UTC 2021


I'm trying to write a demuxer, which separate line-interleaved video data,
For example, input 320x240 video data, output 2 160x240 video data.

By referring to plugin writer's guide,

and plugin bad template,

I have built a basic element plugin, which implements event, chain, status
function by the guide, it could bypass the data from sink to src.

Using below command to check, it works well.
gst-launch-1.0 -v videotestsrc pattern=0 num-buffers=1000 ! myfilter !
x264enc qp-min=18 ! avimux ! filesink location=videotestsrc_myfilter.avi

For the sometimes pads guide,

it doesn't explain how to add the function gst_my_filter_loopfunc
(GstElement *element) to the code, also filter->bs is not defined.

Could anyone give any advice/instruction?

Thanks a lot.

Sent from:

More information about the gstreamer-devel mailing list