We are using following gstreamer pipeline for recording video using IMX8MPLUS
gst-launch-1.0 -e v4l2src device=/dev/video2 ! video/x-raw,width=640,height=480 ! clockoverlay time-format="%D %H:%M %S" halignment=right valignment=bottom shaded-background=true font-desc="Sans,12" ! vpuenc_h264 bitrate=5500 ! h264parse ! mp4mux ! filesink location=test.mp4
we are using this pipeline as it consumes less CPU and power.
We need to record video using DMA so I have edited the pipeline
gst-launch-1.0 -e v4l2src device=/dev/video2 io-mode=dmabuf ! video/x-raw,width=640,height=480 ! clockoverlay time-format="%D %H:%M %S" halignment=right valignment=bottom shaded-background=true font-desc="Sans,12" ! vpuenc_h264 bitrate=5500 ! h264parse ! mp4mux ! filesink location=test.mp4
It was working fine but I cannot find any difference in CPU usage and power consumption between two pipelines.
Is there any methods to check that the video is actually getting recorded using the DMA?
Is vpuenc_h264 uses DMA by default in gstreamer ?
Do DMA play the role for lesser CPU usage ?