Fine elements property tunning for LibrePlanet2016
authorDavid Testé <soonum@gnu.org>
Thu, 17 Mar 2016 16:53:41 +0000 (17:53 +0100)
committerDavid Testé <soonum@gnu.org>
Thu, 17 Mar 2016 16:53:41 +0000 (17:53 +0100)
stream_2016/gstconf.py

index 115c2d0..2212fb2 100755 (executable)
@@ -181,7 +181,8 @@ class New_user_pipeline():
         self.vp8enc.set_property('min_quantizer', 1)
         self.vp8enc.set_property('max_quantizer', 13)
         self.vp8enc.set_property('cpu-used', 5)
-        self.vp8enc.set_property('deadline', 42000)
+        self.vp8enc.set_property('deadline', 1)
+##        self.vp8enc.set_property('target-bitrate', 2000000)
         self.vp8enc.set_property('threads', 2)
         self.vp8enc.set_property('sharpness', 7)
 
@@ -200,7 +201,8 @@ class New_user_pipeline():
 
     def create_filtering_elements(self):
         self.scaling = Gst.ElementFactory.make('videoscale', 'scaling')
-        caps = Gst.caps_from_string('video/x-raw, width=(int)640, height=(int)360')
+        caps = Gst.caps_from_string(
+            'video/x-raw, width=(int)640, height=(int)360, framerate=(float)25/1')
         self.capsfilter = Gst.ElementFactory.make('capsfilter', 'capsfilter')
         self.capsfilter.set_property('caps', caps)
 
@@ -414,7 +416,6 @@ class New_user_pipeline():
                                  self.queuev_2,
                                  self.queuev_3,
                                  output_element_3=self.vp8enc)
-##            self.capsfilter_backup.link(self.queuev_3)
                 print('BACKUP OK...', end='')
         if not cond:
             print('TEST OK...', end='')