<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">Le 1 mars 2018 23:57, "Nostalgia" <<a href="mailto:akra.hanine@gmail.com">akra.hanine@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi @acolubri,<br>
<br>
I am interested in using appsrc for pushing data from an application to a<br>
gstreamer pipeline, and this for my university final project. Till now, they<br>
don't tell me what application I should use to produce multimedia data<br>
(probably it is yuv video) to be pushed to the pipeline (to processing the<br>
data and encode it ...). But I should, as first step, to understand the<br>
concept of gstreamer's pipeline and to make an example using appsrc. But I<br>
don't succeed to understand very well the concept of appsrc, so I found your<br>
code and I try it, but I didn't understand where is the data that we should<br>
push to the pipeline ? From where the data will be pushed when executing<br>
your code ?<br>
<br>
Thanks for helping me to understand the concept of using appsrc ...<br>
I hope that you(@acolubri) or someone else can help me,<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">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:</div><div dir="auto"><br></div><div dir="auto"><a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-appsrc.html">https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-appsrc.html</a><br></div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Regards,<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/</a><br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</blockquote></div><br></div></div></div>