Hi,
i have an update on this topic. i tried to debug further with vpu drivers as below.
# echo 0x100 > /sys/module/rk_vcodec/parameters/debug
:~# gst-launch-1.0 rkcamsrc device=/dev/video0 io-mode=dmabuf !
video/x-raw,format=YUY2,width=1920,height=1080,framrate=30/1 ! mpph264enc ! fp
sdisplaysink video-sink=fakesink text-overlay=false -ve
Setting pipeline to PAUSED ...
mpi: mpp version: dd3f0ee7 author: Herman Chen [enc_impl]: Rename and new enc_impl function
mpp_rt: NOT found ion allocator
mpp_rt: found drm allocator
rkcamsrc: Using ISP main path......
Pipeline is live and does not need PREROLL ...
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0: sync = true
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 103.627052] rkisp1_isp_sd_try_fmt drivers/media/platform/rockchip/isp1/rkisp1.c
[ 103.627720] stream 0 crop(0,0)/1920x1080
h264e_api: h264e_config MPP_ENC_SET_RC_CFG bps 15552000 [14580000 : 16524000]
/GstPipeline:pipeline0/GstRKCamSrc:rkcamsrc0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framrate=(fraction)30/1, framerate=(fraction)60/1, interlace-mode=(string)progressive, pixe4
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framrate=(fraction)30/1, framerate=(fraction)60/1, interlace-mode=(string)progressive, 4
/GstPipeline:pipeline0/GstMppH264Enc:mpph264enc0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framrate=(fraction)30/1, framerate=(fraction)60/1, interlace-mode=(string)progressive,4
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framrate=(fraction)30/1, framerate=(fraction)60/1, interlace-mode=(string)progressive,4
[ 103.642069] rkisp1: MIPI mis error: 0x00000303
[ 103.642492] rkisp1: MIPI mis error: 0x00000303
[ 103.642900] rkisp1: MIPI mis error: 0x00000303
[ 103.643307] rkisp1: MIPI mis error: 0x00000303
[ 103.644484] rkisp1: MIPI mis error: 0x00300303
requesting 2 MMAP buffers/GstPipeline:pipeline0/GstMppH264Enc:mpph264enc0.GstPad:src: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fract4
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, width=(int)1920, height=(int)1080, pixel-aspect-r4
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0.GstPad:sink: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, width=(int)1920, height=(int)1080, pixel-aspect-ratio=4
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0.GstGhostPad:sink: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, fr4
[ 103.855189] rk_vcodec: vpu2_enc task: 23 ms
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0/GstFakeSink:fakesink0: sync = true
[ 103.970704] rk_vcodec: vpu2_enc task: 21 ms
[ 104.070593] rk_vcodec: vpu2_enc task: 22 ms
[ 104.182475] rk_vcodec: vpu2_enc task: 22 ms
[ 104.292136] rk_vcodec: vpu2_enc task: 21 ms
[ 104.388185] rk_vcodec: vpu2_enc task: 21 ms
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 6, dropped: 0, current: 11.26, average: 11.26
[ 104.502755] rk_vcodec: vpu2_enc task: 22 ms
[ 104.593283] rk_vcodec: vpu2_enc task: 21 ms
[ 104.702783] rk_vcodec: vpu2_enc task: 21 ms
[ 104.830163] rk_vcodec: vpu2_enc task: 21 ms
[ 104.941063] rk_vcodec: vpu2_enc task: 21 ms
/GstPipeline:pipeline0/GstFPSDisplaySink:fpsdisplaysink0: last-message = rendered: 11, dropped: 0, current: 9.04, average: 10.13
[ 105.061744] rk_vcodec: vpu2_enc task: 22 ms
[ 105.170144] rk_vcodec: vpu2_enc task: 21 ms
[ 105.273190] rk_vcodec: vpu2_enc task: 22 ms
it looks like, VPU is being used at expected performance but still i get lesser FPS.