FAQ  •  Register  •  Login

Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

<<

KHendricks

Serviio newbie

Posts: 7

Joined: Mon Aug 09, 2010 6:16 pm

Post Mon Aug 09, 2010 6:49 pm

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

Hi,

Whoops! I must have missed that sticky, I will edit the xml file and fire it up and see if I get a similar type of error when stuttering happens for me.

Thanks!

Kevin
<<

Brammers

Serviio lover

Posts: 87

Joined: Sat Jul 24, 2010 7:58 am

Post Mon Aug 09, 2010 6:53 pm

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

If you have a large number of files in the library the debug logs will fill up fast!

Set the max file size to a few megs and max # files to 20 or 30 - or more depending on your library size. (you can also move the path to a drive with loads of space if required).

Good luck!
J
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Aug 09, 2010 6:56 pm

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

Hi,

first of all, the source code is closed ATM.

The content length is only set to that length because the client asks for a bytes range (probably further up in the log), so it says: give me bytes 10000 - 20000, in that case the length will be 10000.

I maxed up socket buffers to 65k, which removed stuttering on most of the files I could play. What is the bitrate of your file(s)?
<<

KHendricks

Serviio newbie

Posts: 7

Joined: Mon Aug 09, 2010 6:16 pm

Post Mon Aug 09, 2010 7:55 pm

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

Hi,

I tried enabling the log and found the following sequence of requests for data from the video:


serviio.log.2:2010-08-09 15:24:24,286 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 1024
serviio.log.2:2010-08-09 15:24:24,305 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 64
serviio.log.2:2010-08-09 15:24:24,315 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 8
serviio.log.2:2010-08-09 15:24:24,324 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 204800
serviio.log.2:2010-08-09 15:24:24,358 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 204800
serviio.log.2:2010-08-09 15:24:24,390 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 204800
serviio.log.2:2010-08-09 15:24:24,426 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 204800
serviio.log.2:2010-08-09 15:24:24,462 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 204800
serviio.log.2:2010-08-09 15:24:24,499 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 204800
serviio.log.2:2010-08-09 15:24:24,535 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 204800
serviio.log.2:2010-08-09 15:24:24,572 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 21184
serviio.log.2:2010-08-09 15:24:24,582 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 204800
serviio.log.2:2010-08-09 15:24:24,620 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 204800
serviio.log.2:2010-08-09 15:24:24,909 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 319938686


And you were right the Sony BDP-S370 asked for each and every one of those sizes including the last one:


