gst-shark icon indicating copy to clipboard operation
gst-shark copied to clipboard

Taskset and gst-shark

Open Zherokt opened this issue 5 years ago • 2 comments
trafficstars

Hello,

I am trying to use a h264 decoding pipeline in GStreamer 1.0 (1.14) using GstShark to take some traces using the following command:

GST_DEBUG="GST_TRACER:7" GST_TRACERS="cpuusage;framerate" gst-launch-1.0 filesrc location=video.mp4 ! qtdemux name=demux demux.video_0 ! queue ! h264parse ! avdec_h264 ! fakesink sync=true -e

For some reason unknown to me the framerate Y axis shows up to 30 fps but the line of framerate value goes much higher above so it can not be seen in the graph.

Is it the expected behavior?, could somebody point me out to how could I fix this?

And, is there a way to get the whole pipe trace disabling the intermediate elements?

Zherokt avatar Jan 18 '20 12:01 Zherokt

Try placing the environment variables before taskset instead. Similar to

GST_DEBUG="GST_TRACER:7" GST_TRACERS="cpuusage;framerate" taskset -c 1 gst-launch-1.0 filesrc location=video.mp4 ! qtdemux name=demux demux.video_0 ! queue ! h264parse ! avdec_h264 ! fakesink sync=true -e

On Jan 18, 2020, at 06:26, Zherokt [email protected] wrote:

 Hello,

I am trying to use a h264 decoding pipeline in GStreamer 1.0 (1.14) using GstShark to take some traces using the following command:

taskset -c 1 GST_DEBUG="GST_TRACER:7" GST_TRACERS="cpuusage;framerate" gst-launch-1.0 filesrc location=video.mp4 ! qtdemux name=demux demux.video_0 ! queue ! h264parse ! avdec_h264 ! fakesink sync=true -e

I would need to assign the cores where GStreamer and Gstshark run, so I am trying to use taskset but it returns:

taskset: failed to execute GST_DEBUG=GST_TRACER:7: No such file or directory

Is it the expected behavior?, could somebody point me out to how could I perform this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

michaelgruner avatar Jan 18 '20 16:01 michaelgruner

Hello Michael and thank you!

I could find that was the issue not long after I posted so thats why I edited hehe, I was wondering if you would have a suggestion for my edit?

Thanks again!

Zherokt avatar Jan 19 '20 11:01 Zherokt