RTSP Audio Streaming test - envyen/docs GitHub Wiki
Gstreamer rtsp server is used to create a simple audio only rtsp server
gst-rtsp-server-1.1.90/examples/test-launch "( audiotestsrc ! audioconvert ! rtpL16pay name=pay0 )"
This serves an rtsp stream at rtsp://127.0.0.1:8554/test
Client Pipeline
gst-launch -vvv rtspsrc location=rtsp://127.0.0.1:8554/test protocols=tcp ! rtpL16depay ! alsasink
RTSP Communication
OPTIONS rtsp://127.0.0.1:8554/test RTSP/1.0 CSeq: 1 User-Agent: RealMedia Player Version 6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95) ClientChallenge: 9e26d33f2984236010ef6253fb1887f7 CompanyID: KnKV4M4I/B2FjJ1TToLycw== GUID: 00000000-0000-0000-0000-000000000000 RegionData: 0 PlayerStarttime: [28/03/2003:22:50:23 00:00] ClientID: Linux_2.4_6.0.9.1235_play32_RN01_EN_586 Date: Wed, 25 May 2016 04:12:27 GMT
RTSP/1.0 200 OK CSeq: 1 Public: OPTIONS, DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, SET_PARAMETER, TEARDOWN Server: GStreamer RTSP server Date: Wed, 25 May 2016 04:12:27 GMT
DESCRIBE rtsp://127.0.0.1:8554/test RTSP/1.0 CSeq: 2 Accept: application/sdp Date: Wed, 25 May 2016 04:12:27 GMT
RTSP/1.0 200 OK CSeq: 2 Content-Type: application/sdp Content-Base: rtsp://127.0.0.1:8554/test/ Server: GStreamer RTSP server Date: Wed, 25 May 2016 04:12:27 GMT Content-Length: 270
v=0 o=- 1188340656180883 1 IN IP4 127.0.0.1 s=Session streamed with GStreamer i=rtsp-server e=NONE t=0 0 a=tool:GStreamer a=type:broadcast a=control:* a=range:npt=0.000000- m=audio 0 RTP/AVP 96 c=IN IP4 127.0.0.1 a=rtpmap:96 L16/44100/1 a=control:stream=0
SETUP rtsp://127.0.0.1:8554/test/stream=0 RTSP/1.0 CSeq: 3 Transport: RTP/AVP/TCP;unicast;interleaved=0-1 Date: Wed, 25 May 2016 04:12:27 GMT
RTSP/1.0 200 OK CSeq: 3 Transport: RTP/AVP/TCP;unicast;interleaved=0-1;ssrc=88146922;mode="PLAY" Server: GStreamer RTSP server Session: mtabxjlcpuwpytya Date: Wed, 25 May 2016 04:12:27 GMT
PLAY rtsp://127.0.0.1:8554/test RTSP/1.0 CSeq: 4 Range: npt=0- Session: mtabxjlcpuwpytya Date: Wed, 25 May 2016 04:12:27 GMT
RTSP/1.0 200 OK CSeq: 4 RTP-Info: url=rtsp://127.0.0.1:8554/test/stream=0;seq=51132;rtptime=2093055907 Range: npt=0.000000- Server: GStreamer RTSP server Session: mtabxjlcpuwpytya Date: Wed, 25 May 2016 04:12:27 GMT
RTP Data Stream
PAUSE rtsp://127.0.0.1:8554/test RTSP/1.0 CSeq: 5 Session: mtabxjlcpuwpytya Date: Wed, 25 May 2016 04:12:47 GMT
RTSP/1.0 200 OK CSeq: 5 Server: GStreamer RTSP server Session: mtabxjlcpuwpytya Date: Wed, 25 May 2016 04:12:47 GMT
TEARDOWN rtsp://127.0.0.1:8554/test RTSP/1.0 CSeq: 6 Session: mtabxjlcpuwpytya Date: Wed, 25 May 2016 04:12:47 GMT
RTSP/1.0 200 OK CSeq: 6 Connection: close Server: GStreamer RTSP server Session: mtabxjlcpuwpytya Date: Wed, 25 May 2016 04:12:47 GMT