Skip to content
Snippets Groups Projects
Commit df6abf27 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Andreas Traczyk
Browse files

video: set pixel format for macOS

Change-Id: I0d3c7a0ec4a09504b25e36e23c9b44c02aff3d71
parent 8e2e9f4d
Branches
No related tags found
No related merge requests found
......@@ -115,6 +115,7 @@ VideoDeviceImpl::getDeviceParams() const
params.input = params.name;
params.framerate = rate_;
params.format = "avfoundation";
params.pixel_format = "nv12";
params.width = current_size_.first;
params.height = current_size_.second;
return params;
......
......@@ -456,6 +456,7 @@ VideoInput::initAVFoundation(const std::string& display)
clearOptions();
decOpts_.format = "avfoundation";
decOpts_.pixel_format = "nv12";
decOpts_.input = "Capture screen 0";
decOpts_.framerate = 30;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment