<div dir="auto"><div>Hi,<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 24 mars 2023, 06 h 15, Ali Buluş via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><p dir="auto">I can't figure out how to measure every plugin's resource usage for one frame.
For example in this pipeline:
gst-launch-1.0 rtspsrc location=<a rel="noreferrer">rtsp://192.168.0.10:8080/h264_ulaw.sdp</a> ! rtph264depay ! avdec_h264 ! videoconvert ! glimagesink
i want to see how many cpu,ram and gpu are using for just one frame.</p></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">The boundary of execution for "one frame" is ambiguous to start with. Where does rtsp protocol handling goes? How do you correlate packets captured as UDP packet and processed in the jitterbuffer and frames? How do you seperate cpu usage per frame for element running multiple threads internally and with buffering like codec/avdec_h264? I think this one of these simple idea that are just not possible in streaming. This is quite different from graphics pipeline in this regard.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<p dir="auto">If possible, i prefer doing this with python, by building the pipeline with Gst.ElementFactory.make(), not by building pipeline string (Gst.parse_launch()). </p>
<p dir="auto">Can you show me a way ?</p>
<p dir="auto">Thank You.</p></div>
</blockquote></div></div></div>