默认参数 和 偏移量 调整

This commit is contained in:
shikong 2024-01-17 16:29:18 +08:00
parent d3a828fa13
commit 028c178ef5
3 changed files with 12 additions and 5 deletions

View File

@ -21,7 +21,7 @@ public class Gb28181DeviceVideoApiConfig {
@NoArgsConstructor
@AllArgsConstructor
public static class Offset {
private Duration forward = Duration.of(30, ChronoUnit.SECONDS);
private Duration forward = Duration.of(0, ChronoUnit.SECONDS);
private Duration back= Duration.of(0, ChronoUnit.SECONDS);
}
}

View File

@ -72,6 +72,11 @@ proxy:
use-playback-to-download: false
proxy-media-url: 'https://10.10.10.200:18181/media'
# - 192.168.1.241
device-api:
offset:
forward: 0s
back: 0s
ffmpeg-support:
ffmpeg: D:\Soft\Captura\ffmpeg\ffmpeg.exe
ffprobe: D:\Soft\Captura\ffmpeg\ffprobe.exe
@ -79,6 +84,7 @@ ffmpeg-support:
# input: -i http://10.10.10.200:5080/live/test.live.flv
input: -re -i
output: -preset ultrafast -vcodec libx264 -acodec aac -movflags empty_moov+frag_keyframe+default_base_moof -f mp4 # -rtsp_transport tcp
# output: -enc_time_base -1 -preset ultrafast -tune zerolatency -vcodec libx264 -an -movflags faststart -f flv # -rtsp_transport tcp
download: -thread_queue_size 128 -i
debug:
download: false

View File

@ -24,8 +24,8 @@ spring:
username: root
password: 123456a
url: jdbc:mysql://192.168.1.241:3306/gb28181_docking_platform_dev?createDatabaseIfNotExist=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
# profiles:
# active: local
profiles:
active: local
cloud:
openfeign:
httpclient:
@ -78,7 +78,7 @@ proxy:
proxy-media-url: 'https://192.168.1.241:9022/mf-config/media'
device-api:
offset:
forward: 30s
forward: 0s
back: 0s
ffmpeg-support:
@ -88,7 +88,8 @@ ffmpeg-support:
rtp:
input: -re -i
#output: -preset ultrafast -tune zerolatency -vcodec libx264 -acodec aac -movflags empty_moov+frag_keyframe+default_base_moof -f mp4 # -rtsp_transport tcp
output: -enc_time_base -1 -preset ultrafast -tune zerolatency -vcodec libx264 -an -movflags empty_moov+frag_keyframe+default_base_moof -f mp4 # -rtsp_transport tcp
# output: -enc_time_base -1 -preset ultrafast -tune zerolatency -vcodec libx264 -an -movflags empty_moov+frag_keyframe+default_base_moof -f mp4 # -rtsp_transport tcp
output: -enc_time_base -1 -preset ultrafast -tune zerolatency -vcodec libx264 -an -movflags faststart -f mp4 # -rtsp_transport tcp
download: -thread_queue_size 128 -fflags +genpts -enc_time_base -1 -i
debug:
download: false