synchronize to elements ?

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

synchronize to elements ?

Glenn Pierce
Hi I have a pipeline that decodes an ogg file and passes it through the vader element from pocketsphinx
to detect silent regions. I attach to a signal in the vader element to print the current timestamp to log
these silent regions. I also play to the pulse audio sink.

The pipeline is

filesrc name=source ! oggdemux ! vorbisdec ! audioconvert ! audioresample ! vader name=vad auto-threshold=true ! pulsesink

The problem is its hard to debug as the vader element runs ahead of the off playing.
Is there a way to synchronize the vader and pulsesink elements so I can print  the timestamp of the silent regions 
at the same time I hear them being played ?

Thanks


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: synchronize to elements ?

Glenn Pierce
Solved it. It was working as expected. Not a gstreamer issue.

On 17 November 2011 10:53, Glenn Pierce <[hidden email]> wrote:
Hi I have a pipeline that decodes an ogg file and passes it through the vader element from pocketsphinx
to detect silent regions. I attach to a signal in the vader element to print the current timestamp to log
these silent regions. I also play to the pulse audio sink.

The pipeline is

filesrc name=source ! oggdemux ! vorbisdec ! audioconvert ! audioresample ! vader name=vad auto-threshold=true ! pulsesink

The problem is its hard to debug as the vader element runs ahead of the off playing.
Is there a way to synchronize the vader and pulsesink elements so I can print  the timestamp of the silent regions 
at the same time I hear them being played ?

Thanks



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel