Skip to content

RTSP Server, SDP

Martin Pulec edited this page Aug 14, 2018 · 21 revisions

RTSP

RTSP server can be run with following commands:

uv -t <your_capture> -c libavcodec:encoder=libx264 --video-protocol rtsp

or with audio

uv -t <your_capture> -c libavcodec:encoder=libx264 --video-protocol rtsp -s <audio_cap> --audio-codec u-law --audio-protocol rtsp

If you omit audio/video compression, some suitable will be chosen.

SDP

uv -t <video_capture> -s <audio_capture> --protocol sdp <receiver>

In this case, default compression will be chosen (can be changed similarly to RTSP, eg. also A-law or OPUS for audio). SDP file ug.sdp will be created which can then be played by the receiver given on command-line. Alternatively, the receiver can use (play) the URL provided by sender on terminal, eg.:

mplayer http://93.184.216.34:8080/ug.sdp

Clone this wiki locally