Using only one plugin in a pipeline

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Using only one plugin in a pipeline

Siber
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"?
Reply | Threaded
Open this post in threaded view
|

Re: Using only one plugin in a pipeline

Kapil Agrawal
You have to use two more plugins appsrc &appsink
So your application will look like

fread -> {appsrc ! decoder ! appsink } ->fwrite

Best Luck
Kapil


On Tue, Sep 27, 2011 at 7:28 PM, Siber <[hidden email]> 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"?

--
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
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



--
http://www.linkedin.com/in/kapilagrawal
www.mediamagictechnologies.com
(Consultancy - Multimedia, Gstreamer, ffmpeg, Streaming for platforms- linux, windows, TI, android)



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Using only one plugin in a pipeline

Thiago Sousa Santos
In reply to this post by Siber
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
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Using only one plugin in a pipeline

Siber
Thank you all for attention and for fast and complete advice! It helped!)