Question / Help No Video on certain services

Fenrir

Forum Admin
If you are still using OBS Classic, please note that this version is no longer supported. While we cannot and will not do anything to prevent you from using it, we cannot help with any issues that may come up. It is recommended that you update to OBS Studio.

Further information on why you should update (and how): https://obsproject.com/forum/threads/how-to-easily-switch-to-obs-studio.55820/

That said, we are not nginx support so it is hard to say what is happening. At a quick glance, the config looks fine. Check your access and error logs in nginx to verify there is nothing there when trying to access the stream playback.
 

ElderlyVincent

New Member
Fenrir, I am using OBS Studio on my "stream pc" so I don't think the version would cause this. I'll upgrade this evening though.

This is the error log: https://pastebin.com/SgqfbAkG

I just don't get why it would send audio only.

VLC isn't detecting any video at all. So not even a black screen.
 

ElderlyVincent

New Member
Thanks for the suggestion. I fixed it.

New config:
Code:
#user  nobody;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;

    server {
        listen       81;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   html;
            index  index.html index.htm;
        }

        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        # proxy the PHP scripts to Apache listening on 127.0.0.1:80
        #
        #location ~ \.php$ {
        #    proxy_pass   http://127.0.0.1;
        #}

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        #location ~ \.php$ {
        #    root           html;
        #    fastcgi_pass   127.0.0.1:9000;
        #    fastcgi_index  index.php;
        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
        #    include        fastcgi_params;
        #}

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
        #    deny  all;
        #}
    }


    # another virtual host using mix of IP-, name-, and port-based configuration
    #
    #server {
    #    listen       8000;
    #    listen       somename:8080;
    #    server_name  somename  alias  another.alias;

    #    location / {
    #        root   html;
    #        index  index.html index.htm;
    #    }
    #}


    # HTTPS server
    #
    #server {
    #    listen       443 ssl;
    #    server_name  localhost;

    #    ssl_certificate      cert.pem;
    #    ssl_certificate_key  cert.key;

    #    ssl_session_cache    shared:SSL:1m;
    #    ssl_session_timeout  5m;

    #    ssl_ciphers  HIGH:!aNULL:!MD5;
    #    ssl_prefer_server_ciphers  on;

    #    location / {
    #        root   html;
    #        index  index.html index.htm;
    #    }
    #}

}
rtmp {
        server {
                listen 1935;
                chunk_size 4096;

                application live {
                        live on;
                        record off;
                }
        }
}

Also on OBS Studio you need to make sure you untick force format converstion.

Hopefully if anyone else is having this issue this will solve it for them. For the record I am running NGINX 1.7.12.1 Lizard.
 

Fenrir

Forum Admin
You don't, if you mean in the Media Source. I can add the RTMP streams from my nginx server just fine with the default options in Media Source.
 

ElderlyVincent

New Member
At least for me if I didn't untick that then the audio didn't work only video (my problem flipped lol). Once I unticked that it worked. Not sure.
 
Top