How to stream RTSP with Raspberry Pi

Now Raspberry PI can use Gstreamer to push the RTP protocol USB camera ,Now I want to use Gstreamer to push the RTSP to make it more player-friendly ,

gst-launch-1.0 -v v4l2src device=/dev/video4 do-timestamp=true ! video/x-h264, width=640, height=480, framerate=30/1 ! h264parse ! queue ! rtph264pay config-interval=10 pt=96 ! udpsink host= port=2001

  • Is it ok to change the above ‘rtph264pay’ to ‘rtsph264pay’?

Hi @qiuqiuggl,

RTSP and RTP are at different layers of the networking stack - rtsp uses rtp, and it doesn’t make sense to try to swap the way it’s packetised. There is no rtsph264pay element.

If setting up an RTSP server is for some reason essential,