How media server supports url parameters?
Media server supports URL parameters, with the following format:
Taking playing the test.mp4 file as an example:
rtsp://[serverip]:[serverport]/[application-name]/test.mp4?param1=value1¶m2=value2
Pararm1 and param2 represent URL parameters, while value1 and value2 represent the values of param1 and param2.
Note : The parameter value specified through the URL has a higher priority than the parameters configured in the configuration file.
The media server supports the following parameters:
Note : Unless otherwise specified, the parameters are valid for all streams.
srtp : Whether to enable SRTP, valid for rtsp stream.
Possible values
0 - disable srtp
1 - enable srtp
t : Specify the transmission method, valid for rtsp stream.
Possible values:
unicast
multicast
p : Specify transmission protocol, valid for rtsp stream.
Possible values:
udp : rtp over udp
tcp : rtp over tcp
ve : Specify video encoding
Possible values:
H264
H265
JPEG
MP4
fps :Specify video frame rate
w : Specify video width
h : Specify video height
vb :Specify video bitrate
ae :Specify audio encoding
Possible values:
PCMU :g711 ulaw
PCMA : g711 alaw
G726
G722
OPUS
AAC
sr : Specify audio samplerate
ch :Specify the number of audio channels
ab :Specify audio bitrate
Example:
Using unicast RTP over UDP mode, output video encoding as H264, resolution as 1920 * 1080, frame rate as 30, bit rate as 4000K, audio as AAC, sampling rate as 44100, stereo RTSP stream:
rtsp://[serverip]:[serverport]/[application-name]/test.mp4?t=unicast&p=udp&ve=h264&w=1920&h=1080&fps=30&vb=4000&ae=aac&sr=44100&ch=2