fix: 默认帧率改为30
This commit is contained in:
parent
b20827ee07
commit
ab125a1489
@ -1484,7 +1484,7 @@ func (u *UI) actionWizardCreateSource(w http.ResponseWriter, r *http.Request) {
|
||||
Config: service.VideoSourceConfig{
|
||||
URL: rtspURL,
|
||||
Resolution: "1920x1080",
|
||||
FPS: "25",
|
||||
FPS: "30",
|
||||
},
|
||||
}
|
||||
if err := u.preview.SaveVideoSourceAsset(asset, ""); err != nil {
|
||||
@ -3787,8 +3787,8 @@ func (u *UI) actionVideoSourceCSVTemplate(w http.ResponseWriter, r *http.Request
|
||||
w.Header().Set("Content-Disposition", "attachment; filename=video_sources_template.csv")
|
||||
w.Write([]byte("\xef\xbb\xbf")) // BOM for Excel
|
||||
w.Write([]byte("name,source_type,area,url,resolution,fps,description\n"))
|
||||
w.Write([]byte("车间东门,rtsp,车间A,rtsp://192.168.1.100:554/stream1,1920x1080,25,\n"))
|
||||
w.Write([]byte("车间西门,rtsp,车间A,rtsp://192.168.1.101:554/stream1,1920x1080,25,\n"))
|
||||
w.Write([]byte("车间东门,rtsp,车间A,rtsp://192.168.1.100:554/stream1,1920x1080,30,\n"))
|
||||
w.Write([]byte("车间西门,rtsp,车间A,rtsp://192.168.1.101:554/stream1,1920x1080,30,\n"))
|
||||
}
|
||||
|
||||
func (u *UI) actionVideoSourceCSVImport(w http.ResponseWriter, r *http.Request) {
|
||||
@ -3876,7 +3876,7 @@ func (u *UI) actionVideoSourceCSVImport(w http.ResponseWriter, r *http.Request)
|
||||
resolution = "1920x1080"
|
||||
}
|
||||
if fps == "" {
|
||||
fps = "25"
|
||||
fps = "30"
|
||||
}
|
||||
asset := service.ConfigVideoSourceAsset{
|
||||
Name: name,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user