queue element in gstreamer

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

queue element in gstreamer

arnabsamanta
Hi ,
        can any body tel me what kind of input is taken by the QUEUE element in
gstreamer ? is it frame by frame for a video file ?
        and i am going throught the code of the gstqueue.c ....
        how the queue->queue is getting the input ?
        in the init()
                queue->queue = g_queue_new (); is done ? it only creates a new queue . how
the data flows in the queue ?
 regards,
        ~Arnab


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: queue element in gstreamer

Thiago Sousa Santos-2
 The GstQueue takes *any kind* of stream and buffers it (FIFO), you should look at the chain method if you'd like to know how it receives the buffers. It also starts a new thread for pushing the data for the downstream element.

On Thu, Sep 11, 2008 at 7:05 AM, arnabsamanta <[hidden email]> wrote:
Hi ,
       can any body tel me what kind of input is taken by the QUEUE element in
gstreamer ? is it frame by frame for a video file ?
       and i am going throught the code of the gstqueue.c ....
       how the queue->queue is getting the input ?
       in the init()
               queue->queue = g_queue_new (); is done ? it only creates a new queue . how
the data flows in the queue ?
 regards,
       ~Arnab


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
Thiago Sousa Santos

Embedded Systems and Pervasive Computing Lab (Embedded)
Center of Electrical Engineering and Informatics (CEEI)
Federal University of Campina Grande (UFCG)

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: queue element in gstreamer

ved kpl
In reply to this post by arnabsamanta
Hi,

GstQueue creates a thread boundary between the elements before it and
the elements after it.The Gstqueue creates a Gqueue that is used to
hold the input buffers.
A separate thread  reads these buffers from the Gqueue and gives out
to the next element. So you have one thread(chain func being called as
a result of gst_pad_push by previous element) filling the Gqueue and
other(gst_queue_loop started on srcpad) emptying it. The GstQueue is
an gstreamer element that encapsulates all this.
The buffers could be anything .Frames, incomplete frames, etc. That
depends on what the previous element is giving. If the GStQueue is
right after the demuxer and the demuxer gives one video frame per
Gstbuffer, then the Gstqueue will be getting a complete frame and
storing it in Gqueue.


Ved

On Thu, Sep 11, 2008 at 3:35 PM, arnabsamanta
<[hidden email]> wrote:

> Hi ,
>        can any body tel me what kind of input is taken by the QUEUE element in
> gstreamer ? is it frame by frame for a video file ?
>        and i am going throught the code of the gstqueue.c ....
>        how the queue->queue is getting the input ?
>        in the init()
>                queue->queue = g_queue_new (); is done ? it only creates a new queue . how
> the data flows in the queue ?
>  regards,
>        ~Arnab
>
>
> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel