Pipeline latency

José Rafael zerafael at gmail.com
Tue Mar 13 16:30:38 UTC 2018


 Hi All

I need a way to estimate the latency inserted by the pipeline, from source
to sink.
One source and one sink on each case.
One way I found was with tracers, but when using it with filesrc I get a
segmentation fault (trace below).

Would you suggest another way to get this information?

Rebuilding the packages is also an option.

Thanks for any help or advice.

Best Regards
Rafael

---
GST_DEBUG="GST_TRACER:7" GST_TRACERS=latency ./encoder --dst-host=127.0.0.1
--dst-port=10200  --vid-filename=/root/Sample_1280x720.yuv
--vid-width=1280  --vid-height=720  --vid-frame-rate=25 --dst-plain
(...)
0:00:00.023130186 18340      0x1ebaa30 DEBUG             GST_TRACER
gsttracer.c:163:gst_tracer_register:<registry0> update existing feature
0x1cf81b0 (latency)
0:00:00.023173239 18340      0x1ebaa30 DEBUG             GST_TRACER
gsttracer.c:163:gst_tracer_register:<registry0> update existing feature
0x1cf8270 (log)
0:00:00.023186850 18340      0x1ebaa30 DEBUG             GST_TRACER
gsttracer.c:163:gst_tracer_register:<registry0> update existing feature
0x1cf8330 (rusage)
0:00:00.023199345 18340      0x1ebaa30 DEBUG             GST_TRACER
gsttracer.c:163:gst_tracer_register:<registry0> update existing feature
0x1cf83f0 (stats)
0:00:00.023234725 18340      0x1ebaa30 TRACE             GST_TRACER
gsttracerrecord.c:110:gst_tracer_record_build_format: latency.class,
src=(structure)"scope\,\ type\=\(GType\)NULL\,\
related-to\=\(GstTracerValueScope\)GST_TRACER_VALUE_SCOPE_PAD\;",
sink=(structure)"scope\,\ type\=\(GType\)NULL\,\
related-to\=\(GstTracerValueScope\)GST_TRACER_VALUE_SCOPE_PAD\;",
time=(structure)"value\,\ type\=\(GType\)NULL\,\
description\=\(string\)\"time\\\ it\\\ took\\\ for\\\ the\\\ buffer\\\
to\\\ go\\\ from\\\ src\\\ to\\\ sink\\\ ns\"\,\
flags\=\(GstTracerValueFlags\)GST_TRACER_VALUE_FLAGS_AGGREGATED\,\
min\=\(guint64\)0\,\ max\=\(guint64\)18446744073709551615\;";
0:00:00.023289384 18340      0x1ebaa30 DEBUG             GST_TRACER
gsttracerrecord.c:124:gst_tracer_record_build_format: new format string:
latency, src=(string)%s, sink=(string)%s, time=(guint64)%lu;

(encoder:18340): GLib-GObject-WARNING **: g_object_set_valist: passed '0'
as denominator for `GstFraction'
Starting playback
Running...
MSG:1520958248814309:state-changed:enc_tx_sink:NULL->READY
MSG:1520958248814326:state-changed:enc_tx_rtppay:NULL->READY
MSG:1520958248814341:state-changed:enc_tx_enc:NULL->READY
MSG:1520958248814353:state-changed:enc_tx_videoparse:NULL->READY
MSG:1520958248814366:state-changed:enc_tx_src:NULL->READY
MSG:1520958248814380:state-changed:tx:NULL->READY
MSG:1520958248814397:state-changed:enc_tx_rtppay:READY->PAUSED
MSG:1520958248814413:state-changed:enc_tx_enc:READY->PAUSED
MSG:1520958248814434:state-changed:enc_tx_videoparse:READY->PAUSED
MSG:1520958248814449:state-changed:enc_tx_src:READY->PAUSED
MSG:1520958248834557:state-changed:enc_tx_sink:READY->PAUSED
MSG:1520958248834594:state-changed:tx:READY->PAUSED
0:00:00.050286313 18340      0x1eed5e0 TRACE             GST_TRACER :0::
latency, src=(string)enc_tx_src_src, sink=(string)enc_tx_sink_sink,
time=(guint64)10552137;
MSG:1520958248835001:state-changed:enc_tx_sink:PAUSED->PLAYING
MSG:1520958248835044:state-changed:enc_tx_rtppay:PAUSED->PLAYING
MSG:1520958248835061:state-changed:enc_tx_enc:PAUSED->PLAYING
MSG:1520958248835074:state-changed:enc_tx_videoparse:PAUSED->PLAYING
MSG:1520958248835087:state-changed:enc_tx_src:PAUSED->PLAYING
MSG:1520958248835103:state-changed:tx:PAUSED->PLAYING

(encoder:18340): GStreamer-CRITICAL **: gst_event_get_structure: assertion
'GST_IS_EVENT (event)' failed

(encoder:18340): GStreamer-CRITICAL **: gst_structure_id_get: assertion
'GST_IS_STRUCTURE (structure)' failed
Segmentation fault
---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180313/2069a30d/attachment.html>


More information about the gstreamer-devel mailing list