Mpph264enc not working properly

Hi,
Has anyone been able to work with the Gstreamer plugin mpph264enc? Any pipeline I try with it doesn’t work. Nor just doesn’t start or it freezes the OS. I’m test it with a USB UVC ArduCam with the following pipeline:

gst-launch-1.0 v4l2src device=/dev/video4 ! video/x-raw,framerate=30/1,widht=1280,height=720,format=YUY2 ! mpph264enc ! filesink location=test2_mpph264enc_1280x720_30fps_h264.mp4

that results in the error:

Rga built version:06fc7c4 Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error. Additional debug info: ../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: streaming stopped, reason not-negotiated (-4) Execution ended after 0:00:00.003254476 Setting pipeline to NULL ... Freeing pipeline ...

I also tried to use rkv4l2 but can’t install it. There are repositories like this one but at the configuration step I get the message:

configure: *** Plug-ins with dependencies that will NOT be built:
	rkv4l2

I’m working with:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal

Remove framerate=30/1 and try again. Or format=YUYV

Same error.
If changing format to format=YUYV I get the error:

Caught exception: gst_parse_error: could not link v4l2src0 to mpph264enc0, neither element can handle caps video/x-raw, widht=(int)1280, height=(int)720, format=(string)YUYV (3)