Hi,
I try to use gstreamer-imx for recording camera stream, and it works as the following,
gst-launch-1.0 imxv4l2videosrc device=/dev/video0 num-buffers=1800 do-timestamp=true ! video/x-raw,format=I420,width=1280,height=720,framerate=30/1 ! queue ! imxvpuenc_h264 bitrate=5000 gop-size=30 ! queue ! h264parse ! matroskamux ! filesink location=/run/media/mmcblk1p1/output_HD_30_2.mkv sync=false &
with low cpu usage (<8%), but when I add the element clockoverlay to the pipeline, e.g.
gst-launch-1.0 imxv4l2videosrc device=/dev/video0 num-buffers=1800 do-timestamp=true ! video/x-raw,format=I420,width=1280,height=720,framerate=30/1 ! queue ! clockoverlay auto-resize=false time-format="%Y/%m/%d %H:%M:%S" ! imxvpuenc_h264 bitrate=5000 gop-size=30 ! queue ! h264parse ! matroskamux ! filesink location=/run/media/mmcblk1p1/output_HD_30_2_OSD.mkv sync=false &
then the cpu usage become very high (>30%),
how to solve this problem ? any suggestion will be welcome
Best Regards,
Huang
May I ask how the problem was resolved?
Thank you
Hello,
perhaps the following helps.
how to support subtitle on the imx6Q board
Have a great day,
Yuri
------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer
button. Thank you!