[rygel] core: Offer SD transcoding in EU profile



commit e3d5dc4d36ff7b4a2585f96c3fb9aa8cfa6787ac
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sat Jun 19 19:18:58 2010 +0300

    core: Offer SD transcoding in EU profile
    
    Seems certain Sony Bravia TVs only support EU profiles. With this patch,
    they should at least be able to use the SD transcoding.

 src/rygel/rygel-mp2ts-transcoder.vala |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-mp2ts-transcoder.vala b/src/rygel/rygel-mp2ts-transcoder.vala
index c4afac6..b53b6aa 100644
--- a/src/rygel/rygel-mp2ts-transcoder.vala
+++ b/src/rygel/rygel-mp2ts-transcoder.vala
@@ -39,7 +39,8 @@ internal class Rygel.MP2TSTranscoder : Rygel.Transcoder {
     // HD
     private const int[] WIDTH = {640, 1280};
     private const int[] HEIGHT = {480, 720};
-    private const string[] PROFILES = {"MPEG_TS_SD_US", "MPEG_TS_HD_US"};
+    private const int[] FRAME_RATE = {25, 30};
+    private const string[] PROFILES = {"MPEG_TS_SD_EU_ISO", "MPEG_TS_HD_US"};
     private const int BITRATE = 3000000;
 
     private const string VIDEO_ENCODER = "ffenc_mpeg2video";
@@ -143,7 +144,7 @@ internal class Rygel.MP2TSTranscoder : Rygel.Transcoder {
                                         HEIGHT[this.profile],
                                     "framerate",
                                         typeof (Fraction),
-                                        30,
+                                        FRAME_RATE[this.profile],
                                         1,
                                     "pixel-aspect-ratio",
                                         typeof (Fraction),



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