Page 1 of 1

SHARP DLNA - MKV

PostPosted: Thu Mar 27, 2014 6:39 pm
by dk4dk4
My Sharp TV is not playing MKV files consistently. I request the following MKV file from TV and it immediately falls back to episode listing screen on TV:

DEBUG Log:
2014-03-27 14:24:17,389 DEBUG [ServiioHttpService] Incoming request from /192.168.1.116:53380: GET /resource/161/MEDIA_ITEM/AVC_TS_MP_SD_AC3_ISO-0/ORIGINAL HTTP/1.1, headers = [Connection: Close,Host: 192.168.1.135:8895,User-Agent: DLNADOC/1.50 SHARP-AQUOS-DMP/1.1W,getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Streaming]]
2014-03-27 14:24:17,390 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.116
2014-03-27 14:24:17,390 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.116
2014-03-27 14:24:17,390 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.1.116, Profile=Sharp Aquos'
2014-03-27 14:24:17,390 DEBUG [ResourceDeliveryProcessor] Request for resource 161 and type 'MEDIA_ITEM' received
2014-03-27 14:24:17,390 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 161 (local)
2014-03-27 14:24:17,390 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 161)
2014-03-27 14:24:17,391 DEBUG [VideoDAOImpl] Reading a Video (id = 161)
2014-03-27 14:24:17,391 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 161, format AVC_TS_MP_SD_AC3_ISO and profile Sharp Aquos
2014-03-27 14:24:17,391 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file Shameless S01E06-Killer Carl.mkv
2014-03-27 14:24:17,391 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Shameless S01E06-Killer Carl.mkv: AVC_TS_MP_SD_AC3_ISO
2014-03-27 14:24:17,391 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 161 (local)
2014-03-27 14:24:17,391 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 161)
2014-03-27 14:24:17,391 DEBUG [VideoDAOImpl] Reading a Video (id = 161)
2014-03-27 14:24:17,392 DEBUG [VideoDeliveryEngine] Delivering item '161' for client 'Identifier=192.168.1.116, Profile=Sharp Aquos'
2014-03-27 14:24:17,392 DEBUG [VideoDeliveryEngine] Delivering file 'Shameless S01E06-Killer Carl.mkv' using transcoding
2014-03-27 14:24:17,392 DEBUG [AbstractTranscodingDeliveryEngine] A suitable transcoding job already exists, re-use it for client 'Identifier=192.168.1.116, Profile=Sharp Aquos'
2014-03-27 14:24:17,393 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2014-03-27 14:24:17,393 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Shameless S01E06-Killer Carl.mkv: AVC_TS_MP_SD_AC3_ISO
2014-03-27 14:24:17,393 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 161) as read
2014-03-27 14:24:17,396 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2014-03-27 14:24:17,396 DEBUG [GETMethodProcessor] Stream entity has length: 50000000000
2014-03-27 14:24:17,396 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2014-03-27 14:24:17,396 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Date: Thu, 27 Mar 2014 18:24:17 GMT,Server: Windows NT (unknown), UPnP/1.0 DLNADOC/1.50, Serviio/1.4.1.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=AVC_TS_MP_SD_AC3_ISO;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2014-03-27 14:24:17,422 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
2014-03-27 14:24:18,006 DEBUG [ServiioHttpService] Incoming request from /192.168.1.116:59541: POST /serviceControl HTTP/1.1, headers = [Host: 192.168.1.135:8895,User-Agent: DLNADOC/1.50 SHARP-AQUOS-DMP/1.1W,SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse",Content-Type: text/xml; charset="utf-8",Content-Length: 473]]
2014-03-27 14:24:18,006 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.116
2014-03-27 14:24:18,007 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 192.168.1.116
2014-03-27 14:24:18,007 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.116
2014-03-27 14:24:18,060 DEBUG [ContentDirectory] Browse() called for renderer Sharp Aquos (profile 18) with parameters: objectID = V_S^SER_8^SSN_1, browseFlag = BrowseMetadata, filter = *, startIndex = 0, count = 0, sortCriteria =
2014-03-27 14:24:18,060 DEBUG [AccessGroupDAOImpl] Reading a AccessGroup (id = 1)
2014-03-27 14:24:18,061 DEBUG [VideoDAOImpl] Retrieving last episode for series 8
2014-03-27 14:24:18,062 DEBUG [VideoDAOImpl] Retrieving number of videos for series 8 season 1 [No_Restriction]
2014-03-27 14:24:18,062 DEBUG [LocalContentCacheDecorator] Stored entry in the cache (local_resetafterplay), returning it
2014-03-27 14:24:18,064 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message

PROFILE:

<Profile id="18" name="Sharp Aquos" extendsProfileId="1">
<Detection>
<HttpHeaders>
<User-Agent>.*SHARP-AQUOS.*</User-Agent>
</HttpHeaders>
</Detection>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/mpeg" name="MPEG_TS_SD_EU_ISO">AVC_TS_MP_HD_AC3_ISO</MediaFormatProfile>
<MediaFormatProfile mime-type="video/avi" name="">AVI</MediaFormatProfile>
<MediaFormatProfile mime-type="video/mp4">MPEG4_P2_3GPP_SP_L0B_AAC</MediaFormatProfile>
<MediaFormatProfile mime-type="video/mp4">MPEG4_P2_3GPP_SP_L0B_AMR</MediaFormatProfile>
<MediaFormatProfile mime-type="video/mp4">AVC_3GPP_BL_QCIF15_AAC</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
<Matches container="matroska" vCodec="h264"/>
<Matches container="flv" vCodec="h264"/>
</Video>
<Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
<Matches container="matroska" />
<Matches container="flv" />
<Matches container="wtv" />
<Matches container="mp4" aCodec="ac3" />
<Matches container="asf" />
<Matches container="rm" />
<Matches container="avi" />
</Video>
<Audio targetContainer="lpcm">
<Matches container="asf" />
<Matches container="flac" />
<Matches container="ogg" />
<Matches container="wavpack" />
<Matches container="mpc" />
<Matches container="ape" />
</Audio>
</Transcoding>
<OnlineTranscoding>
<Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
<Matches container="mp4" />
</Video>
</OnlineTranscoding>
<AutomaticImageRotation>true</AutomaticImageRotation>
<LimitImageResolution>false</LimitImageResolution>
</Profile>


FILE FORMAT:
Format : Flash Video
File size : 133 MiB
Duration : 51mn 14s
Overall bit rate : 363 Kbps
Tagged date : UTC 2012-05-09 21:31:26
Tagging application : inlet media FLVTool2 v1.0.6 - http://www.inlet-media.de/flvtool2

Video
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : 7
Duration : 51mn 14s
Bit rate : 274 Kbps
Width : 624 pixels
Height : 352 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.054
Stream size : 101 MiB (76%)
Writing library : x264 core 118
Encoding settings : cabac=1 / ref=3 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=24 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=0 / b_bias=0 / direct=2 / weightb=1 / open_gop=0 / weightp=0 / keyint=320 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=28.0 / qcomp=0.70 / qpmin=10 / qpmax=51 / qpstep=3 / ip_ratio=1.41 / aq=1:1.00

Audio
Format : AAC


After some troubleshooting I found I can play the above video but only AFTER I start a different MKV file on the TV first.
Events to get it to play :
-Start to play Justified MKV (details below) on TV, and then exit back to Video menu
-Select the above video 'Shameless' (failed previously) and it now plays (after starting to stream Justified).
-Exit back to Video menu
-Select exact same file 'Shameless' again (just played ok) and it errors back to listing screen on TV.

The Justified MKV file format looks like this:

Format : Matroska
Format version : Version 4 / Version 2
File size : 200 MiB
Duration : 51mn 51s
Overall bit rate : 540 Kbps
Movie name : >> ENCODEKING.COM <<
Encoded date : UTC 2013-09-01 09:25:45
Writing application : mkvmerge v6.3.0 ('You can't stop me!') built on Jun 28 2013 20:09:41
Writing library : libebml v1.3.0 + libmatroska v1.4.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.0
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 51mn 51s
Nominal bit rate : 504 Kbps
Width : 848 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.052
Title : >> ENCODEKING.COM <<
Writing library : x264 core 133 r2334 a3ac64b
Encoding settings : cabac=1 / ref=3 / deblock=1:-2:-1 / analyse=0x3:0x113 / me=umh / subme=5 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=12 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=12 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=16 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=504 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=2:1.00
Default : Yes
Forced : No

Audio
ID : 2
Format : AAC

Any help would be appreciated...
Thanks!