From: Daniel Karbach Date: Tue, 15 Oct 2024 12:33:55 +0000 (+0200) Subject: allow passing in output URL from cmdline X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=4dafaa534cafe4fb80b76ee4bec80b16bbf2b4ed;p=ffmpeg-test.git allow passing in output URL from cmdline --- 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);