how to loop pipelines?

classic Classic list List threaded Threaded
11 messages Options
G.B
Reply | Threaded
Open this post in threaded view
|

how to loop pipelines?

G.B
Say, if I have a mp3 file, I can play it with "filesrc ! mad ! audioconvert ! osssink ", how can I loop it so that the same mp3 file gets played again and again? idealy, the number of loops can be controled by a number. Thanks a ton!


     

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to loop pipelines?

shinstar
Hi,
Maybe you should write a simple shell script or build your own GStreamer applications.

regards,

gather bzbz wrote
Say, if I have a mp3 file, I can play it with "filesrc ! mad ! audioconvert ! osssink ", how can I loop it so that the same mp3 file gets played again and again? idealy, the number of loops can be controled by a number. Thanks a ton!


     

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
G.B
Reply | Threaded
Open this post in threaded view
|

Re: how to loop pipelines?

G.B

Yeah, can do that. But any way to loop it from the pipeline script itself? I googled a little bit, someone was talking about setting the pipe stages to get it done, but have not found any samples yet. Anyone can kindly provide some? Thanks.

--- On Tue, 12/22/09, shinstar <[hidden email]> wrote:

> From: shinstar <[hidden email]>
> Subject: Re: [gst-devel] how to loop pipelines?
> To: [hidden email]
> Date: Tuesday, December 22, 2009, 12:17 AM
>
> Hi,
> Maybe you should write a simple shell script or build your
> own GStreamer
> applications.
>
> regards,
>
>
> gather bzbz wrote:
> >
> > Say, if I have a mp3 file, I can play it with "filesrc
> ! mad !
> > audioconvert ! osssink ", how can I loop it so that
> the same mp3 file gets
> > played again and again? idealy, the number of loops
> can be controled by a
> > number. Thanks a ton!
> >
> >
> >      
> >
> >
> ------------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Verizon
> Developer Community
> > Take advantage of Verizon's best-in-class app
> development support
> > A streamlined, 14 day to market process makes app
> distribution fast and
> > easy
> > Join now and get one step closer to millions of
> Verizon customers
> > http://p.sf.net/sfu/verizon-dev2dev 
> > _______________________________________________
> > gstreamer-devel mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >
> >
>
> --
> View this message in context: http://n4.nabble.com/how-to-loop-pipelines-tp976779p976785.html
> Sent from the GStreamer-devel mailing list archive at
> Nabble.com.
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer
> Community
> Take advantage of Verizon's best-in-class app development
> support
> A streamlined, 14 day to market process makes app
> distribution fast and easy
> Join now and get one step closer to millions of Verizon
> customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>


     

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to loop pipelines?

Sudarshan Bisht
 type the same command n times in terminal . e.g   filesrc ! mad ! audioconvert ! osssink  filesrc ! mad ! audioconvert ! osssink  filesrc ! mad ! audioconvert ! osssink  ........

On Tue, Dec 22, 2009 at 1:53 PM, gather bzbz <[hidden email]> wrote:

Yeah, can do that. But any way to loop it from the pipeline script itself? I googled a little bit, someone was talking about setting the pipe stages to get it done, but have not found any samples yet. Anyone can kindly provide some? Thanks.

--- On Tue, 12/22/09, shinstar <[hidden email]> wrote:

> From: shinstar <[hidden email]>
> Subject: Re: [gst-devel] how to loop pipelines?
> To: [hidden email]
> Date: Tuesday, December 22, 2009, 12:17 AM
>

> Hi,
> Maybe you should write a simple shell script or build your
> own GStreamer
> applications.
>
> regards,
>
>
> gather bzbz wrote:
> >
> > Say, if I have a mp3 file, I can play it with "filesrc
> ! mad !
> > audioconvert ! osssink ", how can I loop it so that
> the same mp3 file gets
> > played again and again? idealy, the number of loops
> can be controled by a
> > number. Thanks a ton!
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Verizon
> Developer Community
> > Take advantage of Verizon's best-in-class app
> development support
> > A streamlined, 14 day to market process makes app
> distribution fast and
> > easy
> > Join now and get one step closer to millions of
> Verizon customers
> > http://p.sf.net/sfu/verizon-dev2dev
> > _______________________________________________
> > gstreamer-devel mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> >
> >
>
> --
> View this message in context: http://n4.nabble.com/how-to-loop-pipelines-tp976779p976785.html
> Sent from the GStreamer-devel mailing list archive at
> Nabble.com.
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer
> Community
> Take advantage of Verizon's best-in-class app development
> support
> A streamlined, 14 day to market process makes app
> distribution fast and easy
> Join now and get one step closer to millions of Verizon
> customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>




------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
G.B
Reply | Threaded
Open this post in threaded view
|

Re: how to loop pipelines?

G.B
Thanks. Tried, but failed with

ERROR: from element /GstPipeline:pipeline0/GstOssSink:osssink0: Could not open audio device for playback. Device is being used by another application.

I guess all the pipes are executed in competition....Any suggestions?

--- On Tue, 12/22/09, sudarshan bisht <[hidden email]> wrote:

> From: sudarshan bisht <[hidden email]>
> Subject: Re: [gst-devel] how to loop pipelines?
> To: "Discussion of the development of GStreamer" <[hidden email]>
> Date: Tuesday, December 22, 2009, 12:28 AM
>  type the same command n times in terminal
> . e.g   filesrc ! mad ! audioconvert ! osssink  filesrc !
> mad ! audioconvert ! osssink  filesrc ! mad ! audioconvert
> ! osssink  ........
>
>
> On Tue, Dec 22, 2009 at 1:53 PM,
> gather bzbz <[hidden email]>
> wrote:
>
>
> Yeah, can do that. But any way to loop it from the pipeline
> script itself? I googled a little bit, someone was talking
> about setting the pipe stages to get it done, but have not
> found any samples yet. Anyone can kindly provide some?
> Thanks.
>
>
> --- On Tue, 12/22/09, shinstar <[hidden email]>
> wrote:
>
> > From: shinstar <[hidden email]>
>
> > Subject: Re: [gst-devel] how to loop pipelines?
> > To: [hidden email]
> > Date: Tuesday, December 22, 2009, 12:17 AM
>
>
>
> >
> > Hi,
> > Maybe you should write a simple shell script or build
> your
> > own GStreamer
> > applications.
> >
> > regards,
> >
> >
> > gather bzbz wrote:
> > >
>
> > > Say, if I have a mp3 file, I can play it with
> "filesrc
> > ! mad !
> > > audioconvert ! osssink ", how can I loop it
> so that
> > the same mp3 file gets
> > > played again and again? idealy, the number of
> loops
>
> > can be controled by a
> > > number. Thanks a ton!
> > >
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > This SF.Net email is sponsored by the Verizon
>
> > Developer Community
> > > Take advantage of Verizon's best-in-class
> app
> > development support
> > > A streamlined, 14 day to market process makes
> app
> > distribution fast and
> > > easy
>
> > > Join now and get one step closer to millions of
> > Verizon customers
> > > http://p.sf.net/sfu/verizon-dev2dev
> > > _______________________________________________
>
> > > gstreamer-devel mailing list
> > > [hidden email]
> > > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
> > >
> > >
> >
> > --
> > View this message in context: http://n4.nabble.com/how-to-loop-pipelines-tp976779p976785.html
>
> > Sent from the GStreamer-devel mailing list archive at
> > Nabble.com.
> >
> >
> ------------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Verizon
> Developer
>
> > Community
> > Take advantage of Verizon's best-in-class app
> development
> > support
> > A streamlined, 14 day to market process makes app
> > distribution fast and easy
> > Join now and get one step closer to millions of
> Verizon
>
> > customers
> > http://p.sf.net/sfu/verizon-dev2dev
> > _______________________________________________
> > gstreamer-devel mailing list
>
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
> >
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer
> Community
> Take advantage of Verizon's best-in-class app
> development support
>
> A streamlined, 14 day to market process makes app
> distribution fast and easy
> Join now and get one step closer to millions of Verizon
> customers
> http://p.sf.net/sfu/verizon-dev2dev
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>
> --
> Regards,
>
> Sudarshan Bisht
>
>
> -----Inline Attachment Follows-----
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer
> Community
> Take advantage of Verizon's best-in-class app development
> support
> A streamlined, 14 day to market process makes app
> distribution fast and easy
> Join now and get one step closer to millions of Verizon
> customers
> http://p.sf.net/sfu/verizon-dev2dev 
> -----Inline Attachment Follows-----
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>


     

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
G.B
Reply | Threaded
Open this post in threaded view
|

Re: how to loop pipelines?

G.B
In reply to this post by Sudarshan Bisht
Thanks. Tried, but failed with

ERROR: from element /GstPipeline:pipeline0/GstOssSink:osssink0: Could not open audio device for playback. Device is being used by another application.

I guess all the pipes are executed in competition....Any suggestions?

--- On Tue, 12/22/09, sudarshan bisht <[hidden email]> wrote:

> From: sudarshan bisht <[hidden email]>
> Subject: Re: [gst-devel] how to loop pipelines?
> To: "Discussion of the development of GStreamer" <[hidden email]>
> Date: Tuesday, December 22, 2009, 12:28 AM
>  type the same command n times in terminal
> . e.g   filesrc ! mad ! audioconvert ! osssink  filesrc !
> mad ! audioconvert ! osssink  filesrc ! mad ! audioconvert
> ! osssink  ........
>
>
> On Tue, Dec 22, 2009 at 1:53 PM,
> gather bzbz <[hidden email]>
> wrote:
>
>
> Yeah, can do that. But any way to loop it from the pipeline
> script itself? I googled a little bit, someone was talking
> about setting the pipe stages to get it done, but have not
> found any samples yet. Anyone can kindly provide some?
> Thanks.
>
>
> --- On Tue, 12/22/09, shinstar <[hidden email]>
> wrote:
>
> > From: shinstar <[hidden email]>
>
> > Subject: Re: [gst-devel] how to loop pipelines?
> > To: [hidden email]
> > Date: Tuesday, December 22, 2009, 12:17 AM
>
>
>
> >
> > Hi,
> > Maybe you should write a simple shell script or build
> your
> > own GStreamer
> > applications.
> >
> > regards,
> >
> >
> > gather bzbz wrote:
> > >
>
> > > Say, if I have a mp3 file, I can play it with
> "filesrc
> > ! mad !
> > > audioconvert ! osssink ", how can I loop it
> so that
> > the same mp3 file gets
> > > played again and again? idealy, the number of
> loops
>
> > can be controled by a
> > > number. Thanks a ton!
> > >
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > This SF.Net email is sponsored by the Verizon
>
> > Developer Community
> > > Take advantage of Verizon's best-in-class
> app
> > development support
> > > A streamlined, 14 day to market process makes
> app
> > distribution fast and
> > > easy
>
> > > Join now and get one step closer to millions of
> > Verizon customers
> > > http://p.sf.net/sfu/verizon-dev2dev
> > > _______________________________________________
>
> > > gstreamer-devel mailing list
> > > [hidden email]
> > > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
> > >
> > >
> >
> > --
> > View this message in context: http://n4.nabble.com/how-to-loop-pipelines-tp976779p976785.html
>
> > Sent from the GStreamer-devel mailing list archive at
> > Nabble.com.
> >
> >
> ------------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Verizon
> Developer
>
> > Community
> > Take advantage of Verizon's best-in-class app
> development
> > support
> > A streamlined, 14 day to market process makes app
> > distribution fast and easy
> > Join now and get one step closer to millions of
> Verizon
>
> > customers
> > http://p.sf.net/sfu/verizon-dev2dev
> > _______________________________________________
> > gstreamer-devel mailing list
>
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
> >
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer
> Community
> Take advantage of Verizon's best-in-class app
> development support
>
> A streamlined, 14 day to market process makes app
> distribution fast and easy
> Join now and get one step closer to millions of Verizon
> customers
> http://p.sf.net/sfu/verizon-dev2dev
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>
> --
> Regards,
>
> Sudarshan Bisht
>
>
> -----Inline Attachment Follows-----
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer
> Community
> Take advantage of Verizon's best-in-class app development
> support
> A streamlined, 14 day to market process makes app
> distribution fast and easy
> Join now and get one step closer to millions of Verizon
> customers
> http://p.sf.net/sfu/verizon-dev2dev 
> -----Inline Attachment Follows-----
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>


     

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
G.B
Reply | Threaded
Open this post in threaded view
|

Re: how to loop pipelines?

G.B
In reply to this post by Sudarshan Bisht
Thanks. Tried, but failed with

ERROR: from element /GstPipeline:pipeline0/GstOssSink:osssink0: Could not open audio device for playback. Device is being used by another application.

I guess all the pipes are executed in competition....Any suggestions?

