Files
gb28181/GB28181Device/config.xml
2024-12-15 20:42:32 +08:00

39 lines
3.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<config>
<server_ip>192.168.3.36</server_ip> <!-- sip server ip address -->
<server_port>5060</server_port> <!-- sip server port -->
<server_id>34020000002000000001</server_id> <!-- server id -->
<server_domain>3402000000</server_domain> <!-- server domain -->
<local_port>0</local_port> <!-- local sip port, 0 - assigned by the system -->
<device_id>34020000001110000001</device_id> <!-- device id -->
<device_name>Happytimesoft</device_name> <!-- device name -->
<password>12345678</password> <!-- login password -->
<protocol>udp</protocol> <!-- sip signaling protocol, udp or tcp -->
<media_protocol>tcp</media_protocol> <!-- media transfer protocol, udp or tcp, valid for active outbound call sessions -->
<reg_expires>3600</reg_expires> <!-- register expires, unit is second -->
<heartbeat_interval>10</heartbeat_interval> <!-- heartbeat interval, unit is second -->
<heartbeat_count>0</heartbeat_count> <!-- heartbeat timeout count, if the specified number of heartbeat responses is not received, it will be re-register, 0 means no check -->
<media_base_port>19000</media_base_port> <!-- Media transmission base port -->
<log_enable>1</log_enable> <!-- 0-disable log, 1-enable log -->
<log_level>1</log_level> <!-- 0:TRACE,1:DEBUG,2:INFO,3:WARNING,4:ERROR,5:FATAL -->
<channel> <!-- channel configuration, you can configure multiple -->
<cid>34020000001310000001</cid> <!-- channel id -->
<cname>channel1</cname> <!-- channel name -->
<media_url>test.mp4</media_url> <!-- media url, file path,rtsp/rtmp/srt stream address, or videodevice or screenlive or videodevice+audiodevice -->
<output>
<video> <!-- Specify the video output parameters -->
<codec>H264</codec> <!-- Specify the video stream codec, H264,H265,MP4 -->
<width></width> <!-- Specify the output video width, If 0 use the original video width (camera stream use the default width) -->
<height></height> <!-- Specify the output video height, If 0 use the original video height (camera stream use the default height) -->
<framerate></framerate> <!-- Specify the output video framerate, If 0 use the original video framerate (camera stream use the default value 25) -->
<bitrate></bitrate> <!-- Specify the output video bit rate, if 0, automatically calculate the output bit rate, the unit is kb/s -->
</video>
<audio> <!-- Specify the audio output parameters -->
<codec>G711A</codec> <!-- Specify the audio stream codec, G711A,G711U,AAC -->
<samplerate>8000</samplerate> <!-- Specify the audio sample rate -->
<channels>1</channels> <!-- Specify the audio channel number, 1 is mono, 2 is stereo, If 0 use the original audio channel number (audio device stream use the default value 2) -->
<bitrate></bitrate> <!-- Specify the output audio bit rate, if 0, automatically calculate the output bit rate, the unit is kb/s -->
</audio>
</output>
</channel>
</config>