Video Thumbnail on Samsung Devices (B- and C-Series)

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

Video Thumbnail on Samsung Devices (B- and C-Series)

Postby htb » Mon Nov 08, 2010 10:35 pm

Hopefully my invest wasn't for nothing but it did not worked out of the box.
One killer feature which i still missed was the video thumbnails on my Samsung TV B7090. So i sniffed a little bit the data packaged from other server SW and port this to PS3 (because i love the tiny podcast implementation :-)

Here is a patch for testing (created on revison 412):
Code: Select all
Index: net/pms/configuration/RendererConfiguration.java
===================================================================
--- net/pms/configuration/RendererConfiguration.java   (revision 412)
+++ net/pms/configuration/RendererConfiguration.java   (working copy)
@@ -238,6 +238,10 @@
       return getRendererName().toUpperCase().contains("BRAVIA");
    }
    
+   public boolean isSAMSUNG() {
+      return getRendererName().toUpperCase().contains("SAMSUNG");
+   }
+   
    private static final String RENDERER_NAME="RendererName";
    private static final String RENDERER_ICON="RendererIcon";
    private static final String USER_AGENT="UserAgentSearch";
Index: net/pms/dlna/DLNAResource.java
===================================================================
--- net/pms/dlna/DLNAResource.java   (revision 412)
+++ net/pms/dlna/DLNAResource.java   (working copy)
@@ -816,15 +816,25 @@
       
       String thumbURL = getThumbnailURL();
       if (!isFolder() && (ext == null || (ext != null && thumbURL != null))) {
-         openTag(sb, "upnp:albumArtURI");
-         addAttribute(sb, "xmlns:dlna", "urn:schemas-dlna-org:metadata-1-0/");
-         if (getThumbnailContentType().equals(PNG_TYPEMIME) && !mediaRenderer.isBRAVIA())
-            addAttribute(sb, "dlna:profileID", "PNG_TN");
-         else
-            addAttribute(sb, "dlna:profileID", "JPEG_TN");
-         endTag(sb);
-         sb.append(thumbURL);
-         closeTag(sb, "upnp:albumArtURI");
+         if (mediaRenderer.isSAMSUNG() && getThumbnailContentType().equals(JPEG_TYPEMIME)) {
+            //add special thumbnail for jpeg and samsung target
+            openTag(sb, "res");
+            addAttribute(sb, "protocolInfo", "http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_OP=00;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=00D00000000000000000000000000000");
+               //addAttribute(sb, "resolution", "115x160");
+               endTag(sb);
+               sb.append(thumbURL);
+               closeTag(sb, "res");
+         } else {
+            openTag(sb, "upnp:albumArtURI");
+            addAttribute(sb, "xmlns:dlna", "urn:schemas-dlna-org:metadata-1-0/");
+            if (getThumbnailContentType().equals(PNG_TYPEMIME) && !mediaRenderer.isBRAVIA())
+               addAttribute(sb, "dlna:profileID", "PNG_TN");
+            else
+               addAttribute(sb, "dlna:profileID", "JPEG_TN");
+            endTag(sb);
+            sb.append(thumbURL);
+            closeTag(sb, "upnp:albumArtURI");
+         }         
       }
       
       if ((isFolder() || mediaRenderer.isBRAVIA()) && thumbURL != null){


bye
htb
Last edited by htb on Mon Nov 08, 2010 11:08 pm, edited 1 time in total.
htb
 
Posts: 5
Joined: Mon Nov 08, 2010 10:24 pm

Re: Video Thumbnail on Samsung Devices

Postby htb » Mon Nov 08, 2010 11:07 pm

Using Profile from http://ps3mediaserver.org/forum/viewtopic.php?f=15&t=7362 the patch works already with my HT-C6500 BD-Player :-)
htb
 
Posts: 5
Joined: Mon Nov 08, 2010 10:24 pm

Re: Video Thumbnail on Samsung Devices (B- and C-Series)

Postby dead » Tue Nov 09, 2010 3:43 am

hey htb, can you post your renderer config file to samsung devices?
thanks!
dead
 
Posts: 2
Joined: Sat Oct 23, 2010 5:17 pm

Re: Video Thumbnail on Samsung Devices (B- and C-Series)

Postby htb » Tue Nov 09, 2010 9:30 am

My B-Series TV is recognized by default PSMS config.
For my C Series HomeTheater i am using simply that from http://ps3mediaserver.org/forum/viewtopic.php?f=15&t=7362. But i adapted the names to 6500.
Maybe some more adaptions for transcoding are needed, but i did not test this out yet.
htb
 
Posts: 5
Joined: Mon Nov 08, 2010 10:24 pm

Re: Video Thumbnail on Samsung Devices (B- and C-Series)

Postby micha019 » Thu Nov 11, 2010 11:55 am

Hello,

how do I apply such a patch?
Sorry I'm a Java noob.

Does it also work for Photo Thumbnails?
micha019
 
Posts: 9
Joined: Fri Jul 17, 2009 9:11 am

Re: Video Thumbnail on Samsung Devices (B- and C-Series)

Postby htb » Thu Nov 11, 2010 10:32 pm

micha019 wrote:how do I apply such a patch?

Are you able to build PSMM from source code?
htb
 
Posts: 5
Joined: Mon Nov 08, 2010 10:24 pm

Re: Video Thumbnail on Samsung Devices (B- and C-Series)

Postby micha019 » Fri Nov 12, 2010 11:01 am

htb wrote:
micha019 wrote:how do I apply such a patch?

Are you able to build PSMM from source code?

Sorry no, never done yet.
Where can I find the Source Code?
Can you give me a Manual?

Did you tested Photo thumbnails with the patch on a Samsung Device?
I have a Samsung UE46c7700 TV and with the "normal" PMS Version Photo Thumbnail does not work.
micha019
 
Posts: 9
Joined: Fri Jul 17, 2009 9:11 am

Re: Video Thumbnail on Samsung Devices (B- and C-Series)

Postby htb » Thu Nov 18, 2010 7:36 am

Sorry for answering late. I've currently no time to test picture thumbnails.

To Build the code by your own is quite hard to explain (and understand) if never done it before.
The steps are something like this:
1. Install Eclipse
2. Checkout Source Code via Eclipse from SVN repository
(3. Try to compile/run PMS via Eclipse)
4. Apply this patch via "Team" option in eclipse
5. Create new jar file in eclipse
6. replace this jar in your installation

I think it would be easier that i upload my builded jar file, but size is ~18MB :? but i don't know where. Maybe rapidshare .... :?:
htb
 
Posts: 5
Joined: Mon Nov 08, 2010 10:24 pm

Re: Video Thumbnail on Samsung Devices (B- and C-Series)

Postby micha019 » Thu Nov 18, 2010 5:55 pm

yes if you could upload a builded jar would be perfect.
rapidshare would be ok.
micha019
 
Posts: 9
Joined: Fri Jul 17, 2009 9:11 am

Re: Video Thumbnail on Samsung Devices (B- and C-Series)

Postby magistratee » Thu Nov 25, 2010 5:43 am

I would really appreciate it if you can upload this as well. megaupload, mediafire,...

Thanks.
magistratee
 
Posts: 5
Joined: Wed Mar 25, 2009 10:27 am

Next

Return to Alternative Media Renderers

Who is online

Users browsing this forum: Bing [Bot] and 2 guests