H3kt0r 0 Posted April 26, 2016 Share Posted April 26, 2016 (edited) Hello My work requires a lot of travelling, thats why I set up remote play on my Emby-server. However I receive very bad performance on streaming the video content remotely. Its more than likely that I have missed some obvious step and that causes bad, stuttering performance when trying to remotely watch my favorite soap, but I cant figure out what causes the problem. Since it occurs on multiple clients / platforms: - Emby-client on SGS4 (OS Cyanogenmod 13.1) - laptop Win 7 pro x64, Kodi 16.1 + Emby-addon 2.2.1.0 - sama laptop, Emby Theater ... I suspect one of the following: - Emby-server config - NAS hardware performance (however servers memory and CPU utilization while playbacking are within normal limits) My setup is roughly this: - server HW: HP Proliant Microserver N36L with 16Gb RAM. When initiating playback and SSH-connecting my NAS the memory and processor-utilization seem to be in ok levels. - home internet is 100/10. Speedtest on hotel: 10/8 - Emby server running on jail with Sab, Transmission, Sickrage and CP. All the traffic of this jail is routed via OpenVPN connection. port 8096 is remote-port-forwarded to a random port. I can access the server from http://my.public.vpn.address:forwardedport. - playing with server's max stream-rate and movie mode on-off doesnt seem to have an effect Errors from Kodi-log: PlayMedia could not play media plugin://plugin.video.emby... NOTICE: EMBY PlayUtils -> logMsg : Can't direct play, play from HTTP enabled ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.KeyError'> Error Contents: ('MediaSources',) Traceback (most recent call last): File "***\AppData\Roaming\Kodi\addons\plugin.video.emby.tvshows\default.py", line 40, in <module> entrypoint.doPlayback(itemid, dbid) File "***\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\entrypoint.py", line 36, in doPlayback pbutils.PlaybackUtils(item).play(itemid, dbid) File "***\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\playbackutils.py", line 62, in play playurl = playutils.getPlayUrl() File "***\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\playutils.py", line 63, in getPlayUrl elif self.isDirectStream(): File "***\AppData\Roaming\Kodi\addons\plugin.video.emby\resources\lib\playutils.py", line 223, in isDirectStream videotrack = item['MediaSources'][0]['Name'] KeyError: ('MediaSources',) -->End of Python script error report<-- CWinRenderer::UpdateVideoFilter - chosen scaling method 1 is not supported by renderer DXVA decoder problem of status 2 with 255 CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available Any ideas on where to start troubleshooting? EDIT On Emby server's log: Info HttpServer: HTTP GET http://mypublic.vpn.address:8096/emby/Videos/stream-id...UserAgent: VLC/2.1.2 LibVLC/2.1.2 Info HttpServer: HTTP Response 206 to 10.11.12.13. Time: 5532ms (slow). http://mypublic.vpn.address:8096/emby/Videos/Stream... Info HttpServer: HTTP GET http://mypublic.vpn.address:8096/emby/Videos/stream-id...UserAgent: VLC/2.1.2 LibVLC/2.1.2 Info HttpServer: HTTP Response 500 to 10.11.12.13. Time: 297ms. http://mypublic.vpn.address:8096/emby/Videos/Stream... Info HttpServer: HTTP GET http://mypublic.vpn.address:8096/emby/Videos/stream-id...UserAgent: VLC/2.1.2 LibVLC/2.1.2 Info HttpServer: HTTP Response 206 to 10.11.12.13. Time: 7ms. http://mypublic.vpn.address:8096/emby/Videos/Stream... 2016-04-26 19:53:41.9318 Info App: /usr/pbi/emby-amd64/bin/ffmpeg -fflags +genpts -i file:"/mnt/Movie/Name Of The Movie (2015)/Name Of The Movie (2015).mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -map_metadata -1 -threads 0 -codec:a:0 copy -y "/var/db/emby-server/transcoding-temp/....mkv" 2016-04-26 19:54:10.5747 Debug App: Disposing stream resources 2016-04-26 19:54:10.5747 Info App: FFMpeg exited with code 0 > the port nr is WRONG! 8096 is local port. Public port is something else completely. My publicvpnip:publicport is set on the servers settings. Why the server uses and logs local port??? Extracting the stream url and attempting to open it (after correcting the port nr) from VideoLan gives same result: eventually playback starts, but stutters, hangs.. Edited April 26, 2016 by H3kt0r Link to comment Share on other sites More sharing options...
Luke 37066 Posted April 26, 2016 Share Posted April 26, 2016 Hi, welcome. I don't think the emby for kodi add-on has really been optimized for this sort of scenario. For remote streaming I would suggest the web client, android, ios, emby theater, etc. Are you able to try those? Thanks. Link to comment Share on other sites More sharing options...
mybackup681 0 Posted April 26, 2016 Share Posted April 26, 2016 (edited) I would like to add that I regularly remote steam to multiple kodi clients (Amz Fire Sticks) without any issues, direct and transcoding. It's important to keep bitrate limits regulated on both client as well as server (due to kodi not respecting server upload bandwidth limit). I have no problems with 2Mb on all clients because I have the bandwidth. Edited April 26, 2016 by mybackup681 Link to comment Share on other sites More sharing options...
H3kt0r 0 Posted April 26, 2016 Author Share Posted April 26, 2016 (edited) Hi Luke, Tried the web client, Emby Theater-client, Kodi+Emby -client, Emby-client on android-phone > playback stutters on all platforms/clients. Funny thing is that this setup has worked on remote streaming before.. from within vpn-pipe running on same jail as the plugin. Edited April 26, 2016 by H3kt0r Link to comment Share on other sites More sharing options...
Luke 37066 Posted April 26, 2016 Share Posted April 26, 2016 Hi Luke, Tried the web client, Emby Theater-client, Kodi+Emby -client, Emby-client on android-phone > playback stutters on all platforms/clients. Hi, then let's start basic. Let's look at the web client. please see how to report a media playback issue and we'll go from there. thanks! Link to comment Share on other sites More sharing options...
H3kt0r 0 Posted April 27, 2016 Author Share Posted April 27, 2016 I decided to start from scratch ie. deleted FreeNAS plugin and installed the Emby-server on my Kodibuntu-machine. Well see how this develops Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now