appsrc to filesink

Nicolas Dufresne nicolas at ndufresne.ca
Fri Mar 2 14:16:56 UTC 2018


Le 1 mars 2018 23:57, "Nostalgia" <akra.hanine at gmail.com> a écrit :

Hi @acolubri,

I am interested in using appsrc for pushing data from an application to a
gstreamer pipeline, and this for my university final project. Till now, they
don't tell me what application I should use to produce multimedia data
(probably it is yuv video) to be pushed to the pipeline (to processing the
data and encode it ...). But I should, as first step, to understand the
concept of gstreamer's pipeline and to make an example using appsrc. But I
don't succeed to understand very well the concept of appsrc, so I found your
code and I try it, but I didn't understand where is the data that we should
push to the pipeline ? From where the data will be pushed when executing
your code ?

Thanks for helping me to understand the concept of using appsrc ...
I hope that you(@acolubri) or someone else can help me,


Best is to look at appsrc C API, since the GObject interface is difficult,
appsrc is one of the rare plugin that comes with C library. To build with
this API, add gstreamer-app-1.0 to your pkg-config call. The reference
documentation is there:

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-appsrc.html

The main data entry point is gst_app_src_push_buffer(). Note that this will
place the buffer in a queue to be picked by the src streaming thread (in
paused or playing state). Make sure to configure your streaming format
(time/bytes) and the caps.




Regards,



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180302/4db84076/attachment.html>


More information about the gstreamer-devel mailing list