Patch Samsung hacks



Hello,

Below are two changes required to play AVCHD & QuickTime camera movies on a Samsung D series TV. I've also verified it on a Samsung E series TV but here only the AVCHD movie will play.

Below movie file is from a Canon EOS camera. It can't be play unless below samsung mime_type change for quicktime:
#] file MVI_1653.MOV
MVI_1653.MOV: ISO Media, Apple QuickTime movie

Then I have a movie file from a Panasonic TZ-7 (AVCHD Lite) and it needs the mp2t mime_type change.

diff --git a/src/librygel-server/rygel-samsung-tv-hacks.vala b/src/librygel-server/rygel-samsung-tv-hacks.vala
index 60127c5..3bfed8a 100644
--- a/src/librygel-server/rygel-samsung-tv-hacks.vala
+++ b/src/librygel-server/rygel-samsung-tv-hacks.vala
@@ -36,6 +36,14 @@ internal class Rygel.SamsungTVHacks : ClientHacks {
         var item = object as MediaItem;
         if (item.mime_type == "video/x-matroska") {
             item.mime_type = "video/x-mkv";
+        }
+        // Required to play Panasonic TZ-7 AVCHD-Lite movies. Verfied on D+E-Series TV
+        else if (item.mime_type == "video/mp2t") {
+            item.mime_type = "video/vnd.dlna.mpeg-tts";
+        }
+        // Required to play Canon EOS camera movies. Verfied on D-Series TV (E-Series still don't work)
+        else if (item.mime_type == "video/quicktime") {
+            item.mime_type = "video/mp4";
         }
     }


-- john


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]