Adding key-frame and bitrate target option in vp8 encoder.
authorDavid Testé <soonum@gnu.org>
Sat, 19 Mar 2016 19:59:55 +0000 (20:59 +0100)
committerDavid Testé <soonum@gnu.org>
Sat, 19 Mar 2016 19:59:55 +0000 (20:59 +0100)
gstconf.py

index c020748..184ff5a 100755 (executable)
@@ -182,11 +182,11 @@ class New_user_pipeline():
         self.vp8enc.set_property('max_quantizer', 13)
         self.vp8enc.set_property('cpu-used', 5)
         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)
         self.vp8enc.set_property('keyframe-max-dist', 25)
-
+        self.vp8enc.set_property('target-bitrate', 2000000)
+        
     def create_decoder_elements(self):
         self.jpegdec = Gst.ElementFactory.make('jpegdec', 'jpegdec')
         self.jpegdec.set_property('max-errors', -1)