I use these commands to send and recieve rtp data:
Send rtp data to UDP port 5000
gst-launch-1.0 -v filesrc location = haizeiwang.mp4 ! decodebin ! x264enc ! rtph264pay ! udpsink host=192.168.1.101 port=5000
Receive rtp data from udp port 5000 and play it.
gst-launch-1.0 -v udpsrc port=5000 caps="application/x-rtp, media=video, clock-rate=90000, encoding-name=H264, payload=96, ssrc=3394826012, timestamp-offset=2215812541, seqnum-offset=46353" ! rtph264depay ! decodebin ! videoconvert ! autovideosink sync=false
But i can only get vedio(not very clear) , and there is no sound. Could i get vedio and audio at the same time? Which elememnts should i use? What the commands should be?
Thank you.