How to run - Plugin writer's guide, Sometimes pads example
chris.liuv at wnc.com.tw
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: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel