gst-rtsp-server is a library on top of GStreamer for building an real-time streaming protocol server (RTSP). RTSP is a presentation-layer protocol that lets you command media servers via pause and play capabilities, whereas RTP is the transport protocol used to move the data. RTSP is a dependable technology used to control audio/video transmission between two endpoints and facilitate the transportation of low-latency streaming content across the Internet.
To build the open source rtsp_server_application, see AR76505.
To run the demo:
- Connect the target board and host machine in loopback.
- Run the following pipeline on the target
board:
./rtsp_server_app "v4l2src io-mode=4 device=/dev/video0 ! \ video/x-raw,format=NV12,width=1920,height=1080,framerate=60/1 ! \ omxh265enc prefetch-buffer=true gop-length=60 control-rate=2 target-bitrate=10000 \ filler-data=false ! h265parse ! rtph265pay name=pay0 pt=96" "192.168.2.222" "50000"
- On the host machine, open the following URL in the VLC player: rtsp://192.168.2.222:50000/test