v1.5.t17
Fixed an invalid argument in the ffmpeg command from vcodec to -vcodec. Also added a 10sec delay to simulate a running ffmpeg if it fails for what ever reason.
This commit is contained in:
parent
b470915276
commit
736b8c5ec4
|
@ -35,7 +35,7 @@ using namespace cv;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace std::filesystem;
|
using namespace std::filesystem;
|
||||||
|
|
||||||
#define APP_VER "1.5.t16"
|
#define APP_VER "1.5.t17"
|
||||||
#define APP_NAME "Motion Watch"
|
#define APP_NAME "Motion Watch"
|
||||||
|
|
||||||
struct shared_t
|
struct shared_t
|
||||||
|
|
|
@ -69,7 +69,7 @@ void recLoop(shared_t *share)
|
||||||
for (auto i = 0; i < share->secs; i += 10)
|
for (auto i = 0; i < share->secs; i += 10)
|
||||||
{
|
{
|
||||||
auto bufPath = cleanDir(share->buffDir) + "/" + to_string(i) + "." + share->vidExt;
|
auto bufPath = cleanDir(share->buffDir) + "/" + to_string(i) + "." + share->vidExt;
|
||||||
auto cmd = "ffmpeg -hide_banner -i " + share->recordUrl + " -y vcodec " + share->vidCodec + " -movflags faststart -t 10 " + bufPath;
|
auto cmd = "ffmpeg -hide_banner -i " + share->recordUrl + " -y -vcodec " + share->vidCodec + " -movflags faststart -t 10 " + bufPath;
|
||||||
|
|
||||||
recLog("ffmpeg_run: " + cmd, share);
|
recLog("ffmpeg_run: " + cmd, share);
|
||||||
|
|
||||||
|
@ -91,6 +91,8 @@ void recLoop(shared_t *share)
|
||||||
{
|
{
|
||||||
remove(bufPath);
|
remove(bufPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sleep(10);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user