Skip to content

Commit ef4b61a

Browse files
committed
fix: bump mpdecimate modet timeout
1 parent 9f6a7a5 commit ef4b61a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func main() {
276276
for range len(config.Inputs) { // todo: configurable worker count
277277
go func() {
278278
doWork := func(work performMotionDetectionParams) {
279-
ctx, cancel := context.WithTimeout(ctx, time.Minute)
279+
ctx, cancel := context.WithTimeout(ctx, 4*time.Minute)
280280
defer cancel()
281281

282282
recordingID := path.Base(work.RecordingPath)
@@ -1056,7 +1056,7 @@ func motionTimeline(ctx context.Context, fpath string) ([]motion, error) {
10561056
// }
10571057

10581058
// todo: this works better for motion detection imo, but it is heavy
1059-
motionCtx, motionCancel := context.WithTimeout(ctx, time.Minute)
1059+
motionCtx, motionCancel := context.WithTimeout(ctx, 3*time.Minute)
10601060
defer motionCancel()
10611061
ffmpeg := exec.CommandContext(
10621062
motionCtx,

0 commit comments

Comments
 (0)