コード例 #1
0
 def remoteSetUp(self):
     self._codec = self.arguments.get("codec", "theora")
     self._num_buffers = self.arguments.get("num-buffers", 100)
     self._bitrate = self.arguments.get("bitrate", 800)
     self._out_file = self._outputfiles["video-enc"]
     # self._out_file = None
     GStreamerTest.remoteSetUp(self)
コード例 #2
0
ファイル: gnltest.py プロジェクト: fthiery/gst-qa-system
 def remoteSetUp(self):
     self._fakesink = None
     self._gotFirstBuffer = False
     self._gotNewSegment = False
     self._start = self.arguments.get("start", 0)
     self._duration = self.arguments.get("duration", gst.SECOND)
     self._mstart = self.arguments.get("media-start", 5 * gst.SECOND)
     self._mduration = self.arguments.get("media-duration", self._duration)
     warning("Got caps-string:%r", self.arguments.get("caps-string", "audio/x-raw-int;audio/x-raw-float"))
     self._caps = gst.Caps(str(self.arguments.get("caps-string", "audio/x-raw-int;audio/x-raw-float")))
     GStreamerTest.remoteSetUp(self)
コード例 #3
0
ファイル: encoder.py プロジェクト: fthiery/gst-qa-system
 def remoteSetUp(self):
     # first check if we have enough arguments to create a valid pipeline
     self._encodeVideo = self.arguments.get("encode-video", False)
     self._encodeAudio = self.arguments.get("encode-audio", False)
     self._videoFact = self.arguments.get("video-encoder-factory")
     self._audioFact = self.arguments.get("audio-encoder-factory")
     self._videoCaps = self.arguments.get("video-caps")
     self._audioCaps = self.arguments.get("audio-caps")
     self._muxerFact = self.arguments.get("muxer-factory")
     self._mediaDuration = self.arguments.get("media-duration", 20 * gst.SECOND)
     self._audioSource = None
     self._videoSource = None
     self._audioEncoder = None
     self._videoEncoder = None
     self._muxer = None
     debug("about to get outputfile")
     self._outPath = self._outputfiles["encoded-muxed-file"]
     debug("got outputfile %s", self._outPath)
     GStreamerTest.remoteSetUp(self)