minorityminor update

minorityminor update
This commit is contained in:
Vladimir Golubev 2023-03-31 19:55:26 +03:00
parent 6af02ed9f2
commit 615e731a1d
3 changed files with 3 additions and 3 deletions

View File

@ -3,4 +3,4 @@
#include "Options.h" #include "Options.h"
#include "../functions/addWatermark.h" #include "../functions/addWatermark.h"
#include "../functions/captureScreen.h" #include "../functions/captureScreen.h"
#include "../functions/screenRecoder.h" #include "../functions/screenRecorder.h"

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include "addWatermark.h" #include "addWatermark.h"
void screenRecoder(std::string file_video) void screenRecorder(std::string file_video)
{ {
std::string command = "ffmpeg -f gdigrab -framerate 60 -i desktop -c:v libx264 -preset ultrafast -tune zerolatency -crf 25 -pix_fmt yuv420p " + ("C:\\Users\\" + (std::string)std::getenv("USERNAME") + "\\Documents\\vos.team\\" + file_video); std::string command = "ffmpeg -f gdigrab -framerate 60 -i desktop -c:v libx264 -preset ultrafast -tune zerolatency -crf 25 -pix_fmt yuv420p " + ("C:\\Users\\" + (std::string)std::getenv("USERNAME") + "\\Documents\\vos.team\\" + file_video);
system(command.c_str()); system(command.c_str());

View File

@ -23,7 +23,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
} }
else if (wParam == 4) else if (wParam == 4)
{ {
screenRecoder(file_video); screenRecorder(file_video);
} }
break; break;
case WM_PAINT: case WM_PAINT: