How to run - Plugin writer's guide, Sometimes pads example
ChrisLiuv
chris.liuv at wnc.com.tw
Tue May 11 07:53:37 UTC 2021
Hi,
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,
https://gstreamer.freedesktop.org/documentation/plugin-development/basics/boiler.html?gi-language=c
and plugin bad template,
https://developer.ridgerun.com/wiki/index.php?title=Creating_a_New_GStreamer_Element_or_Application_Using_Templates
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,
https://gstreamer.freedesktop.org/documentation/plugin-development/advanced/request.html?gi-language=c
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
mailing list