List Info

Thread: Two filesrc and adder: switching "location" does not work




Two filesrc and adder: switching "location" does not work
user name
2006-10-04 15:28:52
Hi *

I'm working on a therapy software with GStreamer and I want
to do the 
following:
* play a list of music files
* mix in some noise files from time to time.

My pipeline looks as follows:
http://pastebin.com/800087


I've attached an event probe to the src-pad of the music-
and noisebin. On
GST_EVENT_EOS from the musicbin I stop the pipeline, change
the 
"location" of
the filesrc and restart the pipeline. This worked perfectly
as long as I 
didn't
use the adder.

With the adder, the first song plays (together with a noise
file). But 
when I
set the second song and restart the pipeline, it won't get
played. I 
only get a
GST_MESSAGE_STATE_CHANGED and a debug line like that:
INFO  (0x8106990 - 0:00:13.295196000)          
GST_STATES(31023)
gstbin.c(1415):gst_bin_recalc_state:<pipeline> bin
RETURN is now 1

The same issue happens without the noisebin, but I can
remove the 
adder/capsfilter and it works perfectly.

I'm stuck with this problem -- I'm glad if somebody can give
me a hint.
Is there an example how to use the adder element?

Regards,
Mathis

-- 
DreamLab Technologies AG
Monbijoustrasse 36
3011 Bern
Switzerland

Tel: +41 31 398 66 66
Fax: +41 31 398 66 69


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys
-- and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gstreamer-devel mailing list
gstreamer-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
Two filesrc and adder: switching "location" does not work
user name
2006-10-05 09:37:42
Well it seems that pastebin.com is a bit overloaded...

Here is a simplyfied drawing of the pipeline:


filesrc ! decodebin ! audioconv ! volume

adder ! capsfilter ! volume ! alsasink
/
filesrc ! decodebin ! audioconv ! volume


The two streams before the adder are in musicbin resp.
noisebin.

I really hope someone can help me out...

Mathis


Mathis Hofer wrote:
> Hi *
>
> I'm working on a therapy software with GStreamer and I
want to do the 
> following:
> * play a list of music files
> * mix in some noise files from time to time.
>
> My pipeline looks as follows:
> http://pastebin.com/800087

>
> I've attached an event probe to the src-pad of the
music- and noisebin. On
> GST_EVENT_EOS from the musicbin I stop the pipeline,
change the 
> "location" of
> the filesrc and restart the pipeline. This worked
perfectly as long as I 
> didn't
> use the adder.
>
> With the adder, the first song plays (together with a
noise file). But 
> when I
> set the second song and restart the pipeline, it won't
get played. I 
> only get a
> GST_MESSAGE_STATE_CHANGED and a debug line like that:
> INFO  (0x8106990 - 0:00:13.295196000)          
GST_STATES(31023)
> gstbin.c(1415):gst_bin_recalc_state:<pipeline>
bin RETURN is now 1
>
> The same issue happens without the noisebin, but I can
remove the 
> adder/capsfilter and it works perfectly.
>
> I'm stuck with this problem -- I'm glad if somebody can
give me a hint.
> Is there an example how to use the adder element?
>
> Regards,
> Mathis
>
>   

-- 
DreamLab Technologies AG
Monbijoustrasse 36
3011 Bern
Switzerland

Tel: +41 31 398 66 66
Fax: +41 31 398 66 69


------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys
-- and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gstreamer-devel mailing list
gstreamer-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
Two filesrc and adder: switching "location" does not work
user name
2006-10-21 16:04:12
Hi Mathis,

this isn't a trivial problem. Please file this to
http://bugzilla.gnome.org.
 If you can attach a small example the
demonstrates the issues, it would help to fix the problem.

Stefan


Mathis Hofer wrote:
> Well it seems that pastebin.com is a bit overloaded...
>
> Here is a simplyfied drawing of the pipeline:
>
>
> filesrc ! decodebin ! audioconv ! volume
> 
> adder ! capsfilter ! volume ! alsasink
> /
> filesrc ! decodebin ! audioconv ! volume
>
>
> The two streams before the adder are in musicbin resp.
noisebin.
>
> I really hope someone can help me out...
>
> Mathis
>
>
> Mathis Hofer wrote:
>   
>> Hi *
>>
>> I'm working on a therapy software with GStreamer
and I want to do the 
>> following:
>> * play a list of music files
>> * mix in some noise files from time to time.
>>
>> My pipeline looks as follows:
>> http://pastebin.com/800087

>>
>> I've attached an event probe to the src-pad of the
music- and noisebin. On
>> GST_EVENT_EOS from the musicbin I stop the
pipeline, change the 
>> "location" of
>> the filesrc and restart the pipeline. This worked
perfectly as long as I 
>> didn't
>> use the adder.
>>
>> With the adder, the first song plays (together with
a noise file). But 
>> when I
>> set the second song and restart the pipeline, it
won't get played. I 
>> only get a
>> GST_MESSAGE_STATE_CHANGED and a debug line like
that:
>> INFO  (0x8106990 - 0:00:13.295196000)          
GST_STATES(31023)
>>
gstbin.c(1415):gst_bin_recalc_state:<pipeline> bin
RETURN is now 1
>>
>> The same issue happens without the noisebin, but I
can remove the 
>> adder/capsfilter and it works perfectly.
>>
>> I'm stuck with this problem -- I'm glad if somebody
can give me a hint.
>> Is there an example how to use the adder element?
>>
>> Regards,
>> Mathis
>>
>>   
>>     
>
>   


------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
gstreamer-devel mailing list
gstreamer-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstream
er-devel
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )