Search code examples
javastreamingvideo-streamingrtprtsp

Payload Type to transmit the webcam stream


I would like to know the payload type, from the list that appears in the rfc3551 (http://www.ietf.org/rfc/rfc3551.txt page 33), to transmit, via RTSP, the webcam stream.

Can be any of them?

Thanks for the help. Greetings!


Solution

  • 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=mimetype: video/JPEG
    

    Greetings!