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 c02074838d0d766735937e6e8366cc781896a043..184ff5a0de3555b93636d19133029067cd069050 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)