From 1a4c8bd860d0bf9ec84222a137365d76fab0c6e7 Mon Sep 17 00:00:00 2001 From: amukhsimov Date: Wed, 17 Mar 2021 18:15:24 +0500 Subject: [PATCH] ffmpeg restart delay --- source/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/main.cpp b/source/main.cpp index 58bccf8..edd9c4d 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -273,6 +273,7 @@ void *begin_rtmp(void *opinfo) { while (true) { cout << "Start ffmpeg" << endl; system(command); + sleep(1); } return 0;