Decodebin and queue

Duchassin Frederic duchassin at sefram.fr
Thu Sep 7 08:51:34 UTC 2017


Hello,

I try reading latency of alsasink and I get following result:
min latency : 940000000 ns
max latency : 2940000000 ns

even putting 400ms, 1s, 2s, 5 s there is always problems (image or sound failure)

Had to say that I'm working on an embedded device. (imx6 target)

BR

Frédéric


-----Message d'origine-----
De : gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] De la part de Nicolas Dufresne
Envoyé : mercredi 6 septembre 2017 18:31
À : Discussion of the development of and with GStreamer
Objet : Re: Decodebin and queue

Le mercredi 06 septembre 2017 à 16:49 +0200, Duchassin Frederic a écrit :
> I don't read the latency value.
> I just put 1ms. 
> But I get no error. Just the sound is not present.

By forcing it to 1ms, you are likely reducing the latency, that can explain why you lost audio (everything is late). Try something in the range of 400ms. alsasink default latency is 200ms (can be configured through buffer-time property).

> 
> BR
> 
> Frederic
> 
> 
> 
> -----Message d'origine-----
> De : gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedeskto
> p.org] De la part de Nicolas Dufresne
> Envoyé : mercredi 6 septembre 2017 15:04 À : Discussion of the 
> development of and with GStreamer Objet : Re: Decodebin and queue
> 
> Le mercredi 06 septembre 2017 à 12:05 +0200, Duchassin Frederic a 
> écrit :
> > Hello Nicolas,
> > 
> > I try to increase the latency (using gst_pipeline_set_latency()) but 
> > I lost the sound !
> 
> How much did you increase it ? Maybe you don't have enough buffering.
> 
> > 
> > BR
> > 
> > Frédéric
> > 
> > 
> > 
> > -----Message d'origine-----
> > De : gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesk
> > to
> > p.org] De la part de Nicolas Dufresne Envoyé : lundi 4 septembre 
> > 2017 17:19 À : Discussion of the development of and with GStreamer 
> > Objet :
> > Re: 
> > Decodebin and queue
> > 
> > Le lundi 04 septembre 2017 à 15:48 +0200, Duchassin Frederic a écrit
> > :
> > > I can't use decodebin3. I'm working in a embedded device and 
> > > gstreamer version is 1.0. Decodebin3 is not installed.
> > > I don't really know why this queue between parser and decoder 
> > > gives better result...
> > > So what I should do ? build the whole pipeline myself ?
> > 
> > When, everyone can update GStreamer, it's just a matter of effort 
> > really. See by yourself what's the best use of your time.
> > 
> > What probably happens is that your decoder is barely fast enough.
> > You
> > could also try and increase the latency (see 
> > gst_pipeline_set_latency()).
> > 
> > regards,
> > Nicolas
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> > 
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list