[gst-devel] Mixing signals

Tristan Van Berkom tvb at gnome.org
Wed Apr 13 13:02:19 CEST 2005


Tristan Van Berkom wrote:
> Ikke wrote:
[...]

Slight update,
     I noticed that in gstreamer/examples/mixer/mixer.c, streams
aren't "added" together before streaming begins; the code looks like
this:

while (adding streams) {
     pause_stream(); // set to PAUSED state
     create_new_input_stream();
     add_and_link_new_input_stream();
     resume_stream();// set to PLAYING state
     for (i = 0; i < 100; i++)
         gst_bin_iterate ();
}

And when I do similar, bingo ! I dont get the error about
non-negotiated pads !

But alas; what happens instead is:

   - The firstly added stream starts playin (I can hear about one second)
   - I get about 3 or 4 seconds of garbage mixing (sounds like pressing
     fast-forward on an old tape deck)
   - Only the secondly added stream remains (and plays untill EOS)

    The conclusion I'm drawing is that "adder" is an experimental
spike and needs work (why cant streams be added once before playing ?
why cant they be played together from frame 1 ?)

Anyone have some tips on where I should start to fix adder ?
(or is there still some obscenely obvious detail that I'm
missing ?)

Cheers,
                                -Tristan





More information about the gstreamer-devel mailing list