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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

GStreamer-devel mailing list
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/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel