Skip to content

Commit

Permalink
misc: redesign to support es
Browse files Browse the repository at this point in the history
  • Loading branch information
jsm174 committed Nov 5, 2023
1 parent 169424d commit 043a03e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion VPXDisplayServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ void VPXDisplayServer::Capture(struct mg_connection *c, void *ev_data)
string szPosition = ":0.0+" + std::to_string(m_tableWidth) + ",0";

const char* command_line[] = {"/usr/bin/ffmpeg",
"-y",
"-f", "x11grab",
"-video_size", szSize.c_str(),
"-i", szPosition.c_str(),
Expand Down Expand Up @@ -275,6 +276,7 @@ void VPXDisplayServer::CaptureES(struct mg_connection *c, void *ev_data)

string szSize = std::to_string(m_tableWidth) + "x" + std::to_string(m_tableHeight);
const char* command_line[] = {"/usr/bin/ffmpeg",
"-y"
"-f", "x11grab",
"-video_size", szSize.c_str(),
"-i", ":0.0",
Expand Down Expand Up @@ -317,6 +319,7 @@ void VPXDisplayServer::CaptureES(struct mg_connection *c, void *ev_data)

string szSize = std::to_string(m_tableWidth) + "x" + std::to_string(m_tableHeight);
const char* command_line[] = {"/usr/bin/ffmpeg",
"-y",
"-f", "x11grab",
"-video_size", szSize.c_str(),
"-framerate", "30",
Expand All @@ -341,7 +344,7 @@ void VPXDisplayServer::CaptureES(struct mg_connection *c, void *ev_data)

std::string command = ss.str();
PLOGI << command;

struct subprocess_s subprocess;
if (!subprocess_create_ex(command_line, 0, environment, &subprocess)) {
int process_return;
Expand Down

0 comments on commit 043a03e

Please sign in to comment.