--- On Tue, 12/22/09, sudarshan bisht <[hidden email]> wrote:

> From: sudarshan bisht <[hidden email]>
> Subject: Re: [gst-devel] how to loop pipelines?
> To: "Discussion of the development of GStreamer" <[hidden email]>
> Date: Tuesday, December 22, 2009, 12:28 AM
>  type the same command n times in terminal
> . e.g   filesrc ! mad ! audioconvert ! osssink  filesrc !
> mad ! audioconvert ! osssink  filesrc ! mad ! audioconvert
> ! osssink  ........
>
>
> On Tue, Dec 22, 2009 at 1:53 PM,
> gather bzbz <[hidden email]>
> wrote:
>
>
> Yeah, can do that. But any way to loop it from the pipeline
> script itself? I googled a little bit, someone was talking
> about setting the pipe stages to get it done, but have not
> found any samples yet. Anyone can kindly provide some?
> Thanks.
>
>
> --- On Tue, 12/22/09, shinstar <[hidden email]>
> wrote:
>
> > From: shinstar <[hidden email]>
>
> > Subject: Re: [gst-devel] how to loop pipelines?
> > To: [hidden email]
> > Date: Tuesday, December 22, 2009, 12:17 AM
>
>
>
> >
> > Hi,
> > Maybe you should write a simple shell script or build
> your
> > own GStreamer
> > applications.
> >
> > regards,
> >
> >
> > gather bzbz wrote:
> > >
>
> > > Say, if I have a mp3 file, I can play it with
> "filesrc
> > ! mad !
> > > audioconvert ! osssink ", how can I loop it
> so that
> > the same mp3 file gets
> > > played again and again? idealy, the number of
> loops
>
> > can be controled by a
> > > number. Thanks a ton!
> > >
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > This SF.Net email is sponsored by the Verizon
>
> > Developer Community
> > > Take advantage of Verizon's best-in-class
> app
> > development support
> > > A streamlined, 14 day to market process makes
> app
> > distribution fast and
> > > easy
>
> > > Join now and get one step closer to millions of
> > Verizon customers
> > > http://p.sf.net/sfu/verizon-dev2dev
> > > _______________________________________________
>
> > > gstreamer-devel mailing list
> > > [hidden email]
> > > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
> > >
> > >
> >
> > --
> > View this message in context: http://n4.nabble.com/how-to-loop-pipelines-tp976779p976785.html
>
> > Sent from the GStreamer-devel mailing list archive at
> > Nabble.com.
> >
> >
> ------------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Verizon
> Developer
>
> > Community
> > Take advantage of Verizon's best-in-class app
> development
> > support
> > A streamlined, 14 day to market process makes app
> > distribution fast and easy
> > Join now and get one step closer to millions of
> Verizon
>
> > customers
> > http://p.sf.net/sfu/verizon-dev2dev
> > _______________________________________________
> > gstreamer-devel mailing list
>
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
> >
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer
> Community
> Take advantage of Verizon's best-in-class app
> development support
>
> A streamlined, 14 day to market process makes app
> distribution fast and easy
> Join now and get one step closer to millions of Verizon
> customers
> http://p.sf.net/sfu/verizon-dev2dev
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>
> --
> Regards,
>
> Sudarshan Bisht
>
>
> -----Inline Attachment Follows-----
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer
> Community
> Take advantage of Verizon's best-in-class app development
> support
> A streamlined, 14 day to market process makes app
> distribution fast and easy
> Join now and get one step closer to millions of Verizon
> customers
> http://p.sf.net/sfu/verizon-dev2dev 
> -----Inline Attachment Follows-----
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>


     

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to loop pipelines?

Sudarshan Bisht
In reply to this post by G.B
try using alsasink .

On Tue, Dec 22, 2009 at 2:59 PM, gather bzbz <[hidden email]> wrote:
Thanks. Tried, but failed with

ERROR: from element /GstPipeline:pipeline0/GstOssSink:osssink0: Could not open audio device for playback. Device is being used by another application.

I guess all the pipes are executed in competition....Any suggestions?

--- On Tue, 12/22/09, sudarshan bisht <[hidden email]> wrote:

