gmyth-stream/gmencoder/src/gmencoder.c
branchtrunk
changeset 919 ec8c246e9d29
parent 905 d2d226b5a4bd
child 931 e8e3219edf5f
     1.1 --- a/gmyth-stream/gmencoder/src/gmencoder.c	Fri Feb 01 14:30:21 2008 +0000
     1.2 +++ b/gmyth-stream/gmencoder/src/gmencoder.c	Thu Feb 21 17:54:48 2008 +0000
     1.3 @@ -469,7 +469,7 @@
     1.4          GstElement     *vscale;
     1.5  
     1.6          vscale = gst_element_factory_make("videoscale", "vscale");
     1.7 -        //g_object_set (G_OBJECT (vscale), "method", 1, NULL);
     1.8 +        g_object_set (G_OBJECT (vscale), "method", 1, NULL);
     1.9          gst_bin_add(GST_BIN(vbin), vscale);
    1.10  
    1.11          vcaps = gst_caps_new_simple("video/x-raw-yuv",
    1.12 @@ -491,6 +491,7 @@
    1.13  
    1.14      if (fps > 0) {
    1.15          // Changing the video fps
    1.16 +        g_debug ("Changing FPS TO : %5.2f", fps);
    1.17          GstCaps        *vcaps;
    1.18          vrate = gst_element_factory_make("videorate", "vrate");
    1.19  
    1.20 @@ -503,7 +504,7 @@
    1.21  
    1.22          vcaps = gst_caps_new_simple("video/x-raw-yuv",
    1.23                                      "framerate", GST_TYPE_FRACTION,
    1.24 -                                    (int) (fps * 1000), 1000,
    1.25 +                                    (int) fps, 1,
    1.26                                      NULL);
    1.27  
    1.28          if (gst_element_link_filtered(vrate, vencode, vcaps) == FALSE) {