From: David Testé Date: Sat, 19 Mar 2016 19:59:55 +0000 (+0100) Subject: Adding key-frame and bitrate target option in vp8 encoder. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=61903927b08b98a8e0c4050803b1a6da0f54e186;p=libre-streamer.git Adding key-frame and bitrate target option in vp8 encoder. --- diff --git a/gstconf.py b/gstconf.py index c020748..184ff5a 100755 --- a/gstconf.py +++ b/gstconf.py @@ -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)