medooze / media-server-demo-node

Demo application for the Medooze Media Server for Node.js
MIT License
92 stars 48 forks source link

sdp for streamer #13

Closed laowangnj closed 6 years ago

laowangnj commented 6 years ago

streaming a video stream from webrtc to plain RTP, how to describe the stream for rtsp or a player( such as VLC).

murillo128 commented 6 years ago

you can create an SDP file used to capture this media stream using the following mapping

v=<version>
o= <owner> IN IP4 <IP4 ADDRESS>
c=IN IP4 <IP4 ADDRESS>
s=<STREAM "HUMAN" DESCRIPTION>
m=<media> <udp port> RTP/AVP <payload>
a=rtpmap:<payload> <encoding-name>/<clock-rate>[/<encoding-params>]
a=fmtp:<payload> <param>=<value>;...

A full example that includes a H264:

HOST_IP=68.195.194.250 VIDEO_PORT=5004

v=0
o=- 1208520720 2590316915 IN IP4 68.195.194.250
c=IN IP4 68.195.194.250
s=whatever
m=video 5004 RTP/AVP 96
a=rtpmap:96 H264/90000
laowangnj commented 6 years ago

thanks