Using only one plugin in a pipeline
Thiago Sousa Santos
thiago.sousa.santos at collabora.co.uk
Thu Sep 29 05:03:30 PDT 2011
On Tue, 2011-09-27 at 06:58 -0700, Siber wrote:
> Hello everybody!
>
> Can I use only one plugin in a pipeline for my application? I want to make a
> very simple application: I read some data from a file (e.g with function
> fread(....)), then pass the buffer filled with a data from the file to a
> decoder and at last I save decoded data to another file (e.g. with function
> fwrite(...)). I know that there are special plugins: filesrc and filesink,
> but still can I escape necessity of using this plugins and read and save
> data "manually"?
To do that you'd need 3 elements in your pipeline: appsrc !
<yourdecoder ! appsink
Check the documentation for them here:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-appsrc.html
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-appsink.html
Appsrc and appsink are elements that provide an API for feeding and
receiving buffers from the pipeline.
--
Thiago
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Using-only-one-plugin-in-a-pipeline-tp3847453p3847453.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list