Jump to content

Streaming Problem


Recommended Posts

Posted

Hey Guy´s,

first of all here´s my Emby-Server Environment:

 

System:

AMD 5350

4GB DDR3 RAM

Debian 8

 

Nginx reverse Proxy to reach Emby over the WAN:

server {
    listen 443 ssl;
    listen [::]:443 ssl;
    ssl_certificate     /etc/ssl/certs/openmediavault-aff560f5-e5ed-4d99-999a-c99ca1f4c046.crt;
    ssl_certificate_key /etc/ssl/private/openmediavault-aff560f5-e5ed-4d99-999a-c99ca1f4c046.key;
    server_name emby.mysite.de;
    index index.html;
    access_log /var/log/nginx/1c0b8dd1-deda-4fa6-b157-28427511ce88-access.log;
    error_log  /var/log/nginx/1c0b8dd1-deda-4fa6-b157-28427511ce88-error.log;
    large_client_header_buffers 4 8k;
    location /.well-known/acme-challenge { root /var/www/openmediavault;  }

	ssl_session_timeout 30m;
	ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
	ssl_session_cache shared:SSL:10m;

	if ($scheme = http) {
	  return 301 https://$server_name$request_uri;
	}

	location / {
		proxy_pass http://192.168.2.101:8096; # Local emby ip and non SSL port

		proxy_hide_header X-Powered-By;
		proxy_set_header Range $http_range;
		proxy_set_header If-Range $http_if_range;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header Host $host;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

		#Next three lines allow websockets
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection "upgrade";
	}
}

server {
    listen 80;
    listen [::]:80;
    server_name emby.mysite.de
    access_log /var/log/nginx/99e70848-4f1f-4327-b041-c918f0b559b4-access.log;
    error_log  /var/log/nginx/99e70848-4f1f-4327-b041-c918f0b559b4-error.log;
    large_client_header_buffers 4 8k;
    return 301 https://$host$request_uri;
}

On Emby Server Config, I set in the Hosting Tab the Public Port to 443 and my external Domain name with the *.pfx Certificate.

 

 

Now to my Problem:

I use Kodi with the Ember for Kodi Plugin and set the Server to my Domain Name.

If i start a Movie for Direct Stream the Movie starts for a few minutes and then suddenly stops.

In the Webclient all works fine with the External Domain address, also when using Transcoding.

If i change the server address to the local IP in the Kodi Addon its still working, so it seems a problem with the external usage.

 

It would be very nice if something can help me to locate the Problem.

 

 

 

 

 

 

server-63638151026.txt

kodi.log

pir8radio
Posted (edited)

Hey Guy´s,

first of all here´s my Emby-Server Environment:

 

System:

AMD 5350

4GB DDR3 RAM

Debian 8

 

Nginx reverse Proxy to reach Emby over the WAN:

server {
    listen 443 ssl;
    listen [::]:443 ssl;
    ssl_certificate     /etc/ssl/certs/openmediavault-aff560f5-e5ed-4d99-999a-c99ca1f4c046.crt;
    ssl_certificate_key /etc/ssl/private/openmediavault-aff560f5-e5ed-4d99-999a-c99ca1f4c046.key;
    server_name emby.mysite.de;
    index index.html;
    access_log /var/log/nginx/1c0b8dd1-deda-4fa6-b157-28427511ce88-access.log;
    error_log  /var/log/nginx/1c0b8dd1-deda-4fa6-b157-28427511ce88-error.log;
    large_client_header_buffers 4 8k;
    location /.well-known/acme-challenge { root /var/www/openmediavault;  }

	ssl_session_timeout 30m;
	ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
	ssl_session_cache shared:SSL:10m;

	if ($scheme = http) {
	  return 301 https://$server_name$request_uri;
	}

	location / {
		proxy_pass http://192.168.2.101:8096; # Local emby ip and non SSL port

		proxy_hide_header X-Powered-By;
		proxy_set_header Range $http_range;
		proxy_set_header If-Range $http_if_range;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header Host $host;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

		#Next three lines allow websockets
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection "upgrade";
	}
}

server {
    listen 80;
    listen [::]:80;
    server_name emby.mysite.de
    access_log /var/log/nginx/99e70848-4f1f-4327-b041-c918f0b559b4-access.log;
    error_log  /var/log/nginx/99e70848-4f1f-4327-b041-c918f0b559b4-error.log;
    large_client_header_buffers 4 8k;
    return 301 https://$host$request_uri;
}

On Emby Server Config, I set in the Hosting Tab the Public Port to 443 and my external Domain name with the *.pfx Certificate.

 

 

Now to my Problem:

I use Kodi with the Ember for Kodi Plugin and set the Server to my Domain Name.

If i start a Movie for Direct Stream the Movie starts for a few minutes and then suddenly stops.

In the Webclient all works fine with the External Domain address, also when using Transcoding.

If i change the server address to the local IP in the Kodi Addon its still working, so it seems a problem with the external usage.

 

It would be very nice if something can help me to locate the Problem.

 

nothing jumps out, PM me your URL if you would like a second set of eyes on the server results. 

 

Also have to tried this externally?   Not from your local network using the domain name..  Maybe from a different internet connection?

Edited by pir8radio
Posted

Yes tested on a other network. I will tomorrow test it again with different settings. Have a look in the log files and seems to be a websocket Problem.

pir8radio
Posted (edited)

Yes tested on a other network. I will tomorrow test it again with different settings. Have a look in the log files and seems to be a websocket Problem.

 

like i said if you get stuck PM me your URL no need to create me an account or anything on your server I shouldn't need access.  Otherwise use chrome developer options Network/WS see whats there and what errors you are getting for the websockets.

Edited by pir8radio

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...