From 4e6e9974fb0a026258b8e728d6fbf4f0d467ede5 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 29 Jul 2021 16:24:29 +0200 Subject: [PATCH] Fix video/audio sync when recording display --- include/NvFBCLibrary.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/NvFBCLibrary.hpp b/include/NvFBCLibrary.hpp index 2a05566..2cc09d8 100644 --- a/include/NvFBCLibrary.hpp +++ b/include/NvFBCLibrary.hpp @@ -129,10 +129,10 @@ public: *display_height = height; } create_capture_params.eTrackingType = tracking_type; - //create_capture_params.dwSamplingRateMs = 1000 / fps; + create_capture_params.dwSamplingRateMs = 1000 / fps; // Cant use this, it breaks when a compositor is used //create_capture_params.bAllowDirectCapture = NVFBC_TRUE; - create_capture_params.bPushModel = NVFBC_TRUE; + //create_capture_params.bPushModel = NVFBC_TRUE; if(tracking_type == NVFBC_TRACKING_OUTPUT) create_capture_params.dwOutputId = output_id;