appsrc in push vs pull mode

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

appsrc in push vs pull mode

Black_13
what does this mean " appsrc in push vs pull mode" as spoken of in the thread in the article 
James

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

AW: appsrc in push vs pull mode

Thornton, Keith

Hi it means that there are two methods of getting the data into your pipeline via appsrc. One is that you use the need-data signals. This is pull mode. The other is your application calls push_buffer. This is push mode.

 

Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von blackthirt33n .
Gesendet: Montag, 26. März 2018 17:55
An: Discussion of the development of and with GStreamer <[hidden email]>
Betreff: appsrc in push vs pull mode

 

what does this mean " appsrc in push vs pull mode" as spoken of in the thread in the article 

James


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

Re: appsrc in push vs pull mode

Black_13
I keep running across this example https://gist.github.com/nzjrs/725122/16ceee88aafae389bab207818e0661328921e1ab
however this is for gstreamer 0.10 are there elements of the example that are still usefull?

lines 152/153 do the following set up the start and stop call backs
g_signal_connect (app->appsrc, "need-data", G_CALLBACK (start_feed), app);
g_signal_connect (app->appsrc, "enough-data", G_CALLBACK (stop_feed), app);


the start feed sets up the idle processing ... 
app->sourceid = g_idle_add ((GSourceFunc) read_data, app);
which then calls read_data?
Would this be similar in gstreamer 1.0 ?

James

On Tue, Mar 27, 2018 at 12:38 AM, Thornton, Keith <[hidden email]> wrote:

Hi it means that there are two methods of getting the data into your pipeline via appsrc. One is that you use the need-data signals. This is pull mode. The other is your application calls push_buffer. This is push mode.

 

Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von blackthirt33n .
Gesendet: Montag, 26. März 2018 17:55
An: Discussion of the development of and with GStreamer <[hidden email]>
Betreff: appsrc in push vs pull mode

 

what does this mean " appsrc in push vs pull mode" as spoken of in the thread in the article 

James


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



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

AW: appsrc in push vs pull mode

Thornton, Keith

Take a look at

https://gstreamer.freedesktop.org/documentation/tutorials/basic/short-cutting-the-pipeline.html

 

Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von blackthirt33n .
Gesendet: Dienstag, 27. März 2018 18:08
An: Discussion of the development of and with GStreamer <[hidden email]>
Betreff: Re: appsrc in push vs pull mode

 

I keep running across this example https://gist.github.com/nzjrs/725122/16ceee88aafae389bab207818e0661328921e1ab

however this is for gstreamer 0.10 are there elements of the example that are still usefull?

 

lines 152/153 do the following set up the start and stop call backs

g_signal_connect (app->appsrc, "need-data", G_CALLBACK (start_feed), app);

g_signal_connect (app->appsrc, "enough-data", G_CALLBACK (stop_feed), app);

 

 

the start feed sets up the idle processing ... 

app->sourceid = g_idle_add ((GSourceFunc) read_data, app);

which then calls read_data?

Would this be similar in gstreamer 1.0 ?

 

James

 

On Tue, Mar 27, 2018 at 12:38 AM, Thornton, Keith <[hidden email]> wrote:

Hi it means that there are two methods of getting the data into your pipeline via appsrc. One is that you use the need-data signals. This is pull mode. The other is your application calls push_buffer. This is push mode.

 

Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von blackthirt33n .
Gesendet: Montag, 26. März 2018 17:55
An: Discussion of the development of and with GStreamer <[hidden email]>
Betreff: appsrc in push vs pull mode

 

what does this mean " appsrc in push vs pull mode" as spoken of in the thread in the article 

James


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel