fix: face gallery reload add log
This commit is contained in:
parent
7c5094b1a5
commit
4468c4457c
@ -3,6 +3,7 @@ package httpapi
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@ -120,6 +121,7 @@ func (s *Server) handleFaceGallery(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
func (s *Server) reloadFaceGallery() {
|
||||
reloadSeq := time.Now().UnixMilli()
|
||||
log.Printf("[face_gallery] auto-reload seq=%d", reloadSeq)
|
||||
reloaded := 0
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
|
||||
defer cancel()
|
||||
|
||||
Binary file not shown.
3
scripts/ffmpeg-push.bat
Normal file
3
scripts/ffmpeg-push.bat
Normal file
@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
"C:\Users\Tellme\AppData\Local\Microsoft\WinGet\Packages\Gyan.FFmpeg_Microsoft.Winget.Source_8wekyb3d8bbwe\ffmpeg-8.0.1-full_build\bin\ffmpeg.exe" -re -stream_loop -1 -i C:\Users\Tellme\Pictures\人脸库\reg_008_unk_011_多人_正面_黑色鞋_白色鞋_1.mp4 -c copy -rtsp_transport tcp -f rtsp rtsp://10.0.0.49:8554/cam
|
||||
Loading…
Reference in New Issue
Block a user