Fix WatchBot Video Recording

This commit is contained in:
2020-05-10 20:47:54 +02:00
parent a47061017c
commit ea15817e53
+1 -1
View File
@@ -56,7 +56,7 @@ std::string WatchBotRecorder::Video(ctpl::thread_pool* pThreadPool, const std::s
fileName << m_settings.Path << "/" << m_settings.IpAddress << "/" << GetDateTimeString() << ".mp4"; fileName << m_settings.Path << "/" << m_settings.IpAddress << "/" << GetDateTimeString() << ".mp4";
std::stringstream command; std::stringstream command;
command << ffmpeg << " -i \"" << url.str() << "\" -t 30 -c:v copy -c:a aac -strict experimental " << fileName.str() << " > /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.str() << " > /dev/null 2>&1";
std::string cmd(command.str()); std::string cmd(command.str());
Logging::Log(Logging::Severity::Debug, cmd); Logging::Log(Logging::Severity::Debug, cmd);