From 4dafaa534cafe4fb80b76ee4bec80b16bbf2b4ed Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Tue, 15 Oct 2024 14:33:55 +0200 Subject: [PATCH] allow passing in output URL from cmdline --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 3cff7b8..b652215 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -19,9 +19,11 @@ int main(int argc, char**argv) { const int HEIGHT = 720; const int FPS = 60; //const char *URL = "rtmp://localhost/horstiebot"; - const char *URL = "rtmp://localhost/localhorsttv"; + //const char *URL = "rtmp://localhost/localhorsttv"; //const char *URL = "out.flv"; + const char *URL = argc > 1 ? argv[1] : "rtmp://localhost/localhorsttv"; + app::Application app(WIDTH, HEIGHT, FPS, URL); signal(SIGINT, stop); -- 2.39.2