techworld 3 Posted July 31, 2016 Share Posted July 31, 2016 (edited) Hi all, I have some mp4 videos that playing fine on Plex Media on my TV, but not on Emby. An example below is a music video. Although, the video is playing fine on Google Chrome. The error is : "Cannot playback the file." 2016-07-31 16:43:35.8599 Info HttpServer: HTTP Response 200 to 192.168.1.6. Time: 27ms. http://192.168.1.97:8096/dlna/35e8595ace1f63f26a6cc436d413cae6/contentdirectory/control 2016-07-31 16:43:46.5425 Info HttpServer: HTTP GET http://192.168.1.97:8096/videos/74c34613be6aee614b2d1f0eabd8a8ff/stream.ts?Params=56179a6f319f17babac0d454c33b90f1;test;74c34613be6aee614b2d1f0eabd8a8ff;false;h264;ac3;1;;19808000;192000;6;30;1920;1080;0;41;;;;;;;;74c34613be6aee614b2d1f0eabd8a8ff;false;false;;;false. UserAgent: 2016-07-31 16:43:46.7387 Info App: /media/54bf67db-da31-4c50-bb3c-27140944b223/emby/ffmpeg/20160215/ffmpeg -fflags +genpts -i file:"/media/54bf67db-da31-4c50-bb3c-27140944b223/Shared/Music Videos/[MV] Chieu Cuoi Tuan - Tuan Vu.mp4" -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 -b:v 2744414 -maxrate 2744414 -bufsize 5488828 -r 30 -vsync -1 -level 41 -map_metadata -1 -threads 0 -codec:a:0 ac3 -ac 2 -ab 192000 -af "aresample=async=1" -y "/media/54bf67db-da31-4c50-bb3c-27140944b223/emby/transcoding-temp/ec42e3bcb59aeeb4c24b4de45af0edfa.ts" 2016-07-31 16:43:47.8616 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.6020.0 Command line: /opt/emby/MediaBrowser.Server.Mono.exe -programdata /media/54bf67db-da31-4c50-bb3c-27140944b223/emby -restartpath /usr/sbin/emby.sh Operating system: Unix 3.16.0.0 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /media/54bf67db-da31-4c50-bb3c-27140944b223/emby Mono: 4.4.1 (Nightly 4.4.1.0/4747417 Wed Jun 22 11:14:49 UTC 2016) Application Path: /opt/emby/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) <0x41e64350 + 0x0028f> in <filename unknown>:0 at SocketHttpListener.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) <0x41e642a0 + 0x0008f> in <filename unknown>:0 at SocketHttpListener.Net.ResponseStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) <0x41e62fd0 + 0x001cf> in <filename unknown>:0 at ServiceStack.Formats.HtmlFormat.SerializeToStream (IRequest req, System.Object response, IResponse res) <0x4233edd0 + 0x00cec> 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) <0x41fd9260 + 0x00218> in <filename unknown>:0 2016-07-31 16:42:18.6618 Info HttpServer: HTTP POST http://192.168.1.97:8096/dlna/35e8595ace1f63f26a6cc436d413cae6/contentdirectory/control. UserAgent: DLNADOC/1.50 SHARP-AQUOS-DMP/2.0W 2016-07-31 16:42:18.6622 Info HttpServer: HTTP Response 200 to 192.168.1.6. Time: 3ms. http://192.168.1.97:8096/dlna/35e8595ace1f63f26a6cc436d413cae6/contentdirectory/events 2016-07-31 16:42:18.6622 Info HttpServer: HTTP Response 200 to 192.168.1.6. Time: 4ms. http://192.168.1.97:8096/dlna/35e8595ace1f63f26a6cc436d413cae6/contentdirectory/events 2016-07-31 16:42:18.6719 Info HttpServer: HTTP Response 200 to 192.168.1.6. Time: 10ms. http://192.168.1.97:8096/dlna/35e8595ace1f63f26a6cc436d413cae6/contentdirectory/control 2016-07-31 16:42:18.6836 Info HttpServer: HTTP UNSUBSCRIBE http://192.168.1.97:8096/dlna/35e8595ace1f63f26a6cc436d413cae6/contentdirectory/events. UserAgent: 2016-07-31 16:42:18.6849 Info HttpServer: HTTP Response 200 to 192.168.1.6. Time: 1ms. http://192.168.1.97:8096/dlna/35e8595ace1f63f26a6cc436d413cae6/contentdirectory/events 2016-07-31 16:42:18.6853 Info HttpServer: HTTP SUBSCRIBE http://192.168.1.97:8096/dlna/35e8595ace1f63f26a6cc436d413cae6/contentdirectory/events. UserAgent: 2016-07-31 16:42:18.6863 Info HttpServer: HTTP POST http://192.168.1.97:8096/dlna/35e8595ace1f63f26a6cc436d413cae6/contentdirectory/control. UserAgent: DLNADOC/1.50 SHARP-AQUOS-DMP/2.0W 2016-07-31 16:42:18.6863 Info HttpServer: HTTP Response 200 to 192.168.1.6. Time: 1ms. http://192.168.1.97:8096/dlna/35e8595ace1f63f26a6cc436d413cae6/contentdirectory/events 2016-07-31 16:42:18.7409 Info HttpServer: HTTP Response 200 to 192.168.1.6. Time: 55ms. http://192.168.1.97:8096/dlna/35e8595ace1f63f26a6cc436d413cae6/contentdirectory/control 2016-07-31 16:42:23.1682 Info HttpServer: HTTP GET http://192.168.1.97:8096/videos/f866a868e5532d48cffe31c6cecc5f4e/stream.ts?Params=56179a6f319f17babac0d454c33b90f1;test;f866a868e5532d48cffe31c6cecc5f4e;false;h264;ac3;1;;19808000;192000;6;30;1920;1080;0;41;;;;;;;;f866a868e5532d48cffe31c6cecc5f4e;false;false;;;false. UserAgent: 2016-07-31 16:42:23.5060 Info App: /media/54bf67db-da31-4c50-bb3c-27140944b223/emby/ffmpeg/20160215/ffmpeg -fflags +genpts -i file:"/media/54bf67db-da31-4c50-bb3c-27140944b223/Shared/Karaoke/Chiec La Mua Dong - Ho Quang Hieu.mp4" -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 -b:v 2751152 -maxrate 2751152 -bufsize 5502304 -r 30 -vsync -1 -level 41 -map_metadata -1 -threads 0 -codec:a:0 ac3 -ac 2 -ab 192000 -af "aresample=async=1" -y "/media/54bf67db-da31-4c50-bb3c-27140944b223/emby/transcoding-temp/afef8f4c1bc67af1e5bec71c3f885e3f.ts" 2016-07-31 16:42:24.6545 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.6020.0 Command line: /opt/emby/MediaBrowser.Server.Mono.exe -programdata /media/54bf67db-da31-4c50-bb3c-27140944b223/emby -restartpath /usr/sbin/emby.sh Operating system: Unix 3.16.0.0 Processor count: 4 64-Bit OS: True 64-Bit Process: True Program data path: /media/54bf67db-da31-4c50-bb3c-27140944b223/emby Mono: 4.4.1 (Nightly 4.4.1.0/4747417 Wed Jun 22 11:14:49 UTC 2016) Application Path: /opt/emby/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) <0x41e64350 + 0x0028f> in <filename unknown>:0 at SocketHttpListener.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) <0x41e642a0 + 0x0008f> in <filename unknown>:0 at SocketHttpListener.Net.ResponseStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) <0x41e62fd0 + 0x001cf> in <filename unknown>:0 at ServiceStack.Formats.HtmlFormat.SerializeToStream (IRequest req, System.Object response, IResponse res) <0x4233edd0 + 0x00cec> 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) <0x41fd9260 + 0x00218> in <filename unknown>:0 at ServiceStack.ServiceStackHost.HandleUncaughtException (IRequest httpReq, IResponse httpRes, System.String operationName, System.Exception ex) <0x41fd8700 + 0x0012b> in <filename unknown>:0 at ServiceStack.HostContext.RaiseAndHandleUncaughtException (IRequest httpReq, IResponse httpRes, System.String operationName, System.Exception ex) <0x41fd8560 + 0x00077> in <filename unknown>:0 at ServiceStack.HttpResponseExtensionsInternal.HandleResponseWriteException (System.Exception originalEx, IRequest request, IResponse response, System.String defaultContentType) <0x4233e900 + 0x0005b> in <filename unknown>:0 at ServiceStack.HttpResponseExtensionsInternal+<WriteToResponse>d__6.MoveNext () <0x41e5dad0 + 0x0199b> in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- Edited July 31, 2016 by techworld Link to comment Share on other sites More sharing options...
Luke 37116 Posted July 31, 2016 Share Posted July 31, 2016 it's transcoding to .ts with 2channel ac3 audio and a total max bitrate of 2.8mbps. can you find out which of those characteristics the tv does not like? ultimately something about the transcoding format needs to be changed. thanks. Link to comment Share on other sites More sharing options...
techworld 3 Posted July 31, 2016 Author Share Posted July 31, 2016 Where do find that? I've added a profile to Emby, but error persist. Link to comment Share on other sites More sharing options...
techworld 3 Posted August 3, 2016 Author Share Posted August 3, 2016 I'm using a different converter, Xilisoft Video Converter, and I have the same error. http://192.168.1.97:8096/videos/c2f475900bdea6f1a10ebcff09daad52/stream.ts?Params=56179a6f319f17babac0d454c33b90f1;test;c2f475900bdea6f1a10ebcff09daad52;false;h264;ac3;1;;19808000;192000;6;30;1920;1080;0;41;;;;;;;;c2f475900bdea6f1a10ebcff09daad52;false;false;;;false {"Protocol":"File","Id":"c2f475900bdea6f1a10ebcff09daad52","Path":"/media/54bf67db-da31-4c50-bb3c-27140944b223/Shared/Music Videos/[MV] Chieu Cuoi Tuan - Tuan Vu [Xilisoft].mp4","Type":"Default","Container":"mp4","Name":"720P/H264/AAC","RunTimeTicks":2423340000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","CodecTag":"avc1","Language":"und","TimeBase":"1/60","CodecTimeBase":"1/120","NalLengthSize":"4","IsInterlaced":false,"IsAVC":true,"BitRate":3342422,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":720,"Width":1280,"AverageFrameRate":60,"RealFrameRate":60,"Profile":"Constrained Baseline","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":13,"IsAnamorphic":false},{"Codec":"aac","CodecTag":"mp4a","Language":"und","TimeBase":"1/44100","CodecTimeBase":"1/44100","DisplayTitle":"Und AAC stereo Default","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":151993,"Channels":2,"SampleRate":44100,"IsDefault":true,"IsForced":false,"Profile":"LC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":3501195,"RequiredHttpHeaders":{}} /media/54bf67db-da31-4c50-bb3c-27140944b223/emby/ffmpeg/20160215/ffmpeg -fflags +genpts -i file:"/media/54bf67db-da31-4c50-bb3c-27140944b223/Shared/Music Videos/[MV] Chieu Cuoi Tuan - Tuan Vu [Xilisoft].mp4" -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 -b:v 3342422 -maxrate 3342422 -bufsize 6684844 -r 30 -vsync -1 -level 41 -map_metadata -1 -threads 0 -codec:a:0 ac3 -ac 2 -ab 192000 -af "aresample=async=1" -y "/media/54bf67db-da31-4c50-bb3c-27140944b223/emby/transcoding-temp/9235699886994bdd3742f04528a102db.ts" ffmpeg version N-52954-g295de3e-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.3.1 (Debian 5.3.1-8) 20160205 configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --enable-librtmp --enable-libmfx --cc=gcc libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:/media/54bf67db-da31-4c50-bb3c-27140944b223/Shared/Music Videos/[MV] Chieu Cuoi Tuan - Tuan Vu [Xilisoft].mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 creation_time : 2016-08-03 00:14:36 encoder : Lavf51.12.1 Duration: 00:04:02.33, start: 0.000000, bitrate: 3501 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 3342 kb/s, 60 fps, 60 tbr, 60 tbn, 120 tbc (default) Metadata: creation_time : 2016-08-03 00:18:30 handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 151 kb/s (default) Metadata: creation_time : 2016-08-03 00:18:30 handler_name : SoundHandler [libx264 @ 0x551b820] using SAR=1/1 [libx264 @ 0x551b820] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 0x551b820] profile High, level 4.1 Output #0, mpegts, to '/media/54bf67db-da31-4c50-bb3c-27140944b223/emby/transcoding-temp/9235699886994bdd3742f04528a102db.ts': Metadata: encoder : Lavf57.25.100 Stream #0:0: Video: h264 (libx264), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 3342 kb/s, 30 fps, 90k tbn, 30 tbc (default) Metadata: encoder : Lavc57.24.102 libx264 Side data: unknown side data type 10 (24 bytes) Stream #0:1: Audio: ac3, 44100 Hz, stereo, fltp, 192 kb/s (default) Metadata: encoder : Lavc57.24.102 ac3 Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (aac (native) -> ac3 (native)) Link to comment Share on other sites More sharing options...
techworld 3 Posted August 3, 2016 Author Share Posted August 3, 2016 (edited) Edited August 3, 2016 by techworld Link to comment Share on other sites More sharing options...
techworld 3 Posted August 3, 2016 Author Share Posted August 3, 2016 Link to comment Share on other sites More sharing options...
techworld 3 Posted August 3, 2016 Author Share Posted August 3, 2016 (edited) The video played fine on Google Chrome, PS4, and Plex Media Server but not only the Sharp Aquos TV with Emby. I don't know what else to fix this! Edited August 3, 2016 by techworld Link to comment Share on other sites More sharing options...
Luke 37116 Posted August 3, 2016 Share Posted August 3, 2016 it looks like you tried to setup your own profile, which is why the audio is transcoding to ac3 2 channel? There is no built-in sharp profile so it's going to use the default dlna profile, and the default profile should be transcoding the audio to aac. basically you need to look at the transcoding format coming out of the server and first verify that it's actually something that the tv supports, and if it's not then we need to adjust it. Link to comment Share on other sites More sharing options...
techworld 3 Posted August 3, 2016 Author Share Posted August 3, 2016 (edited) The playback error occurred before I setup my profile. I thought setup a profile may resolve the issue, but apparently isn't. I found the formats support guide. Edited August 3, 2016 by techworld Link to comment Share on other sites More sharing options...
techworld 3 Posted August 3, 2016 Author Share Posted August 3, 2016 Link to comment Share on other sites More sharing options...
Luke 37116 Posted August 3, 2016 Share Posted August 3, 2016 so i guess it doesn't support ts? you could try using mkv as the transcoding container, with h264 and mp3. That's just a starting point based on above, unfortunately the only answer is trial and error until you find what works for your model. Link to comment Share on other sites More sharing options...
techworld 3 Posted August 3, 2016 Author Share Posted August 3, 2016 (edited) The mp4 is working on the TV if I'm using Plex. So it's not the TV issue, but it's Emby's transcoder. I have a lot of mp4 videos, therefore, I can't test all and see the ones that aren't working for Emby. Edited August 3, 2016 by techworld Link to comment Share on other sites More sharing options...
Luke 37116 Posted August 4, 2016 Share Posted August 4, 2016 The mp4 is working on the TV if I'm using Plex. So it's not the TV issue, but it's Emby's transcoder. I have a lot of mp4 videos, therefore, I can't test all and see the ones that aren't working for Emby. I understand but maybe I'm not communicating well enough. We build the Dlna engine but we can't possibly have every device on hand for testing. I understand the output we're sending to the TV is not correct, but since I don't have a Sharp to test with, that's why I'm asking if you can try it. There's nothing wrong with the Emby transcoder except that we're probably telling it to do the wrong thing since we haven't personally tested on a Sharp unit. Link to comment Share on other sites More sharing options...
techworld 3 Posted August 4, 2016 Author Share Posted August 4, 2016 I'm try to stick to mp4, so it's compatible for tv and mobile devices.I'll try like you said if I encounter another playback error. I'm sure I'm not the only Sharp users in here. I know you guys are busy with the development, but if you guys can compile a Sharp tv profile, I would be really happy. Link to comment Share on other sites More sharing options...
FannieJane 1 Posted May 24, 2017 Share Posted May 24, 2017 According to the owner's manual, following are the formats supported by Sharp TV: Link to comment Share on other sites More sharing options...
Luke 37116 Posted May 24, 2017 Share Posted May 24, 2017 Thanks @@FannieJane ! 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