开发者

SDP message for screen stream

开发者_运维技巧

When transmitting files over RTSP, at one point, a message is sent SDP such that:

...
m=video 3000 RTP/AVP 32
a=rtpmap:32 MPV/90000
a=control:rtsp://192.168.0.201/video
a=mimetype: video/MPV
...

Information sent in the SDP message, does it have to be different if, instead of transmitting files, transmitting the webcam or screen stream?

If so, how should create the SDP message to transmit the webcam or screen stream?

Thanks for the help.


I found the answer to my question. The webcam stream to create the YUV format and for transmission over RTSP / RTP, we must turn to JPEG_RTP.

Furthermore, this means that the SDP message, the parameter "m " (http://www.ietf.org/rfc/rfc4566.txt page 22) and the parameter "a" (http://www.ietf.org/rfc/rfc4566.txt page 21) must have the value:

...
m=video 3000 RTP/AVP 26
a=rtpmap:26 JPEG/90000
a=control:rtsp://192.168.0.201/video
a=mimetype: video/JPEG
....

Greetings!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