Parser filter not going to playing state when connected to alsasink.

Tim Müller tim at centricular.com
Fri Sep 9 08:30:44 UTC 2016


On Thu, 2016-09-08 at 22:02 -0700, Randeep wrote:

Hi,

> gst-launch-1.0 filesrc location= input ! parser_plugin !
> transform_plugin !
> audioconvert ! alsasink
> 
> In my view the transform filter goes to playing first which notifies
> to the parser plugin.
> 
> The main issue that i'm facing is the parser filter is going to
> playing state only after the EOS is reached. So that i cannot hear
> any audio output from alsasink. Can anyone please tell me what could
> be the reason behind this ?

You could test first with:

gst-launch-1.0 -v filesrc location=.. ! parser_plugin ! fakesink
silent=false

and then

gst-launch-1.0 -v filesrc location=.. ! parser_plugin !
transform_plugin ! fakesink silent=false

State changes happen from sinks towards sources. In a pipeline like this the sinks will change state asynchronously and wait first for a buffer to make it through to them.

In case of alsasink it might wait to fill up the ring buffer a little first. If your input clip is very very short, it might be expected behaviour that it only starts up on EOS.

Cheers
 -Tim


-- 
Tim Müller, Centricular Ltd - http://www.centricular.com

Join us at the GStreamer Conference: 10-11 October 2016 in Berlin,
Germany


More information about the gstreamer-devel mailing list