Feature/video in #3

Merged
itten merged 12 commits from feature/video-in into main 2026-07-05 12:57:40 +03:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 0b5b113d4e - Show all commits
+2 -2
View File
@@ -34,7 +34,7 @@ struct NDIContext {
class NDIOutNode : public dmf::NodeBase { class NDIOutNode : public dmf::NodeBase {
void run() override { void run() override {
// --- video flow (optional) --- // --- video flow (optional) ---
bool has_video = config().contains("flow_id"); bool has_video = config().contains("video_flow_id");
int width = 1920; int width = 1920;
int height = 1080; int height = 1080;
@@ -45,7 +45,7 @@ class NDIOutNode : public dmf::NodeBase {
uint32_t video_stride = 0; uint32_t video_stride = 0;
if (has_video) { if (has_video) {
const auto flow_info = config().at("flow_id"); const auto flow_info = config().at("video_flow_id");
flow_id = flow_info.at("id").get<std::string>(); flow_id = flow_info.at("id").get<std::string>();
width = flow_info.value("width", 1920); width = flow_info.value("width", 1920);
height = flow_info.value("height", 1080); height = flow_info.value("height", 1080);
+1 -1
View File
@@ -6,7 +6,7 @@
"edges": [ "edges": [
{ {
"from": "videoin", "from_port": "video_flow_id", "from": "videoin", "from_port": "video_flow_id",
"to": "ndiout", "to_port": "flow_id", "to": "ndiout", "to_port": "video_flow_id",
"format": { "kind": "video", "width": 1920, "height": 1080, "fps_num": 25, "fps_den": 1 } "format": { "kind": "video", "width": 1920, "height": 1080, "fps_num": 25, "fps_den": 1 }
} }
] ]