Feature request: Support of Samsung DLNA abilities

Discuss alternative media renderers (not PS3) supported by PS3 Media Server (e.g. Xbox 360, TVs &c.)

Feature request: Support of Samsung DLNA abilities

Postby ultratoto14 » Sat Sep 26, 2009 6:14 pm

First of all, i think that PS3 media server is no more PS3 only server and it could be usefull that the moderator creates specific sub topic about different renderers.

I've got a Samsung LE40B650 tv.
This tv is DLNA compliant and is able to handle mkv directly. I found a way to use it via PMS3 as explained here http://ps3mediaserver.org/forum/viewtopic.php?f=6&t=2806&p=13424&hilit=+samsung#p13424.

Most of the format are recognized but two master features are missing:
1 - FF/RW is missing. The implementation in the samsung tv is a jump of 10 or 15 s in the movie. The DLNA server of Windows Media Player is able to handle the FF/RW mechanism so i can provide a wireshark capture if needed.
2 - The samsung tv is able to handle srt subtitles via DLNA, the Samsung Share Manager (server provided by samsung) is able to send the subtitle. I can provide a wireshark capture if needed.
It seem's that in the DIDL declaration, the sever add the url of the srt file.

Code: Select all
<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp=&apos;urn:schemas-upnp-org:metadata-1-0/upnp/&apos; xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"
xmlns:sec="http://www.sec.co.kr/"><item id="V_D_0000_9_376" parentID="V_D_0000_9" restricted="1">
<dc:title>VideoWithSubtitle.avi</dc:title>
<upnp:class>object.item.videoItem</upnp:class>
<sec:dcmInfo>CREATIONDATE=1253629219,FOLDER=01 - Sous-Titrés</sec:dcmInfo>
<dc:date>2009-09-22</dc:date>
<sec:CaptionInfoEx sec:type="srt">http://192.168.1.2:53235/V_D_0000_9_376.SRT</sec:CaptionInfoEx>
<res protocolInfo="http-get:*:video/x-msvideo:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000" size="733958196" duration="1:25:25">http://192.168.1.2:53235/V_D_0000_9_376.AVI</res>
<res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00D00000000000000000000000000000">http://192.168.1.2:53235/V_D_0000_9_376.MTN</res>
<res protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00D00000000000000000000000000000">http://192.168.1.2:53235/V_D_0000_9_376.TMTN</res>
</item>
</DIDL-Lite>


I can do the code modifications myself but i need some advices to find the best way to do it.
Thanks in advance.
ultratoto14
 
Posts: 33
Joined: Wed Mar 04, 2009 2:09 pm

Re: Feature request: Support of Samsung DLNA abilities

Postby ultratoto14 » Sun Sep 27, 2009 3:49 pm

For FF/RW, i found that the renderer always need a valid value of DLNA.ORG_PN. It seem's also that there's problem with the SeekByTime in the renderer conf. Even if set to false, the method mediaRenderer.isSeekByTime() return true. This sends the DLNA.ORG_OP=11 instead of 01.
ultratoto14
 
Posts: 33
Joined: Wed Mar 04, 2009 2:09 pm

Re: Feature request: Support of Samsung DLNA abilities

Postby clafa » Sun Oct 04, 2009 10:01 pm

Have u tried to change the code?
clafa
 
Posts: 2
Joined: Mon Jan 19, 2009 10:31 am

Re: Feature request: Support of Samsung DLNA abilities

Postby Ari » Sat Jan 16, 2010 8:17 pm

I created a diff which enables native Samsung subtitles and seeking.

In DLNAResource.java it disabled encoding for movies with subtitles, if the renderer is Samsung.

In RequestV2.java it adds another GET method like thumbnail0000, just with subtitle0000. For the http header, it adds Captioninfo.sec for the subtitles and sets the right Content-Length aswell, which is needed for seeking.

SeekByTime needs to be set to false in the Samsung.conf, but this should be the default. This patch also enables mkv streaming without transcoding in the Samsung.conf file, which works as long as the audio track is not DTS. If you don't want that just keep your old Samsung.conf.

samsung.diff.zip
(1.28 KiB) Downloaded 607 times
Ari
 
Posts: 2
Joined: Sat Jan 16, 2010 7:41 pm

Re: Feature request: Support of Samsung DLNA abilities

Postby cvandend » Sun Jan 17, 2010 1:54 pm

That sounds awesome Ari. I'd love to try this but I know nothing about java so I dont know where to start to apply this patch and create a new pms.jar. Anyone can post one somewhere? (I'll be happy to host it on my site for others).

For the changes to the conf file to support native mkv support, those are the settings I was already using:

MimeTypesChanges=audio/wav=audio/L16|video/x-matroska=video/avi
StreamExtensions=mkv,mp3,mp4,avi

and I can confirm that they work great. So maybe this can also be made permanent in svn.

If I can finally get seeking working then the last thing that is left for me is getting iso streaming with PS3 to a Samsung tv. Has anyone gotten this to work? Browsing PS3 from my tv I see a folder with the name of the iso, but there is nothing inside.
cvandend
 
Posts: 6
Joined: Sat Sep 26, 2009 5:58 pm

Re: Feature request: Support of Samsung DLNA abilities

Postby Ari » Sun Jan 17, 2010 6:40 pm

Ari
 
Posts: 2
Joined: Sat Jan 16, 2010 7:41 pm

Re: Feature request: Support of Samsung DLNA abilities

Postby cvandend » Sun Jan 17, 2010 7:09 pm

Works great! FF and RW and also subtitles. Good job! Hopefully these changes can make it into trunk.

Have you tried isos?
cvandend
 
Posts: 6
Joined: Sat Sep 26, 2009 5:58 pm

Re: Feature request: Support of Samsung DLNA abilities

Postby cvandend » Sun Jan 17, 2010 7:43 pm

Also another question: is it possible to transcode DTS on the fly to Dolby since the Samsung does not support DTS? How do you do this? I just get the message that the audio is not supported.

Thanks
cvandend
 
Posts: 6
Joined: Sat Sep 26, 2009 5:58 pm

Re: Feature request: Support of Samsung DLNA abilities

Postby shagrath » Sun Jan 17, 2010 8:40 pm

cvandend wrote:Good job! Hopefully these changes can make it into trunk.


No problem for me, I know at least someone else who has requested this.
shagrath
Project Lead
 
Posts: 2664
Joined: Wed Jan 14, 2009 1:39 pm

Re: Feature request: Support of Samsung DLNA abilities

Postby cvandend » Mon Jan 18, 2010 6:32 pm

I've played more with FF and RW. It works fine with some files and not at all with others. But I guess this is a problem at the Samsung end.
cvandend
 
Posts: 6
Joined: Sat Sep 26, 2009 5:58 pm

Next

Return to Alternative Media Renderers

Who is online

Users browsing this forum: No registered users and 4 guests