luizoliveira 0 Posted April 29, 2019 Share Posted April 29, 2019 (edited) Hello all, I'm sorry if this is not the right place to post this, or if the solution is already in another post. I've really tried to look for it before posting. I have a Xiami Mi Box and what I believe is an uncommon situation. I do not want to stream my media to any device. The media is an external hard drive connected to the tv box, and this is the only device I want to play it. Kodi seemed like the perfect fit, but I find Emby way better, in every aspect. The only solution I found to achieve what I want was to run both Emby Server for Android and Emby Client in my TV box. It seems weird, but it worked. Is there a better way to do this? If there isn't, then here comes my issue. I've managed to play most of my files with no problem. However, I cannot play a 4k movie. Reading the forum, the support wiki and the logs, it seems to me Emby is trying to transcode my file. However, I wasn't able to understand why and how can I stop this and make it play the file directly. I've attached the log, from which I'd like to highlight to statements that caught my attention. 2019-04-28 20:57:16.151 Info App: Profile: Unnamed, No direct play profiles found for Path: /storage/2A1CEB451CEB0AA1/AndroidTV/Filmes/Avengers Infinity War (2018)/Avengers.Infinity.War.2018.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ.mkv2019-04-28 20:57:16.152 Info App: Bitrate exceeds DirectStream limit: media bitrate: 21727531, max bitrate: 1500000 2019-04-28 20:58:39.591 Info App: Profile: Android-Exo, Path: /storage/2A1CEB451CEB0AA1/AndroidTV/Filmes/Avengers Infinity War (2018)/Avengers.Infinity.War.2018.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ.mkv, isEligibleForDirectPlay: True, isEligibleForDirectStream: True2019-04-28 20:58:39.592 Info App: Profile: VideoAudioCodecProfile, DirectPlay=false. Reason=Android-Exo.AudioChannels Condition: LessThanEqual. ConditionValue: 2. IsRequired: False. Path: /storage/2A1CEB451CEB0AA1/AndroidTV/Filmes/Avengers Infinity War (2018)/Avengers.Infinity.War.2018.2160p.BluRay.x265.10bit.HDR.DTS-HD.MA.TrueHD.7.1.Atmos-SWTYBLZ.mkv I'd really appreciate any help. Best regards. Log.txt Edited April 29, 2019 by luizoliveira Link to comment Share on other sites More sharing options...
ebr 14923 Posted April 29, 2019 Share Posted April 29, 2019 Your first snippet doesn't look like it came from the Android TV app - did it? Can we please see the entire ffmpeg log that was generated? Link to comment Share on other sites More sharing options...
luizoliveira 0 Posted April 29, 2019 Author Share Posted April 29, 2019 (edited) Hi, The log came from the Android server that runs on my Xiaomi Mi Box. I've accessed it through the web client. I've tried to play the file again now and am attaching the most recent logs. I've also used the "Send Log" feature from my Android TV client. The username is "android-box". embyserver.txt ffmpeg.txt Edited April 29, 2019 by luizoliveira Link to comment Share on other sites More sharing options...
ebr 14923 Posted April 30, 2019 Share Posted April 30, 2019 The item is transcoding because the attempt to direct play it fails with this odd error on the server: 2019-04-29 18:55:56.911 Error HttpServer: Error processing request *** Error Report *** Version: 4.1.0.26 Command line: /data/app/com.emby.embyserver-1pQrEhJ_HzDFu7vWqJTFFw==/base.apk Operating system: Unix 4.9.54.0 64-Bit OS: False 64-Bit Process: False User Interactive: False Runtime: file:///mscorlib.dll Processor count: 4 Program data path: /storage/emulated/0/Android/data/com.emby.embyserver/files Application directory: /data/user/0/com.emby.embyserver Mono: 5.14.0 (explicit/62031dcabf4) Android Version: 8.0.0-REL - SDK: 26 'O' Patch Level: 2562 (2019-01-05) Fingerprint: Xiaomi/once/once:8.0.0/OPR6.170623.013/2562:user/release-keys Model: MIBOX3 - Xiaomi/Xiaomi Hardware: once/once/amlogic/once SupportedAbis: armeabi-v7a, armeabi System.ArgumentOutOfRangeException: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: net_clsmall at SocketHttpListener.Net.HttpListenerResponse.set_ContentLength64 (System.Int64 value) [0x00020] in <9b8150b32418438d8a57f1982a1a7e65>:0 at EmbyServer.SocketSharp.WebSocketSharpResponse.SetContentLength (System.Int64 contentLength) [0x00000] in <78787387c6cd43dab110d40d0ba6d3ae>:0 at Emby.Server.Implementations.Services.ResponseHelper.WriteToResponse (Emby.Server.Implementations.HttpServer.HttpListenerHost httpListenerHost, MediaBrowser.Model.Services.IResponse response, MediaBrowser.Model.Services.IRequest request, System.Object result, System.Threading.CancellationToken cancellationToken) [0x000d3] in <e92f0e3a3cc24be9a25341712327ff45>:0 at Emby.Server.Implementations.Services.ServiceHandler+<ProcessRequestAsync>d__14.MoveNext () [0x00264] in <e92f0e3a3cc24be9a25341712327ff45>:0 --- End of stack trace from previous location where exception was thrown --- at Emby.Server.Implementations.HttpServer.HttpListenerHost+<RequestHandler>d__52.MoveNext () [0x00af5] in <e92f0e3a3cc24be9a25341712327ff45>:0 Source: mscorlib TargetSite: Void Throw() There are also a ton of network errors in your server log. I would turn off the auto port mapper because that is throwing but there may be other network issues as well. Link to comment Share on other sites More sharing options...
luizoliveira 0 Posted April 30, 2019 Author Share Posted April 30, 2019 ebr, Thanks a lot for your help. Do you have any idea what is this odd error the log is reporting? It's weird that I'm having so much network erros. It is the same device running both server and client. I'll try to look into it in my network settings. Thanks again. 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