[Bug 737683] fakesrc: the "pattern" property can be gotten but it is never set or used

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Oct 2 13:01:28 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=737683
  GStreamer | gstreamer (core) | 1.4.3

--- Comment #4 from Antonio Ospite <ao2 at ao2.it> 2014-10-02 14:17:01 UTC ---
Thanks for the patch.

It could be useful indeed to have a way to pass an arbitrary pattern to fill a
buffer with in fakesrc.

I am doing some experiments with MIDI and GStreamer and if I was able to set
the content of a buffer I could generate a certain note; passing data with
fdsrc won't work because fdsrc cannot set the format to GST_FORMAT_TIME as
needed downstream in the pipeline, while fakesrc is generic enough about
segment formats and timing.

Just as an example of the possibilities, here is a funny pipeline with fakesrc
and fluiddec:

gst-launch-1.0 fakesrc datarate=400 sizetype=2 sizemin=3 sizemax=3
num-buffers=1000 format=3 filltype=3 ! audio/x-midi-event ! fluiddec !
audioconvert ! autoaudiosink

The pipeline makes the random data (filltype=3) be interpreted as MIDI, which
is fun but not very useful, if I could set the pattern I could decide what note
to play.

Of course I am exploring the proper way to do things here, but for a quick hack
fakesrc with pattern is a cool tool to have in the box.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gstreamer-bugs mailing list