Jump to content

Some shows Direct Play and others Direct Stream from same TV folder


scharbag

Recommended Posts

scharbag

Just trying out ET and it seems to be awesome.  Typically, I have used WMC for years but I am entertaining new options as WMC seems to be going the way of the dodo.

 

My question is this: some of my shows will show as Direct Play and others show as Direct Streaming when using ET.  They are all in the same TV folder and the path substitutions are set on the server.  Substitution structure is: /media/HTPC/TV --> \\<server IP>\HTPC\TV (I have a substitution for each Library item even though they are all in the \\<server IP>\HTPC\ folder - this I hope is correct).  I use the server's IP address instead of its name as I have had some issues with FreeNAS and Windows name resolution.  These substitutions work when using WMC as a client 100% of the time.

 

On both of the shows (first one direct stream, second direct play), I get the following errors in the server logs:

2016-09-07 08:40:47.4520 Error ServiceStackHost: Error occured while Processing Request: Unable to write data to the transport connection: The socket has been shut down.
	*** Error Report ***
	Version: 3.0.6400.0
	Command line: /usr/pbi/emby-amd64/lib/emby-server/MediaBrowser.Server.Mono.exe -ffmpeg /usr/pbi/emby-amd64/bin/ffmpeg -ffprobe /usr/pbi/emby-amd64/bin/ffprobe -programdata /var/db/emby-server
	Operating system: Unix 10.3.0.0
	Processor count: 8
	64-Bit OS: True
	64-Bit Process: True
	Program data path: /var/db/emby-server
	Mono: 4.4.2 (Stable 4.4.2.11/f72fe45 Mon Aug 22 04:48:30 UTC 2016)
	Application Path: /usr/pbi/emby-amd64/lib/emby-server/MediaBrowser.Server.Mono.exe
	Unable to write data to the transport connection: The socket has been shut down.
	System.IO.IOException
	  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x815bfd9b0 + 0x002cc> in <filename unknown>:0 
	  at SocketHttpListener.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) <0x815bfd900 + 0x0009a> in <filename unknown>:0 
	  at SocketHttpListener.Net.ResponseStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) <0x815bfbdf0 + 0x001d7> in <filename unknown>:0 
	  at ServiceStack.Formats.HtmlFormat.SerializeToStream (IRequest req, System.Object response, IResponse res) <0x81bce5380 + 0x00dae> in <filename unknown>:0 
	  at ServiceStack.HttpResponseExtensionsInternal.WriteErrorToResponse (IResponse httpRes, IRequest httpReq, System.String contentType, System.String operationName, System.String errorMessage, System.Exception ex, Int32 statusCode) <0x81bce3ba0 + 0x00262> in <filename unknown>:0 
	  at ServiceStack.ServiceStackHost.HandleUncaughtException (IRequest httpReq, IResponse httpRes, System.String operationName, System.Exception ex) <0x81bce3a40 + 0x00140> in <filename unknown>:0 
	  at ServiceStack.HostContext.RaiseAndHandleUncaughtException (IRequest httpReq, IResponse httpRes, System.String operationName, System.Exception ex) <0x81bce3880 + 0x0008b> in <filename unknown>:0 
	  at ServiceStack.HttpResponseExtensionsInternal.HandleResponseWriteException (System.Exception originalEx, IRequest request, IResponse response, System.String defaultContentType) <0x81bce3620 + 0x00067> in <filename unknown>:0 
	  at ServiceStack.HttpResponseExtensionsInternal+<WriteToResponse>d__6.MoveNext () <0x815bf6570 + 0x01ad6> in <filename unknown>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x81b2b5ce0 + 0x00038> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x81b2b5a10 + 0x00118> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x81b2b5940 + 0x000b3> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x800a32fa0 + 0x00042> in <filename unknown>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x815bfb6c0 + 0x0001a> in <filename unknown>:0 
	  at ServiceStack.Host.RestHandler+<ProcessRequestAsync>d__13.MoveNext () <0x815bd5de0 + 0x01279> in <filename unknown>:0 
	InnerException: System.Net.Sockets.SocketException
	The socket has been shut down
	  at System.Net.Sockets.Socket.Send (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) <0x815bfdea0 + 0x00103> in <filename unknown>:0 
	  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x815bfd9b0 + 0x000c5> in <filename unknown>:0 
	
2016-09-07 08:40:47.4520 Info HttpServer: HTTP Response 500 to 10.0.1.201. Time: 701586ms. http://10.0.1.225:8096/emby/videos/77ae60896f7b63b4400ae7a1a834e243/stream.mkv?DeviceId=Jane&MediaSourceId=77ae60896f7b63b4400ae7a1a834e243&VideoCodec=h264&AudioCodec=mp3,aac&AudioStreamIndex=1&VideoBitrate=99616000&AudioBitrate=384000&MaxAudioChannels=6&Level=51&Profile=high&PlaySessionId=824e87ea94f543dc889beae5dca54775&CopyTimestamps=true&EnableSubtitlesInManifest=false&Tag=cd3549901dbab243364068d87e7bd4de

2016-09-07 08:45:29.6337 Error ServiceStackHost: Error occured while Processing Request: Unable to write data to the transport connection: The socket has been shut down.
    *** Error Report ***
    Version: 3.0.6400.0
    Command line: /usr/pbi/emby-amd64/lib/emby-server/MediaBrowser.Server.Mono.exe -ffmpeg /usr/pbi/emby-amd64/bin/ffmpeg -ffprobe /usr/pbi/emby-amd64/bin/ffprobe -programdata /var/db/emby-server
    Operating system: Unix 10.3.0.0
    Processor count: 8
    64-Bit OS: True
    64-Bit Process: True
    Program data path: /var/db/emby-server
    Mono: 4.4.2 (Stable 4.4.2.11/f72fe45 Mon Aug 22 04:48:30 UTC 2016)
    Application Path: /usr/pbi/emby-amd64/lib/emby-server/MediaBrowser.Server.Mono.exe
    Unable to write data to the transport connection: The socket has been shut down.
    System.IO.IOException
     at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x815bfd9b0 + 0x002cc> in <filename unknown>:0
     at SocketHttpListener.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) <0x815bfd900 + 0x0009a> in <filename unknown>:0
     at SocketHttpListener.Net.ResponseStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) <0x815bfbdf0 + 0x001d7> in <filename unknown>:0
     at ServiceStack.Formats.HtmlFormat.SerializeToStream (IRequest req, System.Object response, IResponse res) <0x81bce5380 + 0x00dae> in <filename unknown>:0
     at ServiceStack.HttpResponseExtensionsInternal.WriteErrorToResponse (IResponse httpRes, IRequest httpReq, System.String contentType, System.String operationName, System.String errorMessage, System.Exception ex, Int32 statusCode) <0x81bce3ba0 + 0x00262> in <filename unknown>:0
     at ServiceStack.ServiceStackHost.HandleUncaughtException (IRequest httpReq, IResponse httpRes, System.String operationName, System.Exception ex) <0x81bce3a40 + 0x00140> in <filename unknown>:0
     at ServiceStack.HostContext.RaiseAndHandleUncaughtException (IRequest httpReq, IResponse httpRes, System.String operationName, System.Exception ex) <0x81bce3880 + 0x0008b> in <filename unknown>:0
     at ServiceStack.HttpResponseExtensionsInternal.HandleResponseWriteException (System.Exception originalEx, IRequest request, IResponse response, System.String defaultContentType) <0x81bce3620 + 0x00067> in <filename unknown>:0
     at ServiceStack.HttpResponseExtensionsInternal+<WriteToResponse>d__6.MoveNext () <0x815bf6570 + 0x01ad6> in <filename unknown>:0
    --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x81b2b5ce0 + 0x00038> in <filename unknown>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x81b2b5a10 + 0x00118> in <filename unknown>:0
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x81b2b5940 + 0x000b3> in <filename unknown>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x800a32fa0 + 0x00042> in <filename unknown>:0
     at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x815bfb6c0 + 0x0001a> in <filename unknown>:0
     at ServiceStack.Host.RestHandler+<ProcessRequestAsync>d__13.MoveNext () <0x815bd5de0 + 0x01279> in <filename unknown>:0
    InnerException: System.Net.Sockets.SocketException
    The socket has been shut down
     at System.Net.Sockets.Socket.Send (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) <0x815bfdea0 + 0x00103> in <filename unknown>:0
     at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x815bfd9b0 + 0x000c5> in <filename unknown>:0
    
2016-09-07 08:45:29.6337 Info HttpServer: HTTP Response 500 to 10.0.1.201. Time: 271468ms. http://10.0.1.225:8096/emby/videos/f45fe6abc823809f1428e4deaa399281/stream.mkv?

The streaming episodes play just fine but skipping causes audio to take a few seconds to re-allign.  Not a terrible issue, but a bit of a nuisance that would be great to avoid.

 

Any ideas as to what may be causing this playback style difference?  

 

Clients are Windows 7 x86 machines with full CIFS access to the media folders (I do have Shark 007 codecs installed on the client).  The one I am testing with has analog (stereo) audio out only.  

 

The server is running in a FreeNAS Jail as a plugin, hardware is Xeon E3.

 

Again, ET looks pretty slick, great work!

 

Any suggestions would be greatly appreciated.

 

Cheers,

Link to comment
Share on other sites

Check the path that is displayed in the web app. That is the result after path substitution. Make sure the machine running Emby Theater can access that path. To verify, try punching it into windows explorer.

Link to comment
Share on other sites

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...