diff --git a/internal/web/ui.go b/internal/web/ui.go index 39c8ce9..90a96e3 100644 --- a/internal/web/ui.go +++ b/internal/web/ui.go @@ -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,