rygel r777 - trunk/src/rygel



Author: zeeshanak
Date: Wed Apr  1 21:56:03 2009
New Revision: 777
URL: http://svn.gnome.org/viewvc/rygel?rev=777&view=rev

Log:
Make sure mpeg ts transcoder outputs 30 fps.

Modified:
   trunk/src/rygel/rygel-mp2ts-transcoder.vala

Modified: trunk/src/rygel/rygel-mp2ts-transcoder.vala
==============================================================================
--- trunk/src/rygel/rygel-mp2ts-transcoder.vala	(original)
+++ trunk/src/rygel/rygel-mp2ts-transcoder.vala	Wed Apr  1 21:56:03 2009
@@ -84,12 +84,13 @@
         var bin = new Bin ("video-encoder-bin");
         bin.add_many (videorate, videoscale, convert, encoder);
 
-        var caps = new Caps.simple (
-                                "video/x-raw-yuv",
+        var caps = new Caps.simple ("video/x-raw-yuv",
+                                    "framerate", typeof (Fraction), 30, 1);
+        videorate.link_filtered (convert, caps);
+        convert.link (videoscale);
+        caps = new Caps.simple ("video/x-raw-yuv",
                                 "width", typeof (int), WIDTH[this.profile],
                                 "height", typeof (int), HEIGHT[this.profile]);
-        videorate.link (convert);
-        convert.link (videoscale);
         videoscale.link_filtered (encoder, caps);
 
         var pad = videorate.get_static_pad ("sink");



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