Question / Help Need urgent help with command line

streamline007

New Member
I see there are documentation about how to use command line and I am super confused. My requirement is open OBS and start streaming.

I have tried this plugin, and when I hit OBSCommand.exe /startstream I am getting just Error:Timeout in output. https://obsproject.com/forum/resources/command-line-tool-for-obs-websocket-plugin.615/

I also tried >C:\Program Files\obs-studio\bin\64bit\obs64.exe -multi -start -profile "1"
And that just launched OBS and does not start a stream.

What I am doing here wrong ? Any standard document available ?
 

streamline007

New Member
After trying everything possible I was able to get it "obs64 --startstreaming" to start streaming with following. I need to send streams with same profile and scene but to different servers and stream keys, any command line that can do that ?
 

Tarumes

Member
After trying everything possible I was able to get it "obs64 --startstreaming" to start streaming with following. I need to send streams with same profile and scene but to different servers and stream keys, any command line that can do that ?
https://github.com/illuspas/nginx-rtmp-win32

stream to rtmp://localhost/live
or rtmp://127.0.0.1/live
key is what you want

edit nginx.conf
Code:
worker_processes  1;

error_log  logs/error.log info;

events {
    worker_connections  1024;
}

rtmp {
    server {
        listen 1935;

        application live {
            live on;
            push rtmp://live-fra.twitch.tv/app/live_xxxxxxxxxxxxxxxxxxxxxx;
            push rtmp://serverb/key;
            push rtmp://serverc/key;
            push rtmp://serverd/key;
        }
    }
}

http {
    server {
        listen      8080;
        
        location / {
            root html;
        }
        
        location /stat {
            rtmp_stat all;
            rtmp_stat_stylesheet stat.xsl;
        }

        location /stat.xsl {
            root html;
        }
        
        location /hls { 
            #server hls fragments 
            types{ 
                application/vnd.apple.mpegurl m3u8; 
                video/mp2t ts; 
            } 
            alias temp/hls; 
            expires -1; 
        } 
    }
}
 

streamline007

New Member
Sorry but there is no nginx involved ... I have my own rtmp server setup where I want to push stream instead of what is in Stream settings. And I want to switch that via command line. I know I can change sevice.json file in profile but for that I have to update file everytime. So if there was some way to do it via commandline when I launch OBS.
 

Tarumes

Member
atm without switching profile nope
dont know if there is a way with python or lua script but from commandline only i dont think so
 
Top