diff --git a/gb28181-mocking-service/src/main/java/cn/skcks/docking/gb28181/mocking/config/sip/DeviceProxyConfig.java b/gb28181-mocking-service/src/main/java/cn/skcks/docking/gb28181/mocking/config/sip/DeviceProxyConfig.java index 4bc2878..a34d28f 100644 --- a/gb28181-mocking-service/src/main/java/cn/skcks/docking/gb28181/mocking/config/sip/DeviceProxyConfig.java +++ b/gb28181-mocking-service/src/main/java/cn/skcks/docking/gb28181/mocking/config/sip/DeviceProxyConfig.java @@ -21,5 +21,5 @@ public class DeviceProxyConfig { /** * 代理该时间段内的历史视频查询请求 */ - private Duration proxyTimeRange = Duration.ofMinutes(3); + private Duration proxyTimeRange = Duration.ofMinutes(5); } diff --git a/gb28181-mocking-starter/src/main/resources/application.yml b/gb28181-mocking-starter/src/main/resources/application.yml index 48e64a5..9a915f4 100644 --- a/gb28181-mocking-starter/src/main/resources/application.yml +++ b/gb28181-mocking-starter/src/main/resources/application.yml @@ -76,7 +76,8 @@ proxy: device: # 代理的视频接口地址, 用于获取历史视频 # 参数 device_id, begin_time, end_time - url: http://192.168.2.3:18183 + #url: http://192.168.2.3:18183 + url: http://10.10.10.20:18183 ffmpeg-support: task: # 最大同时推流任务数, <= 0 时不做限制 @@ -94,14 +95,17 @@ ffmpeg-support: # input: false # output: false rtp: - input: -thread_queue_size 128 -re -i http://192.168.3.12:5081/live/test.live.flv - # input: -re -i - output: -tune zerolatency -vcodec libx264 -acodec aac -preset ultrafast -vf scale=640:-1 -f flv #rtp_mpegts - # output: -vcodec h264 -acodec aac -vf scale=640:-1 -f rtp_mpegts # -rtsp_transport tcp - download: -i E:\Repository\other\happytime-gb28181-device-x64\666.mp4 -filter:v "setpts=4.0*PTS" + #input: -thread_queue_size 128 -re -i http://192.168.3.12:5081/live/test.live.flv + input: -re -i + #output: -tune zerolatency -vcodec libx264 -acodec aac -preset ultrafast -vf scale=640:-1 -f flv #rtp_mpegts + #output: -vcodec libx264 -acodec aac -vf scale=640:-1 -f rtp_mpegts # -rtsp_transport tcp + output: -c:v copy -c:a copy -f flv + #download: -i E:\Repository\other\happytime-gb28181-device-x64\666.mp4 -filter:v "setpts=4.0*PTS" + download: -i + download-speed: 4.0 debug: - download: true - input: true + download: false + input: false output: false # [可选] 日志配置, 一般不需要改