cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Explorer
Explorer
191 Views
Registered: ‎08-04-2016

gst clockoverlay causes high CPU usage

Hello,

I need to use gst clockoverlay in my application to timestamp files while recording. But the problem is that the clockoverlay element causes the CPU usage to go from 25% while recording fullHD@60fps to 115% with timestamping!! Obviously, this is unacceptable because I need to record multiple channels simultaneously and perform a bunch of other tasks.

I constructed a simple passthrough pipeline below. This has a CPU usage of 72% while it's just 2% without the overlay.

gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! video/x-raw, width=1920, height=1080, framerate=60/1, format=NV12 ! queue ! clockoverlay time-format="%D%n%H:%M:%S" ! video/x-raw, width=1920, height=1080, framerate=60/1, format=NV12 ! kmssink bus-id="a0050000.v_mix"  alsasrc device=hw:0,0 ! audio/x-raw,rate=48000,channels=2 ! volume volume=1 ! tee ! queue ! audio/x-raw,rate=48000,channels=2 ! volume volume=0.7 ! alsasink device=hw:0,0

Is there a way to do hardware composition so that the CPU doesn't get so heavily involved. Can the overlay be mapped to the MALI GPU? Any other suggestions are welcome. The only restriction is that I cannot overlay the timestamp in HW on the input path because the timestamping is only for recorded files and the live display should show the original video.

 

Tags (1)
0 Kudos
Reply
0 Replies