Using gstreamer1.0 on Raspberry Pi 3B

Thank you for your advice. i have tried the command you suggest and as a result i got the test video on my PC. Then i tried to use the H264 camera. i got the camera video when i run the command below:

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480 ! x264enc ! queue ! rtph264pay config-interval=10 pt=96 ! udpsink host=192.168.2.1 port=5600

but a new problem: big delay, about 4 seconds. Then i find the configuration in /camera:

! h264parse
! queue
! rtph264pay config-interval=10 pt=96
! udpsink host=192.168.2.1:5600

so i add these in the command:

gst-launch-1.0 -v v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480 ! h264parse ! queue ! rtph264pay config-interval=10 pt=96 ! udpsink host=192.168.2.1 port=5600

return an error: Warning: Bad pipeline: Unable to link v4l2src0 to h264parse0 but i think these parts are necessary.
so i try this command:

gst-launch-1.0 -v fdsrc ! video/x-h264,width=640,height=480,framerate=24/1 ! h264parse ! queue ! rtph264pay config-interval=10 pt=96 ! udpsink host=192.168.2.1 port=5600

from https://discuss.bluerobotics.com/t/ardusub-submodules/194/15?u=rimu
with no error, but don’t have the video. just no response.

On my personal computer, I have always used the python code copied from the website:OpenCV · GitBook.
i have tried all i found but didn’t work. what should i do then? Thank you!