GStreamer General State and BIN Issue

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

GStreamer General State and BIN Issue

Manish Rana
Hi All,


I am facing one issue in Gstreamer, I use following sequance.

1. Pipaline is created.
2. Followink elements are there in Pipeline:
          a. audiotestsrc
          b. caps ! queue ! amrnbenc ! rtpamrpay ( One BIN - Called SRC BIN )
          b. RTPBIN
          c. udpsink

Now if I unlink and remove audiotestsrc from my pipeline, that is ok.
But if i again add this element to my pipeline there is no data on the audiotestsrc (checked using pad PROBE data.)

Please let me know where i am doing it wrong.
As i think logically there is something messed up :(


Thanks a lot..
Manish

-------------------------------------------------------------------------
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: GStreamer General State and BIN Issue

Eric Zhang-6
Hi, Manish:

    I think you should pause the pipeline and re-play it after you inserted audiotestsrc into pipeline again.

Eric

2008/8/29 Manish Rana <[hidden email]>
Hi All,


I am facing one issue in Gstreamer, I use following sequance.

1. Pipaline is created.
2. Followink elements are there in Pipeline:
          a. audiotestsrc
          b. caps ! queue ! amrnbenc ! rtpamrpay ( One BIN - Called SRC BIN )
          b. RTPBIN
          c. udpsink

Now if I unlink and remove audiotestsrc from my pipeline, that is ok.
But if i again add this element to my pipeline there is no data on the audiotestsrc (checked using pad PROBE data.)

Please let me know where i am doing it wrong.
As i think logically there is something messed up :(


Thanks a lot..
Manish

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

Re: GStreamer General State and BIN Issue

Manish Rana
Dear Eric,

Thanks a lot for your suggestion...

I can't put the pipeline in the Paused State as there are other bins also in the pipeline and they need to be running....
Also what effect will it cause on the live source in my pipeline..as it has udpsink as well...........

BR
Manish

On Mon, Sep 1, 2008 at 7:29 AM, Eric Zhang <[hidden email]> wrote:
Hi, Manish:

    I think you should pause the pipeline and re-play it after you inserted audiotestsrc into pipeline again.

Eric

2008/8/29 Manish Rana <[hidden email]>
Hi All,


I am facing one issue in Gstreamer, I use following sequance.

1. Pipaline is created.
2. Followink elements are there in Pipeline:
          a. audiotestsrc
          b. caps ! queue ! amrnbenc ! rtpamrpay ( One BIN - Called SRC BIN )
          b. RTPBIN
          c. udpsink

Now if I unlink and remove audiotestsrc from my pipeline, that is ok.
But if i again add this element to my pipeline there is no data on the audiotestsrc (checked using pad PROBE data.)

Please let me know where i am doing it wrong.
As i think logically there is something messed up :(


Thanks a lot..
Manish

-------------------------------------------------------------------------
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



-------------------------------------------------------------------------
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: GStreamer General State and BIN Issue

Aurelien Grimaud (elzz)
Hi,
Try to set your new audiotestsrc in RUNNING state after linking.

Another solution will be to not get rid of audiotestsrc.
One way to change the pipeline behavior without adding or removing any
element is to use input-selector, output-selector and tee.

Pipeline works better if they are always linked from src to sink.
I use "tee ! fakesink" to get an always running pipeline.
I guess input-selector ! fakesink should do the trick too.
I can then add or remove any modifier after the tee or selector.

Aurelien

Manish Rana a écrit :

> Dear Eric,
>
> Thanks a lot for your suggestion...
>
> I can't put the pipeline in the Paused State as there are other bins
> also in the pipeline and they need to be running....
> Also what effect will it cause on the live source in my pipeline..as it
> has udpsink as well...........
>
> BR
> Manish
>
> On Mon, Sep 1, 2008 at 7:29 AM, Eric Zhang <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Hi, Manish:
>
>         I think you should pause the pipeline and re-play it after you
>     inserted audiotestsrc into pipeline again.
>
>     Eric
>
>     2008/8/29 Manish Rana <[hidden email]
>     <mailto:[hidden email]>>
>
>         Hi All,
>
>
>         I am facing one issue in Gstreamer, I use following sequance.
>
>         1. Pipaline is created.
>         2. Followink elements are there in Pipeline:
>                   a. audiotestsrc
>                   b. caps ! queue ! amrnbenc ! rtpamrpay ( One BIN -
>         Called SRC BIN )
>                   b. RTPBIN
>                   c. udpsink
>
>         Now if I unlink and remove audiotestsrc from my pipeline, that
>         is ok.
>         But if i again add this element to my pipeline there is no data
>         on the audiotestsrc (checked using pad PROBE data.)
>
>         Please let me know where i am doing it wrong.
>         As i think logically there is something messed up :(
>
>
>         Thanks a lot..
>         Manish
>
>         -------------------------------------------------------------------------
>         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=/
>         <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
>         _______________________________________________
>         gstreamer-devel mailing list
>         [hidden email]
>         <mailto:[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=/
>     <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
>     _______________________________________________
>     gstreamer-devel mailing list
>     [hidden email]
>     <mailto:[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



-------------------------------------------------------------------------
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