i use usb camera.
the following command is OK ,it run well .
$GSTL v4l2src device=/dev/video0 ! 'video/x-raw,width=640,height=480' ! imxv4l2sink
but follow cmmmand is error and you knwned.
gst-launch-1.0 v4l2src device=/dev/video0 ! vpuenc_h264 ! rtph264pay ! udpsink host=192.168.1.111