serviio.log.2:2010-08-09 15:24:24,908 DEBUG [ResourceTransportRequestHandler] GET /resource/37778/MEDIA_ITEM HTTP/1.1, headers = [Host: 192.168.0.3:8895, Accept: */*, getcontentFeatures.dlna.org: 1, transferMode.dlna.org: Streaming, X-AV-Physical-Unit-Info: pa="Blu-ray Disc Player", X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="Blu-ray Disc Player"; mv="2.0", Range: bytes=1081344-, ]

The movie in question has the following characteristics:

Format: AAC, Stereo (L,R) 44.100 khz
H.264 1280x720, Millions

FPS: 29.97

Data Size: 305.11 MB

Data Rate: 1149.4s kbits/s

This is being played via dlna over a hard wired gibabit ethernet network connection to the Sony BDP-S370 which has a 100baseT ethernet connection.

This same video plays perfectly when copied to a USB device and plugged into the back of the player.

Is there a configuration option to manually set the size of the buffers?

I would like to grow them to see what impact if any it has.

Thanks!

Kevin
<<

KHendricks

Serviio newbie

Posts: 7

Joined: Mon Aug 09, 2010 6:16 pm

Post Mon Aug 09, 2010 8:06 pm

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

zip wrote:Hi,


I maxed up socket buffers to 65k, which removed stuttering on most of the files I could play. What is the bitrate of your file(s)?


That is actually a very small socket buffer size give the bit rates of higher definition video streams isn't it?

I would prefer a couple of megs as an option if possible given the effective bit rate of most networks (especially if they are wireless) even though latency across a home network should be quite small.

Thanks,

Kevin
<<

KHendricks

Serviio newbie

Posts: 7

Joined: Mon Aug 09, 2010 6:16 pm

Post Mon Aug 09, 2010 8:33 pm

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

Hi,

FWIW,

Here are the maximum socket buffer sizes under Mac OSX Snow Leopard (at least on my machine)


sh-3.2# sysctl -w kern.ipc.maxsockbuf=8000000
kern.ipc.maxsockbuf: 4194304
sysctl: kern.ipc.maxsockbuf: Result too large
sh-3.2# sysctl -w kern.ipc.maxsockbuf=4194304
kern.ipc.maxsockbuf: 4194304 -> 4194304

which means you can use up to half that 4 meg value for send and recv buffers per socket as follows:


sh-3.2# sysctl -w net.inet.tcp.sendspace=2097152
net.inet.tcp.sendspace: 2097152 -> 2097152
sh-3.2# sysctl -w net.inet.tcp.recvspace=2097152
net.inet.tcp.recvspace: 2097152 -> 2097152


So the kernel enables maximum socket buffer sizes of 2 meg on Mac OSX (at least on my iMac x86_64

So I would love to have an option to manually override the value of the socket buffer sizes you are using as an config.xml entry or a java properties file value if that would be doable at some point.

Thanks,

Kevin
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Aug 10, 2010 8:11 am

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

I think it would, create a bitbucket.org ticket.
<<

KHendricks

Serviio newbie

Posts: 7

Joined: Mon Aug 09, 2010 6:16 pm

Post Tue Aug 10, 2010 3:00 pm

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

Hi,

I have just created issue #162 in your repository on bitbucket.org.

Thanks!

Kevin
<<

insane822

User avatar

Serviio lover

Posts: 61

Joined: Sat Aug 07, 2010 5:32 am

Post Wed Aug 11, 2010 1:22 am

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

I have tried every "working" profile that has been posted in this thread, but none of them work. The only thing that serviio is serving to the player is Music and Pictures, but not video.

It really makes no sense to me.. I have tried WMP, Meezmo and iSedora.. and all of them show up serving video every time. The problem with these, though, is they will not work because I cannot change the mime-type like serviio can (and they cost money).

There must be something strange going on if all of the other servers work. Is there any information needed to help fix this issue of the video section not showing up?

Thanks for the hard work :P
<<

insane822

User avatar

Serviio lover

Posts: 61

Joined: Sat Aug 07, 2010 5:32 am

Post Wed Aug 11, 2010 2:44 am

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

Since we are still having the issue with multiple people, including myself, not getting the "video" section to appear in the player using Serviio, I decided to get some tcp dumps and include the SOAP conversations that the player had with serviio vs mezzmo.

The player only needed to communicate 5 tcp streams of SOAP data before having photos/music/video show up on the player with mezzmo. I have included comparisons of the data sent by mezzmo vs serviio. I don't understand the dlna protocol very well, so I'm hoping you can take a look and see why one works and the other does not.

Thanks ;)
Attachments
soap_dump.zip
(9.56 KiB) Downloaded 592 times
<<

insane822

User avatar

Serviio lover

Posts: 61

Joined: Sat Aug 07, 2010 5:32 am

Post Wed Aug 11, 2010 7:42 am

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

So, I finally got the video section to show up using Serviio by adding this to my profile:
  Code:
<MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_NTSC">MPEG1</MediaFormatProfile>


Without that, the video section will disappear again. :o


I was doing some research and I think I may have found the problem. Correct me if I am wrong about the specification, though. What I am reading is that the DLNA media server MUST respond with support for one of the following profiles:
    US: MPEG_TS_SD_NA, MPEG_TS_SD_NA_T, MPEG_TS_SD_NA_ISO, MPEG_PS_NTSC
    Japan: MPEG_TS_JP_T, MPEG_PS_NTSC
    Europe: MPEG_TS_SD_EU, MPEG_TS_SD_EU_T, MPEG_TS_SD_EU_ISO, MPEG_PS_PAL
    Korea: MPEG_TS_SD_KO, MPEG_TS_SD_KO_T, MPEG_TS_SD_KO_ISO, MPEG_PS_NTSC

I see that the generic profile that we build upon does indeed include "MPEG_PS_PAL", but I think my player gets upset, because obviously I am in the US and the specification says that I should have MPEG_PS_NTSC support?

I'm still working on getting MKV working, but I think this probably explains why the people posting here from the US is having problems with the video section not appearing.


Edit:
Another issue with it thinking I should be using europe profiles, so I think since I have a US player it gets ignored. Since the DLNA spec has requirements for each region, I assume that there must be a way for the player and the server to determine the region? Is this not being communicated properly between the player and server?

  Code:
2010-08-11 03:43:15,507 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file test-720p.mkv: MPEG_TS_SD_EU


This us using the following profile:
  Code:
<Profile id="9" name="Sony BDP-S370" extendsProfileId="1">
   <Detection>
      <X-AV-Client-Info>.*Blu-ray Disc Player.*</X-AV-Client-Info>
   </Detection>
   <MediaFormatProfiles>
      <MediaFormatProfile mime-type="video/divx">MATROSKA</MediaFormatProfile>
   </MediaFormatProfiles>
      <AutomaticImageRotation>true</AutomaticImageRotation>
<Transcoding>
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">
   <Matches container="matroska" vCodec="h264" />
   <Matches container="mpegts" vCodec="h264" />
   <Matches container="avi" vCodec="h264" />
</Video>
</Transcoding>
</Profile>     



Thanks again! :D
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Aug 11, 2010 1:21 pm

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

insane822 wrote:So, I finally got the video section to show up using Serviio by adding this to my profile:
  Code:
<MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_NTSC">MPEG1</MediaFormatProfile>


Without that, the video section will disappear again. :o


You could try this:
  Code:
   <Profile id="10" name="Sony BDP-S370" extendsProfileId="1">
         <Detection>
            <X-AV-Client-Info>.*Blu-ray Disc Player.*</X-AV-Client-Info>
      </Detection>
      <MediaFormatProfiles>
       <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_NTSC">MPEG_PS_PAL</MediaFormatProfile>
       <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_NA">MPEG_TS_SD_EU</MediaFormatProfile>
       <MediaFormatProfile mime-type="video/divx">MATROSKA</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/divx">AVI</MediaFormatProfile>
      </MediaFormatProfiles>
           <AutomaticImageRotation>true</AutomaticImageRotation>
   </Profile>
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Aug 11, 2010 6:10 pm

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

insane822 wrote:Correct me if I am wrong about the specification, though. What I am reading is that the DLNA media server MUST respond with support for one of the following profiles:
    US: MPEG_TS_SD_NA, MPEG_TS_SD_NA_T, MPEG_TS_SD_NA_ISO, MPEG_PS_NTSC
    Japan: MPEG_TS_JP_T, MPEG_PS_NTSC
    Europe: MPEG_TS_SD_EU, MPEG_TS_SD_EU_T, MPEG_TS_SD_EU_ISO, MPEG_PS_PAL
    Korea: MPEG_TS_SD_KO, MPEG_TS_SD_KO_T, MPEG_TS_SD_KO_ISO, MPEG_PS_NTSC

But then it says:
Device vendors may choose to support one or more geographical regions for any device.

Serviio currently supports European profiles.

I assume that there must be a way for the player and the server to determine the region? Is this not being communicated properly between the player and server?

If you can find out then great, maybe it's in one of the HTTP headers.
<<

KHendricks

Serviio newbie

Posts: 7

Joined: Mon Aug 09, 2010 6:16 pm

Post Wed Aug 11, 2010 6:37 pm

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

Hi,

I live in Canada and my player does not seem to need the NTSC entry. Instead it just wants everything as divx.
If there is no region info being passed, then perhaps it might be easy to create two profiles:

Sony BDP-S370 - US

and a

Sony BDP-S370

That way the user can manually select the device profile that is US specific or the other S370 profile.

Would manual selection override the auto detection?
<<

insane822

User avatar

Serviio lover

Posts: 61

Joined: Sat Aug 07, 2010 5:32 am

Post Wed Aug 11, 2010 7:20 pm

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

But then it says:
Device vendors may choose to support one or more geographical regions for any device. Serviio currently supports European profiles.



Thanks for the info! I wish I would have known that sooner, but knowing me it's probably listed on the site and I just need to put my glasses back on. Do you think it would be possible to manually select a region in a future release?

Is there any work around to manualy select the profile when transcoding, instead if it automatically choosing MPEG_TS_SD_EU?


Thanks for the hard work! :)
Last edited by insane822 on Wed Aug 11, 2010 7:24 pm, edited 1 time in total.
<<

insane822

User avatar

Serviio lover

Posts: 61

Joined: Sat Aug 07, 2010 5:32 am

Post Wed Aug 11, 2010 7:24 pm

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

KHendricks wrote:Hi,

I live in Canada and my player does not seem to need the NTSC entry. Instead it just wants everything as divx.
If there is no region info being passed, then perhaps it might be easy to create two profiles:
?


I do find that a little strange, but it appears they have given you guys slightly different codec support. I don't know why, but the "official divx" is only supported by models in Canada.
<<

insane822

User avatar

Serviio lover

Posts: 61

Joined: Sat Aug 07, 2010 5:32 am

Post Wed Aug 11, 2010 8:41 pm

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

Hey guys,

I've probably spent 2 days messing around and researching the DLNA specification trying to get this thing to work. I found out (like zip said) that Serviio currently only supports European profiles, so this is why all of us in the United States were having issues getting the video section to appear on our players. The Canadian models "officialy" support divx, and people do not seem to have the NTSC profile issue.

So, for those of us with models that were bought in the united states, here is a working profile that I have tested to work with mkv/xvid/divx.

NORTH AMERICA ONLY:
  Code:
   <Profile id="9" name="Sony BDP-S370" extendsProfileId="1">
         <Detection>
            <X-AV-Client-Info>.*Blu-ray Disc Player.*</X-AV-Client-Info>
      </Detection>
      <MediaFormatProfiles>
    <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_NTSC">MPEG1</MediaFormatProfile>
    <MediaFormatProfile mime-type="video/x-matroska" name="MPEG_PS_NTSC">MATROSKA</MediaFormatProfile>
    <MediaFormatProfile mime-type="video/divx" name="MPEG_PS_NTSC">AVI</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_PS_NTSC">AVC_TS_MP_SD_AAC_MULT5</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_PS_NTSC">AVC_TS_MP_SD_MPEG1_L3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_PS_NTSC">AVC_TS_MP_SD_AC3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_PS_NTSC">AVC_TS_MP_HD_AAC_MULT5</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_PS_NTSC">AVC_TS_MP_HD_MPEG1_L3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_PS_NTSC">AVC_TS_MP_HD_AC3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_PS_NTSC">AVC_TS_HD_50_LPCM_T</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4" name="MPEG_PS_NTSC">AVC_MP4_MP_SD_AAC_MULT5</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4" name="MPEG_PS_NTSC">AVC_MP4_MP_SD_MPEG1_L3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4" name="MPEG_PS_NTSC">AVC_MP4_MP_SD_AC3</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4" name="MPEG_PS_NTSC">AVC_MP4_MP_HD_720p_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4" name="MPEG_PS_NTSC">AVC_MP4_MP_HD_1080i_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4" name="MPEG_PS_NTSC">AVC_MP4_HP_HD_AAC</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4" name="MPEG_PS_NTSC">AVC_MP4_LPCM</MediaFormatProfile>
         <MediaFormatProfile mime-type="video/mp4" name="MPEG_PS_NTSC">MPEG4_P2_MP4_ASP_AAC</MediaFormatProfile>
      </MediaFormatProfiles>
           <AutomaticImageRotation>true</AutomaticImageRotation>
   </Profile>
Last edited by insane822 on Wed Aug 11, 2010 10:38 pm, edited 1 time in total.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Aug 11, 2010 10:03 pm

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

It might work, but is not 'correct' as you're specifying mime type of x-matroska to all stream types, e.g. mpeg2ts. AFAIK the region-specific formats are only mpeg2ps (MPEG_PS_PAL, MPEG_PS_NTSC) and basic mpeg2ts (MPEG_TS_SD_EU, MPEG_TS_SD_KO, MPEG_TS_SD_NA).
<<

insane822

User avatar

Serviio lover

Posts: 61

Joined: Sat Aug 07, 2010 5:32 am

Post Wed Aug 11, 2010 10:41 pm

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

zip wrote:It might work, but is not 'correct' as you're specifying mime type of x-matroska to all stream types, e.g. mpeg2ts. AFAIK the region-specific formats are only mpeg2ps (MPEG_PS_PAL, MPEG_PS_NTSC) and basic mpeg2ts (MPEG_TS_SD_EU, MPEG_TS_SD_KO, MPEG_TS_SD_NA).



Original post updated.

I set the mime-types back to what they should be and it works, but only if "name=MPEG_PS_NTSC" is set for each type.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Aug 11, 2010 11:19 pm

Re: Problems with MKV / H.264 on Sony BDP-S370 Bluray-Player

Can you try this: viewtopic.php?f=5&t=305&start=10#p2748

(ProtocolInfo simple and then remove the format renaming)
PreviousNext

Return to Sony

Who is online

Users browsing this forum: No registered users and 26 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.