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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Tim Müller
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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel