jafisher5 0 Posted May 26, 2015 Share Posted May 26, 2015 I've been trying to get DLNA to stream to my Samsung UN32H5203 TV. Most files work, except for various MKV files, I'm assuming its the encoding, but I'm not sure how to get the profile to override and transcode the file instead of a direct play to the device. I've first tried all defaults from Emby, and then tried editing the Samsung DLNA profile and tried to force all MKV files to transcode but it doesnt seem to take affect. Any assistance would be greatly appreciated. I've seen some posts that say to check to see that the DLNA profile is being utilized but I dont see in the logs where it indicates any specific profile. From what I can gather, the Codec is H264 - MPEG 4 AVC, using AC3 audio I've tried the stable and beta release both yield the same result. 2015-05-26 18:03:18.9277 Debug - HttpServer: HTTP HEAD http://10.0.1.10:8096/videos/2b76ff8ea31c3927d29b39274fb8bf1b/stream.ts?Params=3cde9bce78447cbca5090984f0c9a239;test;2b76ff8ea31c3927d29b39274fb8bf1b;false;h264;ac3;1;;11680000;320000;6;30;1920;1080;0;41;;;;;;;;;2b76ff8ea31c3927d29b39274fb8bf1b Ip: 10.0.1.6:33002. Headers: getcontentFeatures.dlna.org=1,Host=10.0.1.10:8096,Connection=close2015-05-26 18:03:18.9277 Debug - HttpServer: HTTP Response 200 to 10.0.1.6. Response time: 0 ms. Url: http://10.0.1.10:8096/videos/2b76ff8ea31c3927d29b39274fb8bf1b/stream.ts?Params=3cde9bce78447cbca5090984f0c9a239;test;2b76ff8ea31c3927d29b39274fb8bf1b;false;h264;ac3;1;;11680000;320000;6;30;1920;1080;0;41;;;;;;;;;2b76ff8ea31c3927d29b39274fb8bf1b2015-05-26 18:03:18.9746 Debug - HttpServer: HTTP HEAD http://10.0.1.10:8096/videos/2b76ff8ea31c3927d29b39274fb8bf1b/stream.ts?Params=3cde9bce78447cbca5090984f0c9a239;test;2b76ff8ea31c3927d29b39274fb8bf1b;false;h264;ac3;1;;11680000;320000;6;30;1920;1080;0;41;;;;;;;;;2b76ff8ea31c3927d29b39274fb8bf1b Ip: 10.0.1.6:33003. Headers: getcontentFeatures.dlna.org=1,TimeSeekRange.dlna.org=npt=0-,Host=10.0.1.10:8096,Connection=close2015-05-26 18:03:18.9746 Debug - HttpServer: HTTP Response 200 to 10.0.1.6. Response time: 0 ms. Url: http://10.0.1.10:8096/videos/2b76ff8ea31c3927d29b39274fb8bf1b/stream.ts?Params=3cde9bce78447cbca5090984f0c9a239;test;2b76ff8ea31c3927d29b39274fb8bf1b;false;h264;ac3;1;;11680000;320000;6;30;1920;1080;0;41;;;;;;;;;2b76ff8ea31c3927d29b39274fb8bf1b2015-05-26 18:03:19.0214 Debug - HttpServer: HTTP GET http://10.0.1.10:8096/videos/2b76ff8ea31c3927d29b39274fb8bf1b/stream.ts?Params=3cde9bce78447cbca5090984f0c9a239;test;2b76ff8ea31c3927d29b39274fb8bf1b;false;h264;ac3;1;;11680000;320000;6;30;1920;1080;0;41;;;;;;;;;2b76ff8ea31c3927d29b39274fb8bf1b Ip: 10.0.1.6:33004. Headers: getcontentFeatures.dlna.org=1,transferMode.dlna.org=Streaming,getMediaInfo.sec=1,Host=10.0.1.10:8096,Connection=close2015-05-26 18:03:19.0214 Info - App: C:\Users\Jay\AppData\Roaming\MediaBrowser-Server\ffmpeg\20150331\ffmpeg.exe -fflags +genpts -i file:"E:\Battlestar Galactica (2003)\Season 1\13 - Kobol's Last Gleaming (2).mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -force_key_frames expr:gte(t,n_forced*5) -vf "scale=trunc(min(max(iw\,ih*dar)\,min(1920\,1080*dar))/2)*2:trunc(min(max(iw/dar\,ih)\,min(1920/dar\,1080))/2)*2" -pix_fmt yuv420p -preset superfast -crf 23 -maxrate 4680849 -bufsize 9361698 -vsync vfr -level 41 -map_metadata -1 -threads 0 -codec:a:0 ac3 -ac 6 -ab 320000 -af "aresample=async=1" -y "C:\Users\Jay\AppData\Roaming\MediaBrowser-Server\transcoding-temp\4a7286a8798cc8b12f735e8145399c60.ts"2015-05-26 18:03:20.1779 Error - App: Error streaming media. The client has most likely disconnected or transcoding has failed.2015-05-26 18:03:20.1779 Debug - App: OnTranscodeEndRequest job.ActiveRequestCount=02015-05-26 18:03:20.1779 Debug - App: Starting kill timer at 1000ms. JobId 33ec5069f8b74f60b2175eeedba58f9c PlaySessionId2015-05-26 18:03:20.1779 Debug - HttpServer: HTTP HEAD http://10.0.1.10:8096/videos/2b76ff8ea31c3927d29b39274fb8bf1b/stream.ts?Params=3cde9bce78447cbca5090984f0c9a239;test;2b76ff8ea31c3927d29b39274fb8bf1b;false;h264;ac3;1;;11680000;320000;6;30;1920;1080;0;41;;;;;;;;;2b76ff8ea31c3927d29b39274fb8bf1b Ip: 10.0.1.6:33022. Headers: getcontentFeatures.dlna.org=1,TimeSeekRange.dlna.org=npt=0-60,Host=10.0.1.10:8096,Connection=close2015-05-26 18:03:20.1779 Error - HttpServer: Error in HttpListenerResponseWrapper: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. *** Error Report *** Version: 3.0.5621.2 Command line: C:\Users\Jay\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 4 64-Bit OS: True 64-Bit Process: False Program data path: C:\Users\Jay\AppData\Roaming\MediaBrowser-Server Application Path: C:\Users\Jay\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. System.IO.IOException at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) at SocketHttpListener.Net.ResponseStream.InternalWrite(Byte[] buffer, Int32 offset, Int32 count) at SocketHttpListener.Net.ResponseStream.Close() at MediaBrowser.Server.Implementations.HttpServer.SocketSharp.Extensions.CloseOutputStream(HttpListenerResponse response, ILogger logger) InnerException: System.Net.Sockets.SocketException An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) 2015-05-26 18:03:20.1779 Error - HttpAsyncTaskHandler: Error occured while Processing Request: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. *** Error Report *** Version: 3.0.5621.2 Command line: C:\Users\Jay\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 4 64-Bit OS: True 64-Bit Process: False Program data path: C:\Users\Jay\AppData\Roaming\MediaBrowser-Server Application Path: C:\Users\Jay\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. System.IO.IOException at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) at SocketHttpListener.Net.ResponseStream.InternalWrite(Byte[] buffer, Int32 offset, Int32 count) at SocketHttpListener.Net.ResponseStream.Write(Byte[] buffer, Int32 offset, Int32 count) at ServiceStack.Formats.HtmlFormat.SerializeToStream(IRequest request, Object response, IResponse httpRes) at ServiceStack.HttpResponseExtensionsInternal.WriteErrorToResponse(IResponse httpRes, IRequest httpReq, String contentType, String operationName, String errorMessage, Exception ex, Int32 statusCode) at ServiceStack.ServiceStackHost.OnUncaughtException(IRequest httpReq, IResponse httpRes, String operationName, Exception ex) at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse(IResponse response, Object result, ResponseSerializerDelegate defaultAction, IRequest request, Byte[] bodyPrefix, Byte[] bodySuffix) at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse(IResponse httpRes, IRequest httpReq, Object result, Byte[] bodyPrefix, Byte[] bodySuffix) at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse(IResponse httpRes, IRequest httpReq, Object result) at ServiceStack.Host.RestHandler.<>c__DisplayClass5.<ProcessRequestAsync>b__0(Object response) at ServiceStack.Host.Handlers.ServiceStackHandlerBase.HandleResponse(Object response, Func`2 callback, Func`2 errorCallback) InnerException: System.Net.Sockets.SocketException An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) 2015-05-26 18:03:20.1779 Debug - HttpServer: HTTP Response 500 to 10.0.1.6. Response time: 1156.4456 ms. Url: http://10.0.1.10:8096/videos/2b76ff8ea31c3927d29b39274fb8bf1b/stream.ts?Params=3cde9bce78447cbca5090984f0c9a239;test;2b76ff8ea31c3927d29b39274fb8bf1b;false;h264;ac3;1;;11680000;320000;6;30;1920;1080;0;41;;;;;;;;;2b76ff8ea31c3927d29b39274fb8bf1b2015-05-26 18:03:20.1779 Debug - HttpServer: HTTP Response 200 to 10.0.1.6. Response time: 0 ms. Url: http://10.0.1.10:8096/videos/2b76ff8ea31c3927d29b39274fb8bf1b/stream.ts?Params=3cde9bce78447cbca5090984f0c9a239;test;2b76ff8ea31c3927d29b39274fb8bf1b;false;h264;ac3;1;;11680000;320000;6;30;1920;1080;0;41;;;;;;;;;2b76ff8ea31c3927d29b39274fb8bf1b2015-05-26 18:03:20.1935 Debug - HttpServer: HTTP GET http://10.0.1.10:8096/videos/2b76ff8ea31c3927d29b39274fb8bf1b/stream.ts?Params=3cde9bce78447cbca5090984f0c9a239;test;2b76ff8ea31c3927d29b39274fb8bf1b;false;h264;ac3;1;;11680000;320000;6;30;1920;1080;0;41;;;;;;;;;2b76ff8ea31c3927d29b39274fb8bf1b Ip: 10.0.1.6:33023. Headers: getcontentFeatures.dlna.org=1,transferMode.dlna.org=Streaming,Host=10.0.1.10:8096,Connection=close2015-05-26 18:03:20.2404 Error - App: Error streaming media. The client has most likely disconnected or transcoding has failed.2015-05-26 18:03:20.2404 Debug - App: OnTranscodeEndRequest job.ActiveRequestCount=02015-05-26 18:03:20.2404 Debug - App: Changing kill timer to 1000ms. JobId 33ec5069f8b74f60b2175eeedba58f9c PlaySessionId2015-05-26 18:03:20.2404 Error - HttpServer: Error in HttpListenerResponseWrapper: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. *** Error Report *** Version: 3.0.5621.2 Command line: C:\Users\Jay\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 4 64-Bit OS: True 64-Bit Process: False Program data path: C:\Users\Jay\AppData\Roaming\MediaBrowser-Server Application Path: C:\Users\Jay\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. System.IO.IOException at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) at SocketHttpListener.Net.ResponseStream.InternalWrite(Byte[] buffer, Int32 offset, Int32 count) at SocketHttpListener.Net.ResponseStream.Close() at MediaBrowser.Server.Implementations.HttpServer.SocketSharp.Extensions.CloseOutputStream(HttpListenerResponse response, ILogger logger) InnerException: System.Net.Sockets.SocketException An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) 2015-05-26 18:03:20.2404 Error - HttpAsyncTaskHandler: Error occured while Processing Request: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. *** Error Report *** Version: 3.0.5621.2 Command line: C:\Users\Jay\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe Operating system: Microsoft Windows NT 6.2.9200.0 Processor count: 4 64-Bit OS: True 64-Bit Process: False Program data path: C:\Users\Jay\AppData\Roaming\MediaBrowser-Server Application Path: C:\Users\Jay\AppData\Roaming\MediaBrowser-Server\system\MediaBrowser.ServerApplication.exe Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. System.IO.IOException at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) at SocketHttpListener.Net.ResponseStream.InternalWrite(Byte[] buffer, Int32 offset, Int32 count) at SocketHttpListener.Net.ResponseStream.Write(Byte[] buffer, Int32 offset, Int32 count) at ServiceStack.Formats.HtmlFormat.SerializeToStream(IRequest request, Object response, IResponse httpRes) at ServiceStack.HttpResponseExtensionsInternal.WriteErrorToResponse(IResponse httpRes, IRequest httpReq, String contentType, String operationName, String errorMessage, Exception ex, Int32 statusCode) at ServiceStack.ServiceStackHost.OnUncaughtException(IRequest httpReq, IResponse httpRes, String operationName, Exception ex) at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse(IResponse response, Object result, ResponseSerializerDelegate defaultAction, IRequest request, Byte[] bodyPrefix, Byte[] bodySuffix) at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse(IResponse httpRes, IRequest httpReq, Object result, Byte[] bodyPrefix, Byte[] bodySuffix) at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse(IResponse httpRes, IRequest httpReq, Object result) at ServiceStack.Host.RestHandler.<>c__DisplayClass5.<ProcessRequestAsync>b__0(Object response) at ServiceStack.Host.Handlers.ServiceStackHandlerBase.HandleResponse(Object response, Func`2 callback, Func`2 errorCallback) InnerException: System.Net.Sockets.SocketException An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags) at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) 2015-05-26 18:03:20.2404 Debug - HttpServer: HTTP Response 500 to 10.0.1.6. Response time: 46.8781 ms. Url: http://10.0.1.10:8096/videos/2b76ff8ea31c3927d29b39274fb8bf1b/stream.ts?Params=3cde9bce78447cbca5090984f0c9a239;test;2b76ff8ea31c3927d29b39274fb8bf1b;false;h264;ac3;1;;11680000;320000;6;30;1920;1080;0;41;;;;;;;;;2b76ff8ea31c3927d29b39274fb8bf1b2015-05-26 18:03:21.2405 Debug - App: Transcoding kill timer stopped for JobId 33ec5069f8b74f60b2175eeedba58f9c PlaySessionId . Killing transcoding2015-05-26 18:03:21.2405 Debug - App: KillTranscodingJob - JobId 33ec5069f8b74f60b2175eeedba58f9c PlaySessionId . Killing transcoding2015-05-26 18:03:21.2405 Info - App: Killing ffmpeg process for C:\Users\Jay\AppData\Roaming\MediaBrowser-Server\transcoding-temp\4a7286a8798cc8b12f735e8145399c60.ts2015-05-26 18:03:21.2873 Debug - App: Disposing stream resources2015-05-26 18:03:21.2873 Info - App: FFMpeg exited with code 02015-05-26 18:03:21.2873 Info - App: Deleting partial stream file(s) C:\Users\Jay\AppData\Roaming\MediaBrowser-Server\transcoding-temp\4a7286a8798cc8b12f735e8145399c60.ts ----------------------------------------------------- http://10.0.1.10:8096/videos/2b76ff8ea31c3927d29b39274fb8bf1b/stream.ts?Params=3cde9bce78447cbca5090984f0c9a239;test;2b76ff8ea31c3927d29b39274fb8bf1b;false;h264;ac3;1;;11680000;320000;6;30;1920;1080;0;41;;;;;;;;;2b76ff8ea31c3927d29b39274fb8bf1b{"Protocol":"File","Id":"2b76ff8ea31c3927d29b39274fb8bf1b","Path":"E:\\Battlestar Galactica (2003)\\Season 1\\13 - Kobol's Last Gleaming (2).mkv","Type":"Default","Container":"mkv","Name":"720P/H264/AC3","RunTimeTicks":26262530000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","Language":"eng","IsInterlaced":false,"BitRate":4680849,"BitDepth":8,"RefFrames":8,"IsDefault":true,"IsForced":false,"Height":720,"Width":1280,"AverageFrameRate":23.97599,"RealFrameRate":23.97599,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":51,"IsAnamorphic":false,"IsCabac":true},{"Codec":"ac3","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":640000,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"PlayableStreamFileNames":[],"Formats":["mkv","webm"],"Bitrate":4680849,"RequiredHttpHeaders":{}}C:\Users\Jay\AppData\Roaming\MediaBrowser-Server\ffmpeg\20150331\ffmpeg.exe -fflags +genpts -i file:"E:\Battlestar Galactica (2003)\Season 1\13 - Kobol's Last Gleaming (2).mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -force_key_frames expr:gte(t,n_forced*5) -vf "scale=trunc(min(max(iw\,ih*dar)\,min(1920\,1080*dar))/2)*2:trunc(min(max(iw/dar\,ih)\,min(1920/dar\,1080))/2)*2" -pix_fmt yuv420p -preset superfast -crf 23 -maxrate 4680849 -bufsize 9361698 -vsync vfr -level 41 -map_metadata -1 -threads 0 -codec:a:0 ac3 -ac 6 -ab 320000 -af "aresample=async=1" -y "C:\Users\Jay\AppData\Roaming\MediaBrowser-Server\transcoding-temp\4a7286a8798cc8b12f735e8145399c60.ts"ffmpeg version N-71182-g5cba529 Copyright © 2000-2015 the FFmpeg developers built with gcc 4.9.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib libavutil 54. 21.100 / 54. 21.100 libavcodec 56. 32.100 / 56. 32.100 libavformat 56. 27.100 / 56. 27.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 13.101 / 5. 13.101 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100Input #0, matroska,webm, from 'file:E:\Battlestar Galactica (2003)\Season 1\13 - Kobol's Last Gleaming (2).mkv': Metadata: encoder : libebml v0.7.7 + libmatroska v0.8.1 creation_time : 2007-12-06 08:08:50 Duration: 00:43:46.25, start: 0.000000, bitrate: 4680 kb/s Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default)[libx264 @ 0000000004bed720] using SAR=1/1[libx264 @ 0000000004bed720] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX[libx264 @ 0000000004bed720] profile High, level 4.1Output #0, mpegts, to 'C:\Users\Jay\AppData\Roaming\MediaBrowser-Server\transcoding-temp\4a7286a8798cc8b12f735e8145399c60.ts': Metadata: encoder : Lavf56.27.100 Stream #0:0: Video: h264 (libx264), yuv420p, 1280x720 [sAR 1:1 DAR 16:9], q=-1--1, max. 4680 kb/s, 23.98 fps, 90k tbn, 23.98 tbc (default) Metadata: encoder : Lavc56.32.100 libx264 Stream #0:1: Audio: ac3, 48000 Hz, 5.1, fltp, 320 kb/s (default) Metadata: encoder : Lavc56.32.100 ac3Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (ac3 (native) -> ac3 (native))Press [q] to stop, [?] for helpframe= 187 fps=0.0 q=22.0 size= 939kB time=00:00:08.05 bitrate= 954.4kbits/s frame= 283 fps=283 q=22.0 size= 2591kB time=00:00:12.09 bitrate=1755.3kbits/s frame= 380 fps=253 q=25.0 size= 4279kB time=00:00:16.09 bitrate=2178.4kbits/s frame= 472 fps=236 q=24.0 size= 5898kB time=00:00:19.89 bitrate=2428.3kbits/s frame= 506 fps=230 q=-1.0 Lsize= 7074kB time=00:00:21.40 bitrate=2707.8kbits/s video:5661kB audio:836kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.887112%[libx264 @ 0000000004bed720] frame I:6 Avg QP: 8.97 size: 23434[libx264 @ 0000000004bed720] frame P:280 Avg QP:14.37 size: 16736[libx264 @ 0000000004bed720] frame B:220 Avg QP:14.61 size: 4409[libx264 @ 0000000004bed720] consecutive B-frames: 33.6% 24.5% 2.4% 39.5%[libx264 @ 0000000004bed720] mb I I16..4: 61.8% 19.7% 18.6%[libx264 @ 0000000004bed720] mb P I16..4: 18.9% 13.2% 3.4% P16..4: 47.0% 0.0% 0.0% 0.0% 0.0% skip:17.5%[libx264 @ 0000000004bed720] mb B I16..4: 2.8% 2.4% 0.1% B16..8: 12.9% 0.0% 0.0% direct:12.6% skip:69.3% L0:37.4% L1:42.5% BI:20.1%[libx264 @ 0000000004bed720] 8x8 transform intra:37.0% inter:50.8%[libx264 @ 0000000004bed720] coded y,uvDC,uvAC intra: 29.7% 28.9% 4.8% inter: 18.7% 23.2% 0.3%[libx264 @ 0000000004bed720] i16 v,h,dc,p: 70% 13% 13% 4%[libx264 @ 0000000004bed720] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 15% 27% 6% 5% 6% 4% 6% 6%[libx264 @ 0000000004bed720] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 20% 28% 4% 3% 3% 2% 3% 2%[libx264 @ 0000000004bed720] i8c dc,h,v,p: 63% 14% 18% 5%[libx264 @ 0000000004bed720] Weighted P-Frames: Y:59.3% UV:20.0%[libx264 @ 0000000004bed720] kb/s:2197.31 thanks in advance for a great product and the help! Jay Link to comment Share on other sites More sharing options...
jafisher5 0 Posted May 26, 2015 Author Share Posted May 26, 2015 (edited) Additionally I was able to confirm that the profile for the Samsung TV is being detected. I've noticed these errors in the log too, it seems as though the file is eligible for directplay and directstream, which I want to force to directstream. I dont have any entries in direct play for mkv or h265 codec, but did attempt to add them to the transcode section. 2015-05-26 18:41:23.2524 Debug - UpnpContentDirectory: Profile: Samsung Smart TV, Path: E:\Battlestar Galactica (2003)\Season 1\12 - Kobol's Last Gleaming (1).mkv, isEligibleForDirectPlay: True, isEligibleForDirectStream: True2015-05-26 18:41:23.2524 Debug - UpnpContentDirectory: Profile: Samsung Smart TV, No direct play profiles found for Path: E:\Battlestar Galactica (2003)\Season 1\12 - Kobol's Last Gleaming (1).mkv2015-05-26 18:41:23.2524 Debug - UpnpContentDirectory: Profile: Samsung Smart TV, Path: E:\Battlestar Galactica (2003)\Season 1\13 - Kobol's Last Gleaming (2).mkv, isEligibleForDirectPlay: True, isEligibleForDirectStream: True2015-05-26 18:41:23.2524 Debug - UpnpContentDirectory: Profile: Samsung Smart TV, No direct play profiles found for Path: E:\Battlestar Galactica (2003)\Season 1\13 - Kobol's Last Gleaming (2).mkv It seems now that maybe transcoding is failing and crashing? I tried to play the same file over a PC and the iOS app and both transcoded ok. Edited May 26, 2015 by jafisher5 Link to comment Share on other sites More sharing options...
Luke 37029 Posted May 26, 2015 Share Posted May 26, 2015 it's possible the tv just doesn't like the transcoding format. unfortunately trial and error is often the only to solve it. it might a good idea to compare tv supported formats against what is being output Link to comment Share on other sites More sharing options...
jafisher5 0 Posted May 27, 2015 Author Share Posted May 27, 2015 How is the transcoding output format adjusted? I see where you can modify formats to be transcoded but am not seeing options to adjust output other than bitrate. Link to comment Share on other sites More sharing options...
CBers 6766 Posted May 31, 2015 Share Posted May 31, 2015 (edited) @@jafisher5 - just out of curiosity, but have you tried installing the Samsung Smart TV app? See here for details: http://emby.media/community/index.php?/topic/9869-samsung-smart-tv-app-install-instructions/ Some people have had issues installing the app on a H series TV, but I installed it first time on a friend's UE32H5500. The app direct plays content without the need for transcoding in most cases. Just a thought. . Edited May 31, 2015 by CBers Link to comment Share on other sites More sharing options...
Della Dog 19 Posted June 2, 2015 Share Posted June 2, 2015 I am also having a few issues with transcoded streams not playing back on my Samsung TV. Most of my media direct streams but if something needs transcoding then it fails in the same way as above. Any suggestions on what to play with, I have tried different audio types aac and mp3 instead of ac3 but that did not help. Same issue on 2104 Samsung UH8550, if anyone has figured this out, could you please post your profile? Thanks Link to comment Share on other sites More sharing options...
Luke 37029 Posted June 2, 2015 Share Posted June 2, 2015 did you encode with the same params that the server uses? samsung often sends out a head request before it gets the media. so the first thing to identify is exactly what request is failing. Link to comment Share on other sites More sharing options...
Luke 37029 Posted June 2, 2015 Share Posted June 2, 2015 getMediaInfo.sec=1 we are not currently doing anything with this header that it's sending. so before we go any further maybe that should be researched. can you find out? according to here maybe it means we might need a response header? http://forum.kodi.tv/showthread.php?tid=108933 Link to comment Share on other sites More sharing options...
Luke 37029 Posted June 2, 2015 Share Posted June 2, 2015 ok i will add that response header into the next dev build tonight. or if you run from source it's already checked in Link to comment Share on other sites More sharing options...
Della Dog 19 Posted June 2, 2015 Share Posted June 2, 2015 Yeah I see a bunch of chatter on the web about this, one such item: http://ubuntuforums.org/showthread.php?t=1198689&page=2&p=9188895#post9188895 and https://forums.plex.tv/index.php/topic/39336-dnla-with-samsung-2011-models/page-4 Do you add the response header? MediaInfo.sec: SEC_Duration=2555856; Here is an example in code: https://github.com/nmaier/simpleDLNA/blob/master/server/Responses/ItemResponse.cs Here are some header logs from a Sangumg TV https://bitbucket-assetroot.s3.amazonaws.com/xnejp03/serviio/20110209/270/Samsung.txt?Signature=57NPs0NGIQZwFvHdZP1%2BgBwmWCA%3D&Expires=1433209862&AWSAccessKeyId=0EMWEFSGA12Z1HF1TZ82 Nice find, looks promising. Link to comment Share on other sites More sharing options...
Della Dog 19 Posted June 2, 2015 Share Posted June 2, 2015 (edited) Just tested, did not help. I confirmed the header has being set, I am build form source and running in VS.One thing I've noticed is that those files that do not play (as shown on the TV when browsing folders) have no file size displayed. Any with a file size play fine.Don't know what that means. Edited June 2, 2015 by Della Dog Link to comment Share on other sites More sharing options...
Luke 37029 Posted June 2, 2015 Share Posted June 2, 2015 that probably will be device-specific as to how to obtain debug info. the next thing to look at is probably our contentFeatures response header. Although that is a very complicated one. It might be quicker to first verify that we're handling the TimeSeekRange.dlna.org=npt=0- correctly....but i think we are. Link to comment Share on other sites More sharing options...
Luke 37029 Posted June 2, 2015 Share Posted June 2, 2015 if it doesn't show up in the samsung getprotocolinfo, then it's probably a good idea to get that response type changed for samsung. look at the sony's for examples. even if it doesn't resolve the issue, it's probably a good thing to make sure it matches up. Link to comment Share on other sites More sharing options...
Luke 37029 Posted June 2, 2015 Share Posted June 2, 2015 here's what we're doing responseHeaders["TimeSeekRange.dlna.org"] = string.Format("npt={0}-{1}/{1}", startSeconds, runtimeSeconds); Link to comment Share on other sites More sharing options...
Luke 37029 Posted June 2, 2015 Share Posted June 2, 2015 i am not sure. it could be the contentFeatures response header. that is often pretty tricky Link to comment Share on other sites More sharing options...
Della Dog 19 Posted June 2, 2015 Share Posted June 2, 2015 Another observation, there's no way to turn off subtitles if an srt exists. The setting from the web browser is ignored. Link to comment Share on other sites More sharing options...
Luke 37029 Posted June 3, 2015 Share Posted June 3, 2015 If they're embedded and it's direct playing then the tv may choose to do that Link to comment Share on other sites More sharing options...
Della Dog 19 Posted June 3, 2015 Share Posted June 3, 2015 (edited) Deleted Edited June 3, 2015 by Della Dog Link to comment Share on other sites More sharing options...
Luke 37029 Posted June 3, 2015 Share Posted June 3, 2015 ok, thanks. yea i'm adjusting those values to hold the codec name and not the encoder name, so the profile change shouldn't be needed. and yes, the system could be improved by having all fields in the web interface, be able to show you what profile each device was assigned to, and be able to show you the info reported by the device so that you don't need to go digging through the logs in order to create a profile. i just haven't had much help with this and those things have been getting put off in favor of other things. Link to comment Share on other sites More sharing options...
Luke 37029 Posted June 3, 2015 Share Posted June 3, 2015 Yes, that would be great. And yes- the codec is h264. The encoder that does the job is libx264. Early on we make that replacement, I changed it to not happen at all and just have the command line generation figure it out dynamically. This was a great find. It will probably resolve playback failures for other devices as well, like Sony's for example, which also tend to be picky. Link to comment Share on other sites More sharing options...
Luke 37029 Posted June 3, 2015 Share Posted June 3, 2015 ok, i will make that default to true then for samsung. Link to comment Share on other sites More sharing options...
Xzener 729 Posted June 7, 2015 Share Posted June 7, 2015 (edited) Never mind. Thaought I was on to something. Edited June 7, 2015 by Xzener 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