input-selector usage?

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

input-selector usage?

TB2
Hello there,

I'm trying to use input-selector to switch between two different
sources, while not actually stopping the stream. In my specific use
case, I have one audiotestsrc wave=4, which is just silence, and a
"filesrc | decodebin". These should be switched by the input-selector.
 From there, the stream gets vorbisencoded and sent to a multifdsink
(which is then served as a file by my app for people to connect to). The
purpose of this is that clients can connect to the file and listen to it
- as in a streaming radio, and even if nothing is playing, the stream
will still be stable and not cut off.

But any of this doesn't really matter for the basics:

In this example script, which can be run as is (maybe change the sink
type from osssink to alsasink or whatever you need), there's a low beep
and a high beep. What do I have to do to switch from the low beep to the
high beep? No matter how I arrange the block() and switch() emissions,
the second beep never gets through. Pastebin: http://pastie.org/790685 
and it's also attached.

Could someone please be so kind and explain to me in what order the
block/switch stuff needs to be called for this to work?

Thanks a lot.

Regards,
Tom

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

gst-test.py (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: input-selector usage?

Alex Ugarte-2
Hi Tom:
We were trying to do something similar to what you explain here (search for a mail in the list with subject="Switching between different audio streams over RTSP stream").
After some trials with input-selector, we have tried using an "adder" with better results. Maybe this is valid for you too.

Regards,
Alex


On Sat, Jan 23, 2010 at 2:05 AM, GT6 <[hidden email]> wrote:
Hello there,

I'm trying to use input-selector to switch between two different sources, while not actually stopping the stream. In my specific use case, I have one audiotestsrc wave=4, which is just silence, and a "filesrc | decodebin". These should be switched by the input-selector. From there, the stream gets vorbisencoded and sent to a multifdsink (which is then served as a file by my app for people to connect to). The purpose of this is that clients can connect to the file and listen to it - as in a streaming radio, and even if nothing is playing, the stream will still be stable and not cut off.

But any of this doesn't really matter for the basics:

In this example script, which can be run as is (maybe change the sink type from osssink to alsasink or whatever you need), there's a low beep and a high beep. What do I have to do to switch from the low beep to the high beep? No matter how I arrange the block() and switch() emissions, the second beep never gets through. Pastebin: http://pastie.org/790685 and it's also attached.

Could someone please be so kind and explain to me in what order the block/switch stuff needs to be called for this to work?

Thanks a lot.

Regards,
Tom

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




--
Álex Ugarte Iñiguez de Heredia
Investigador / Researcher
TV Digital y Servicios Multimedia / Digital TV and Multimedia Services

Vicomtech - Visual Interaction Communication Technologies
Mikeletegi Pasealekua, 57 - Parque Tecnológico
20009 Donostia - San Sebastián - Spain
Tel: +[34] 943 30 92 30
Fax: +[34] 943 30 93 93
e-mail: [hidden email]
www.vicomtech.org

*** member of INI-GraphicsNet ****
www.inigraphics.net
*** member of IK4 Research Alliance ****
www.ik4.es

-----------------------------------------------------
Vicomtech is an ISO 9001:2000 certified institute
-----------------------------------------------------

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel