Jump to content

Unable to play certain TVShows


Recommended Posts

abhichandra
Posted

Hello,

 

I'm trying to play a TV show which is in mkv format and each time I play it on Roku, I get the following error. It plays fine on Kodi.

 

 

2016-03-06 20:16:23.7202 Error HttpResultFactory: Error streaming data
        *** Error Report ***
        Version: 3.0.5871.0
        Command line: /opt/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /opt/htpc-config/emby-server -restartpath /opt/emby-server/restart.sh
        Operating system: Unix 4.4.3.1
        Processor count: 4
        64-Bit OS: True
        64-Bit Process: True
        Program data path: /opt/htpc-config/emby-server
        Mono: 4.2.2 (Stable 4.2.2.30/996df3c Fri Feb 12 15:45:05 UTC 2016)
        Application Path: /opt/emby-server/bin/MediaBrowser.Server.Mono.exe
        Write failure
        System.IO.IOException
          at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x42496d50 + 0x00103> in <filename unknown>:0
          at SocketHttpListener.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) <0x42496ca0 + 0x0008f> in <filename unknown>:0
          at SocketHttpListener.Net.ResponseStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) <0x42494480 + 0x001eb> in <filename unknown>:0
          at System.IO.Stream.InternalCopyTo (System.IO.Stream destination, Int32 bufferSize) <0x42525740 + 0x0004b> in <filename unknown>:0
          at System.IO.Stream.CopyTo (System.IO.Stream destination, Int32 bufferSize) <0x42525540 + 0x000af> in <filename unknown>:0
          at (wrapper remoting-invoke-with-check) System.IO.Stream:CopyTo (System.IO.Stream,int)
          at MediaBrowser.Server.Implementations.HttpServer.StreamWriter.WriteToInternal (System.IO.Stream responseStream) <0x42525110 + 0x00053> in <filename unknown>:0
        InnerException: System.Net.Sockets.SocketException
        Connection reset by peer
          at System.Net.Sockets.Socket.Send (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) <0x42496f10 + 0x000df> in <filename unknown>:0
          at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x42496d50 + 0x0009f> in <filename unknown>:0
 
2016-03-06 20:16:23.7219 Error HttpAsyncTaskHandler: Error occured while Processing Request: Write failure
        *** Error Report ***
        Version: 3.0.5871.0
        Command line: /opt/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /opt/htpc-config/emby-server -restartpath /opt/emby-server/restart.sh
        Operating system: Unix 4.4.3.1
        Processor count: 4
        64-Bit OS: True
        64-Bit Process: True
        Program data path: /opt/htpc-config/emby-server
        Mono: 4.2.2 (Stable 4.2.2.30/996df3c Fri Feb 12 15:45:05 UTC 2016)
        Application Path: /opt/emby-server/bin/MediaBrowser.Server.Mono.exe
        Write failure
        System.IO.IOException
          at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x42496d50 + 0x00103> in <filename unknown>:0
          at SocketHttpListener.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) <0x42496ca0 + 0x0008f> in <filename unknown>:0
          at SocketHttpListener.Net.ResponseStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) <0x42494480 + 0x001eb> in <filename unknown>:0
          at ServiceStack.Formats.HtmlFormat.SerializeToStream (IRequest request, System.Object response, IResponse httpRes) <0x426ef5c0 + 0x00b60> 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) <0x426eebb0 + 0x001cf> in <filename unknown>:0
          at ServiceStack.ServiceStackHost.OnUncaughtException (IRequest httpReq, IResponse httpRes, System.String operationName, System.Exception ex) <0x426ee480 + 0x00243> in <filename unknown>:0
          at ServiceStack.HostContext.RaiseUncaughtException (IRequest httpReq, IResponse httpRes, System.String operationName, System.Exception ex) <0x426ee440 + 0x0003a> in <filename unknown>:0
          at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse (IResponse response, System.Object result, ServiceStack.Web.ResponseSerializerDelegate defaultAction, IRequest request, System.Byte[] bodyPrefix, System.Byte[] bodySuffix) <0x42491e40 + 0x00faf> in <filename unknown>:0
          at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse (IResponse httpRes, IRequest httpReq, System.Object result, System.Byte[] bodyPrefix, System.Byte[] bodySuffix) <0x42491810 + 0x00243> in <filename unknown>:0
          at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse (IResponse httpRes, IRequest httpReq, System.Object result) <0x42490660 + 0x0001b> in <filename unknown>:0
          at ServiceStack.Host.RestHandler+<>c__DisplayClass5.<ProcessRequestAsync>b__0 (System.Object response) <0x4248ca90 + 0x001b7> in <filename unknown>:0
          at ServiceStack.Host.Handlers.ServiceStackHandlerBase.HandleResponse (System.Object response, System.Func`2 callback, System.Func`2 errorCallback) <0x4248c5b0 + 0x00211> 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) <0x42496f10 + 0x000df> in <filename unknown>:0
          at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x42496d50 + 0x0009f> in <filename unknown>:0
 
I'm running the Emby server and Kodi both on OpenSuse:
 
OptimusPrime:/opt/htpc-config/emby-server/logs # uname -a
Linux OptimusPrime 4.4.3-1-default #1 SMP PREEMPT Fri Feb 26 
 
Media Info is Following:
 
56dce65760406_Capture.jpg
 
I tried setting Roku bitrate to 5Mb(HD) but that didn't make a difference. I did check the logs and it doesn't seem to be initiating a transcode. 
I also checked a few other reports of this issue on the forum but they didn't seem to help much.
Please help and let me know if I need to provie any more information.

 

 

Posted

Hi, please provide complete log files. thanks.

Posted

there's no transcoding log because it's direct streaming, so it would appear to me that perhaps we should be transcoding. What generation roku is this? Maybe it can't handle the 8 ref frames.

abhichandra
Posted

Its the old HD1.

abhichandra
Posted

Is there a way I can force transcoding? I'm running it on a i5 Nuc so I'm sure it can handle it?

Posted

drop the bitrate setting to 2mbps

abhichandra
Posted

That worked. Thank you very much!

Posted (edited)

Its probably the ac3 bitrate. For the older models especially, anything below 3050, the roku hd is 2500.

 

The roku 3, the new roku 2 model (aka black nowtv), streaming stick hdmi, and the roku 4 support these high audio bitrates better. You may notice an ever so slight audio-drift/lip-sync problem if you watch closely but otherwise its negligible.

 

Sent from my Nexus 7 using Tapatalk

Edited by speechles
Posted

Its probably the ac3 bitrate. For the older models especially, anything below 3050, the roku hd is 2500.

 

The roku 3, the new roku 2 model (aka black nowtv), streaming stick hdmi, and the roku 4 support these high audio bitrates better. You may notice an ever so slight audio-drift/lip-sync problem if you watch closely but otherwise its negligible.

 

Sent from my Nexus 7 using Tapatalk

 

so you're sure refframes is related to firmware version and not device version?

Posted

Luke, yes. The roku will stall on the loading bar and not load the video if this is so. If the audio is to blame the roku immediately dumps out of the player or crashes the roku. It seems the roku is much more tolerant of bad refframe, the video stalls at loading is the worst that happens. Ive run hundreds of these tests on all sorts of container/codec combos and this is reproduceable and consistant.

 

Sent from my Nexus 7 using Tapatalk

  • Like 1

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