Use v4l2h264enc, I try encode high profile for H.264
do gstream command:gst-launch-1.0 videotestsrc do-timestamp=true is-live=true num-buffers=200 !
video/x-raw, format=YUY2, width=1920, height=1080,framerate=30/1 ! v4l2h264enc extra-controls="encode,frame_level_rate_control_enable=1,h264_mb_level_rate_control=1,video_gop_size=30,video_bitrate=2048000,video_bitrate_mode=1,h264_level=11,h264_profile=4;" !
h264parse ! mp4mux ! filesink location=/mnt/nfs/NX/media//test.mp4
But test.mp4 show profile is "Constrained Baseline"
Run "v4l2-ctl /dev/video0 -L"