audiolatency does not work well with encoders/decoders and queues

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

audiolatency does not work well with encoders/decoders and queues

daniel-2
Hi,
New audiolatency element has some problem if both encoders/decoders and
queue are used.

This works as expected:
gst-launch-1.0 audiolatency name=a print-latency=true ! audioconvert !
audioresample ! opusenc ! opusdec ! audioconvert ! audioresample ! a.

After inserting queue between encoder and decoder it stops printing
results periodically:
st-launch-1.0 audiolatency name=a print-latency=true ! audioconvert !
audioresample ! opusenc ! queue ! opusdec ! audioconvert ! audioresample
! a.

However when I tried to use queue without encoder/decoder, it started
working again:
gst-launch-1.0 audiolatency name=a print-latency=true ! audioconvert !
audioresample ! queue ! audioconvert ! audioresample ! a.

In second case audiolatency most probably does not collect measurements
at all. I have more complex pipeline in my app, which sends and receives
RTP streams. I tried to use audiolatency there with print-latency=true,
and also it does not work. I also periodically print values of last and
avg latency, and I always get zeroes there.

Is is possible to do something so audiolatency would work properly with
encoders/decoders and queues?

Regards,
Daniel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel