DMA usage of gstreamer when using vpuenc_h264 Hardware Encoder in imx8mp

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

DMA usage of gstreamer when using vpuenc_h264 Hardware Encoder in imx8mp

1,021 次查看
karthicknarayanan
Contributor I

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 ? 

0 项奖励
回复
1 回复

973 次查看
jimmychan
NXP TechSupport
NXP TechSupport
0 项奖励
回复