From ea15817e5304066ce562ca87c99d3364bf512d85 Mon Sep 17 00:00:00 2001 From: JDierkse Date: Sun, 10 May 2020 20:47:54 +0200 Subject: [PATCH] Fix WatchBot Video Recording --- Recorder/WatchBotRecorder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Recorder/WatchBotRecorder.cpp b/Recorder/WatchBotRecorder.cpp index 1764d86..d32634b 100644 --- a/Recorder/WatchBotRecorder.cpp +++ b/Recorder/WatchBotRecorder.cpp @@ -56,7 +56,7 @@ std::string WatchBotRecorder::Video(ctpl::thread_pool* pThreadPool, const std::s fileName << m_settings.Path << "/" << m_settings.IpAddress << "/" << GetDateTimeString() << ".mp4"; 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()); Logging::Log(Logging::Severity::Debug, cmd);