> From: sudarshan bisht <[hidden email]>
> Subject: Re: [gst-devel] how to loop pipelines?
> To: "Discussion of the development of GStreamer" <[hidden email]>
> Date: Tuesday, December 22, 2009, 12:28 AM
>  type the same command n times in terminal
> . e.g   filesrc ! mad ! audioconvert ! osssink  filesrc !
> mad ! audioconvert ! osssink  filesrc ! mad ! audioconvert
> ! osssink  ........
>
>
> On Tue, Dec 22, 2009 at 1:53 PM,
> gather bzbz <[hidden email]>
> wrote:
>
>
> Yeah, can do that. But any way to loop it from the pipeline
> script itself? I googled a little bit, someone was talking
> about setting the pipe stages to get it done, but have not
> found any samples yet. Anyone can kindly provide some?
> Thanks.
>
>
> --- On Tue, 12/22/09, shinstar <[hidden email]>
> wrote:
>
> > From: shinstar <[hidden email]>
>
> > Subject: Re: [gst-devel] how to loop pipelines?
> > To: [hidden email]
> > Date: Tuesday, December 22, 2009, 12:17 AM
>

>
>
> >
> > Hi,
> > Maybe you should write a simple shell script or build
> your
> > own GStreamer
> > applications.
> >
> > regards,
> >
> >
> > gather bzbz wrote:
> > >
>
> > > Say, if I have a mp3 file, I can play it with
> "filesrc
> > ! mad !
> > > audioconvert ! osssink ", how can I loop it
> so that
> > the same mp3 file gets
> > > played again and again? idealy, the number of
> loops
>
> > can be controled by a
> > > number. Thanks a ton!
> > >
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > This SF.Net email is sponsored by the Verizon
>
> > Developer Community
> > > Take advantage of Verizon's best-in-class
> app
> > development support
> > > A streamlined, 14 day to market process makes
> app
> > distribution fast and
> > > easy
>
> > > Join now and get one step closer to millions of
> > Verizon customers
> > > http://p.sf.net/sfu/verizon-dev2dev
> > > _______________________________________________
>
> > > gstreamer-devel mailing list
> > > [hidden email]
> > > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
> > >
> > >
> >
> > --
> > View this message in context: http://n4.nabble.com/how-to-loop-pipelines-tp976779p976785.html
>
> > Sent from the GStreamer-devel mailing list archive at
> > Nabble.com.
> >
> >
> ------------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Verizon
> Developer
>
> > Community
> > Take advantage of Verizon's best-in-class app
> development
> > support
> > A streamlined, 14 day to market process makes app
> > distribution fast and easy
> > Join now and get one step closer to millions of
> Verizon
>
> > customers
> > http://p.sf.net/sfu/verizon-dev2dev
> > _______________________________________________
> > gstreamer-devel mailing list
>
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
> >
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer
> Community
> Take advantage of Verizon's best-in-class app
> development support
>
> A streamlined, 14 day to market process makes app
> distribution fast and easy
> Join now and get one step closer to millions of Verizon
> customers
> http://p.sf.net/sfu/verizon-dev2dev
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>
> --
> Regards,
>
> Sudarshan Bisht
>
>
> -----Inline Attachment Follows-----
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer
> Community
> Take advantage of Verizon's best-in-class app development
> support
> A streamlined, 14 day to market process makes app
> distribution fast and easy
> Join now and get one step closer to millions of Verizon
> customers
> http://p.sf.net/sfu/verizon-dev2dev
> -----Inline Attachment Follows-----
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>




------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to loop pipelines?

Kapil Agrawal
I suggest write a simple C application, and whenever you get EOS set the pipeline to READY state and then  PLAYING.

On Tue, Dec 22, 2009 at 3:04 PM, sudarshan bisht <[hidden email]> wrote:
try using alsasink .

On Tue, Dec 22, 2009 at 2:59 PM, gather bzbz <[hidden email]> wrote:
Thanks. Tried, but failed with

ERROR: from element /GstPipeline:pipeline0/GstOssSink:osssink0: Could not open audio device for playback. Device is being used by another application.

I guess all the pipes are executed in competition....Any suggestions?

--- On Tue, 12/22/09, sudarshan bisht <[hidden email]> wrote:

