]> git.localhorst.tv Git - ffmpeg-test.git/commitdiff
allow passing in output URL from cmdline
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 15 Oct 2024 12:33:55 +0000 (14:33 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 15 Oct 2024 12:33:55 +0000 (14:33 +0200)
src/main.cpp

index 3cff7b83144bb3cacfbf6cac0c49f1eb3612840b..b6522150bcb2b08e56a5119f137aecc895da1511 100644 (file)
@@ -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);