diff --git a/Recorder/FoscamRecorder.cpp b/Recorder/FoscamRecorder.cpp index 8b97e33..5c419a2 100644 --- a/Recorder/FoscamRecorder.cpp +++ b/Recorder/FoscamRecorder.cpp @@ -62,7 +62,7 @@ std::string FoscamRecorder::Video(ctpl::thread_pool* pThreadPool, const std::str std::string fileName = GetFileName(m_settings, "mp4", dateTimeString); std::stringstream command; - command << ffmpeg << " -i \"" << url.str() << "\" -t 30 -c:v copy -an -strict experimental " << fileName << " > /dev/null 2>&1"; + command << ffmpeg << " -i \"" << url.str() << "\" -t 30 -c:v copy -an -strict experimental " << fileName << " > /dev/null 2>&1 ; " << ffmpeg << " -i " << fileName << " -vf \"select=eq(n\\,0)\" -q:v 3 " << fileName << ".jpg > /dev/null 2>&1"; std::string cmd(command.str()); Logging::Log(Logging::Severity::Debug, cmd); diff --git a/Recorder/VStarCamRecorder.cpp b/Recorder/VStarCamRecorder.cpp index 0475735..ca4ca26 100644 --- a/Recorder/VStarCamRecorder.cpp +++ b/Recorder/VStarCamRecorder.cpp @@ -59,7 +59,7 @@ std::string VStarCamRecorder::Video(ctpl::thread_pool* pThreadPool, const std::s std::string fileName = GetFileName(m_settings, "mp4", dateTimeString, 0); std::stringstream command; - command << ffmpeg << " -i \"" << url.str() << "\" -t 30 -c:v copy -c:a aac -strict experimental " << fileName << " > /dev/null 2>&1"; + command << ffmpeg << " -i \"" << url.str() << "\" -t 30 -c:v copy -c:a aac -strict experimental " << fileName << " > /dev/null 2>&1 ; " << ffmpeg << " -i " << fileName << " -vf \"select=eq(n\\,0)\" -q:v 3 " << fileName << ".jpg > /dev/null 2>&1"; std::string cmd(command.str()); Logging::Log(Logging::Severity::Debug, cmd); diff --git a/Recorder/WatchBotRecorder.cpp b/Recorder/WatchBotRecorder.cpp index 8b2a657..f582338 100644 --- a/Recorder/WatchBotRecorder.cpp +++ b/Recorder/WatchBotRecorder.cpp @@ -61,7 +61,7 @@ std::string WatchBotRecorder::Video(ctpl::thread_pool* pThreadPool, const std::s std::string fileName = GetFileName(m_settings, "mp4", dateTimeString); std::stringstream command; - command << ffmpeg << " -i \"" << url.str() << "\" -t 30 -c:v libx264 -pix_fmt yuv420p -profile:v main -level:v 3.1 -c:a aac -strict experimental " << fileName << " > /dev/null 2>&1"; + command << ffmpeg << " -i \"" << url.str() << "\" -t 30 -c:v libx264 -pix_fmt yuv420p -profile:v main -level:v 3.1 -c:a aac -strict experimental " << fileName << " > /dev/null 2>&1 ; " << ffmpeg << " -i " << fileName << " -vf \"select=eq(n\\,0)\" -q:v 3 " << fileName << ".jpg > /dev/null 2>&1"; std::string cmd(command.str()); Logging::Log(Logging::Severity::Debug, cmd);