测试配置
This commit is contained in:
parent
e6485c33c3
commit
ba665ca5dc
@ -82,7 +82,7 @@ ffmpeg-support:
|
||||
rtp:
|
||||
input: -re -i http://10.10.10.200:5080/live/test.live.flv
|
||||
# input: -re -i
|
||||
output: -vcodec h264 -acodec aac -vf scale=640:-1 -f rtp_mpegts # -rtsp_transport tcp
|
||||
output: -vcodec h264 -acodec aac -preset ultrafast -vf scale=640:-1 -f rtp_mpegts # -rtsp_transport tcp
|
||||
debug:
|
||||
download: false
|
||||
input: true
|
||||
|
@ -36,7 +36,8 @@ gb28181:
|
||||
ip:
|
||||
# - 10.27.0.1
|
||||
- 192.168.0.195
|
||||
- 192.168.10.195
|
||||
- 172.16.1.90
|
||||
# - 192.168.10.195
|
||||
# - 10.10.10.20
|
||||
# - 10.27.0.6
|
||||
# [可选] 28181服务监听的端口
|
||||
@ -53,8 +54,8 @@ gb28181:
|
||||
expire: 3600
|
||||
transport: "UDP"
|
||||
server:
|
||||
ip: 192.168.10.32
|
||||
# ip: 192.168.3.12
|
||||
# ip: 192.168.10.32
|
||||
ip: 192.168.3.12
|
||||
port: 5060
|
||||
password: 123456
|
||||
domain: 4405010000
|
||||
@ -79,7 +80,7 @@ ffmpeg-support:
|
||||
rtp:
|
||||
download: -i
|
||||
input: -re -i
|
||||
output: -vcodec h264 -acodec aac -f rtp_mpegts
|
||||
output: -vcodec h264 -acodec aac -preset ultrafast -f rtp_mpegts
|
||||
debug:
|
||||
download: false
|
||||
input: false
|
||||
|
58
gb28181-mocking-starter/src/main/resources/logback-prod.xml
Normal file
58
gb28181-mocking-starter/src/main/resources/logback-prod.xml
Normal file
@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
||||
|
||||
<contextName>logback</contextName>
|
||||
<!--定义日志文件的存储地址 勿在 LogBack 的配置中使用相对路径-->
|
||||
<property name="log.path" value="/opt/gb28181/gb28181-docking-platform-mocking/logs" />
|
||||
|
||||
<!--输出到控制台-->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<!-- <filter class="ch.qos.logback.classic.filter.ThresholdFilter">-->
|
||||
<!-- <level>INFO</level>-->
|
||||
<!-- </filter>-->
|
||||
<!-- <withJansi>true</withJansi>-->
|
||||
<encoder>
|
||||
<!--<pattern>%d %p (%file:%line\)- %m%n</pattern>-->
|
||||
<!--格式化输出:%d:表示日期 %thread:表示线程名 %-5level:级别从左显示5个字符宽度 %msg:日志消息 %n:是换行符-->
|
||||
<pattern>%red(%d{yyyy-MM-dd HH:mm:ss.SSS}) %green([%thread]) %highlight(%-5level) %yellow(at %class.%method) (%file:%line\) - %cyan(%msg%n)</pattern>
|
||||
<!--<pattern>%d{yyyy-MM-dd HH:mm:ss} [%thread] %magenta(%-5level) %green([%-50.50class]) >>> %cyan(%msg) %n</pattern>-->
|
||||
<charset>UTF-8</charset>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- <!–输出到文件–>-->
|
||||
<!-- 按照每天生成日志文件 DEBUG以上级别的日志,仅用于测试环境,正式环境为info级别以上的日志-->
|
||||
<appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
|
||||
<!-- 文件路径 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
||||
<!--历史日志文件输出的文件名 -->
|
||||
<FileNamePattern>${log.path}/log-%d{yyyy-MM-dd}.%i.log</FileNamePattern>
|
||||
<!--日志文件保留天数 -->
|
||||
<MaxHistory>30</MaxHistory>
|
||||
<maxFileSize>500MB</maxFileSize>
|
||||
</rollingPolicy>
|
||||
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
|
||||
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符 -->
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}:%L - %msg%n</pattern>
|
||||
<charset>UTF-8</charset>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
||||
<!--与ThresholdFilter的区别,允许onmatch-->
|
||||
<!--设置日志级别 接收info级别的日志-->
|
||||
<level>DEBUG</level>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<!-- 如果appender里没有限定日志级别,那么root可以统一设置,如果没有配置那么控制台和文件不会输出任何日志,这里root的level不做限制-->
|
||||
<root level="INFO">
|
||||
<!-- 允许控制台输出-->
|
||||
<!-- <appender-ref ref="console" /> -->
|
||||
<!--<!– 允许文件输出–>-->
|
||||
<appender-ref ref="file" />
|
||||
</root>
|
||||
|
||||
<logger name="cn.skcks.docking.gb28181.core.sip.logger" level="INFO" />
|
||||
<logger name="cn.skcks.docking.gb28181" level="INFO" />
|
||||
</configuration>
|
Loading…
Reference in New Issue
Block a user