> From: sudarshan bisht <[hidden email]>
> Subject: Re: [gst-devel] how to loop pipelines?
> To: "Discussion of the development of GStreamer" <[hidden email]>
> Date: Tuesday, December 22, 2009, 12:28 AM
>  type the same command n times in terminal
> . e.g   filesrc ! mad ! audioconvert ! osssink  filesrc !
> mad ! audioconvert ! osssink  filesrc ! mad ! audioconvert
> ! osssink  ........
>
>
> On Tue, Dec 22, 2009 at 1:53 PM,
> gather bzbz <[hidden email]>
> wrote:
>
>
> Yeah, can do that. But any way to loop it from the pipeline
> script itself? I googled a little bit, someone was talking
> about setting the pipe stages to get it done, but have not
> found any samples yet. Anyone can kindly provide some?
> Thanks.
>
>
> --- On Tue, 12/22/09, shinstar <[hidden email]>
> wrote:
>
> > From: shinstar <[hidden email]>
>
> > Subject: Re: [gst-devel] how to loop pipelines?
> > To: [hidden email]
> > Date: Tuesday, December 22, 2009, 12:17 AM
>

>
>
> >
> > Hi,
> > Maybe you should write a simple shell script or build
> your
> > own GStreamer
> > applications.
> >
> > regards,
> >
> >
> > gather bzbz wrote:
> > >
>
> > > Say, if I have a mp3 file, I can play it with
> "filesrc
> > ! mad !
> > > audioconvert ! osssink ", how can I loop it
> so that
> > the same mp3 file gets
> > > played again and again? idealy, the number of
> loops
>
> > can be controled by a
> > > number. Thanks a ton!
> > >
> > >
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > This SF.Net email is sponsored by the Verizon
>
> > Developer Community
> > > Take advantage of Verizon's best-in-class
> app
> > development support
> > > A streamlined, 14 day to market process makes
> app
> > distribution fast and
> > > easy
>
> > > Join now and get one step closer to millions of
> > Verizon customers
> > > http://p.sf.net/sfu/verizon-dev2dev
> > > _______________________________________________
>
> > > gstreamer-devel mailing list
> > > [hidden email]
> > > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
> > >
> > >
> >
> > --
> > View this message in context: http://n4.nabble.com/how-to-loop-pipelines-tp976779p976785.html
>
> > Sent from the GStreamer-devel mailing list archive at
> > Nabble.com.
> >
> >
> ------------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Verizon
> Developer
>
> > Community
> > Take advantage of Verizon's best-in-class app
> development
> > support
> > A streamlined, 14 day to market process makes app
> > distribution fast and easy
> > Join now and get one step closer to millions of
> Verizon
>
> > customers
> > http://p.sf.net/sfu/verizon-dev2dev
> > _______________________________________________
> > gstreamer-devel mailing list
>
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
> >
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer
> Community
> Take advantage of Verizon's best-in-class app
> development support
>
> A streamlined, 14 day to market process makes app
> distribution fast and easy
> Join now and get one step closer to millions of Verizon
> customers
> http://p.sf.net/sfu/verizon-dev2dev
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
>
>
> --
> Regards,
>
> Sudarshan Bisht
>
>
> -----Inline Attachment Follows-----
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer
> Community
> Take advantage of Verizon's best-in-class app development
> support
> A streamlined, 14 day to market process makes app
> distribution fast and easy
> Join now and get one step closer to millions of Verizon
> customers
> http://p.sf.net/sfu/verizon-dev2dev
> -----Inline Attachment Follows-----
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>




------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
Regards,

Sudarshan Bisht

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




--
http://www.linkedin.com/in/kapilagrawal

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to loop pipelines?

Stefan Sauer
In reply to this post by G.B
hi,

Am 22.12.2009 09:59, schrieb gather bzbz:
> Say, if I have a mp3 file, I can play it with "filesrc ! mad ! audioconvert ! osssink ", how can I loop it so that the same mp3 file gets played again and again? idealy, the number of loops can be controled by a number. Thanks a ton!
>
you cannot loop from gst-launch. You need to write an application. Look for
gst_element_seek and GST_SEEK_FLAG_SEGMENT.

Stefan


>
>      
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to loop pipelines?

Tim-Philipp Müller-2
In reply to this post by Kapil Agrawal
On Thu, 2009-12-24 at 17:25 +0530, Kapil Agrawal wrote:

> I suggest write a simple C application, and whenever you get EOS set
> the pipeline to READY state and then PLAYING.

Or you could just seek back to 0 and leave the pipeline in PLAYING
state..

(For 'seamless' looping a bit more work is needed though).

Cheers
 -Tim





------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel