Hi I would like some advice.
I would like to use Gstreamer and Python to render a waveform of audio data. This is not in realtime. I was thinking of maybe creating a waveform-image sink to do this ? Are there any other elements that can do this or is there and easier way ? I was hoping to keep things simple by getting all the audio data after passing through the audioconvert element and the using matplotlib to plot it. Any ideas ? Thanks Glenn _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
2012. gada 6. janvāris 19:37 Glenn Pierce <[hidden email]> rakstīja:
> Hi I would like some advice. > > I would like to use Gstreamer and Python to render a waveform of audio data. > This is not in realtime. I was thinking of maybe creating a > waveform-image sink to do this ? > > Are there any other elements that can do this or is there and easier way ? > > I was hoping to keep things simple by getting all the audio data after > passing through the audioconvert element and the using matplotlib to > plot it. > > Any ideas ? Glenn, I would suggest to take a look how it's done in Pitivi or Jokosher. Cheers, Peter. _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
If you want to render data with matplotlib or any external app, you can
simply generate the data samples with a command line (RMS for the left channel here, with a 10ms sample width): gst-launch -m uridecodebin name=decoder uri=file:///tmp/video.avi ! \ audioconvert ! level name=level interval=10000 ! fakesink | \ perl -lne 'print $1 if /rms.+?{\s+(-?\d+\.?\d*)/' Olivier On Fri, 2012-01-06 at 21:47 +0200, [hidden email] wrote: > 2012. gada 6. janvāris 19:37 Glenn Pierce <[hidden email]> rakstīja: > > Hi I would like some advice. > > > > I would like to use Gstreamer and Python to render a waveform of audio data. > > This is not in realtime. I was thinking of maybe creating a > > waveform-image sink to do this ? > > > > Are there any other elements that can do this or is there and easier way ? > > > > I was hoping to keep things simple by getting all the audio data after > > passing through the audioconvert element and the using matplotlib to > > plot it. > > > > Any ideas ? > > Glenn, > > I would suggest to take a look how it's done in Pitivi or Jokosher. > > Cheers, > Peter. > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Peteris Krisjanis-2
Thanks .
Pitivi's method looked good. On 6 January 2012 19:47, [hidden email] <[hidden email]> wrote: > 2012. gada 6. janvāris 19:37 Glenn Pierce <[hidden email]> rakstīja: >> Hi I would like some advice. >> >> I would like to use Gstreamer and Python to render a waveform of audio data. >> This is not in realtime. I was thinking of maybe creating a >> waveform-image sink to do this ? >> >> Are there any other elements that can do this or is there and easier way ? >> >> I was hoping to keep things simple by getting all the audio data after >> passing through the audioconvert element and the using matplotlib to >> plot it. >> >> Any ideas ? > > Glenn, > > I would suggest to take a look how it's done in Pitivi or Jokosher. > > Cheers, > Peter. > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Glenn Pierce
On 01/06/2012 06:37 PM, Glenn Pierce wrote:
> Hi I would like some advice. > > I would like to use Gstreamer and Python to render a waveform of audio data. > This is not in realtime. I was thinking of maybe creating a > waveform-image sink to do this ? In buzztard I decode the audio snippets to a wavetable array (using fdsink and mmap) and plot it from there using cairo. Stefan > Are there any other elements that can do this or is there and easier way ? > > I was hoping to keep things simple by getting all the audio data after > passing through the audioconvert element and the using matplotlib to > plot it. > > Any ideas ? > > Thanks > > Glenn > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |