From ac50c069fc8da95f1d4ac52a860197c99fb2ae5e Mon Sep 17 00:00:00 2001 From: JDierkse Date: Mon, 7 Mar 2022 11:37:25 +0100 Subject: [PATCH] Enable Audio for RTSP Camera --- Recorder/RTSPRecorder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Recorder/RTSPRecorder.cpp b/Recorder/RTSPRecorder.cpp index 6ae8c6c..8ed7802 100644 --- a/Recorder/RTSPRecorder.cpp +++ b/Recorder/RTSPRecorder.cpp @@ -56,7 +56,7 @@ std::string RTSPRecorder::Video(ctpl::thread_pool* pThreadPool, const std::strin std::string fileName = GetFileName(m_settings, "mp4", dateTimeString, 0); std::stringstream command; - command << ffmpeg << " -rtsp_transport tcp -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"; + command << ffmpeg << " -rtsp_transport tcp -i \"" << url.str() << "\" -t 30 -c:v copy -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);