Did I find the right examples for you? yes no

All Samples(234)  |  Call(234)  |  Derive(0)  |  Import(0)

src/g/a/Galicaster-HEAD/galicaster/recorder/utils.py   Galicaster(Download)
 
        # Add elements
        self.add(self.image, caps_img, text, q0, 
                 self.device, self.identity, caps_dev, q2, scale, caps_res, rate, caps_rate, q1,
                 self.selector, qs)
        self.device = gst.element_factory_make(self.driver_type, 'device')
        self.device.set_property('device', self.devicepath)
        self.add(self.device)
        self.device.link(self.identity)
        self.device.set_state(gst.STATE_PLAYING)
    def reset2(self):
        self.device = gst.element_factory_make(self.driver_type, 'device')
        self.device.set_property('device', self.devicepath)
        self.add(self.device)
        self.device.link(self.identity)

src/g/a/galicaster-uib-HEAD/galicaster/recorder/utils.py   galicaster-uib(Download)
 
        # Add elements
        self.add(self.image, caps2, text, scale, q0, 
                 self.device, self.identity, qn, caps, color, q1,
                 self.selector, qs, caps3)
        self.device = gst.element_factory_make(self.driver_type, 'device')
        self.device.set_property('device', self.devicepath)
        self.add(self.device)
        self.device.link(self.identity)
        self.device.set_state(gst.STATE_PLAYING)
    def reset2(self):
        self.device = gst.element_factory_make(self.driver_type, 'device')
        self.device.set_property('device', self.devicepath)
        self.add(self.device)
        self.device.link(self.identity)

src/d/e/deepin-music-player-HEAD/src/player/fadebin.py   deepin-music-player(Download)
 
        audioconvert2 = gst.element_factory_make("audioconvert")
        self.__filterbin.add(audioconvert2)
        pad = audioconvert2.get_pad("sink")
        self.__filterbin.add_pad(gst.GhostPad("sink", pad))
        # self.spectrum = gst.element_factory_make ("spectrum", "spectrum")
 
        self.__output.add(self.__capsfilter, audioconvert , audioresample , \
                self.__tee , self.__volume, self.__filterbin, postaudioconvert, postaudioresample, queue, self.__sink)
        gst.element_link_many(self.__capsfilter, audioconvert, audioresample, \
        capsfilter.set_property("caps", caps)
 
        self.__silence.add(audiotestsrc, audioconvert, capsfilter)
        gst.element_link_many(audiotestsrc, audioconvert, capsfilter)
 
 
        queue.set_property("max-size-buffers", 3)
        bin.add(queue, audioconvert, element)
        gst.element_link_many(queue, audioconvert, element)
 
        audioconvert = gst.element_factory_make("audioconvert")
        audioresample = gst.element_factory_make("audioresample")
        bin.add(element, audioconvert, audioresample)
        element.link(audioconvert)
        audioconvert.link(audioresample)

src/t/w/twimp-HEAD/twimp/scripts/live_publish_client.py   twimp(Download)
 
        audioBin = gst.Bin()
        audioBin.add(source, queue, audiorate, audioconvert, capsfilter,
                tee, encoder, sink)
 
 
        videoBin = gst.Bin()
        videoBin.add(videosrc, queue, videorate, ffmpegcolorspace, videoscale,
                capsfilter, tee, encoder, sink)
        gst.element_link_many(videosrc, queue, videorate, ffmpegcolorspace,
            videoscale1 = gst.element_factory_make("videoscale")
            videosink = gst.element_factory_make(self.videosink)
            videoBin.add(queue1, ffmpegcolorspace1, videoscale1, videosink)
            gst.element_link_many(tee, queue1, ffmpegcolorspace1, videoscale1,
                    videosink)

src/z/s/zspykee-HEAD/zspykee/zspykee/gstreamer.py   zspykee(Download)
        self.vcapsfilter.set_property("caps", gst.caps_from_string(
            "video/x-raw-yuv,framerate=15/1"))
        self.add(self.vsrc, self.vqueue, self.jpegdec, self.vrate, 
            self.vcapsfilter)
        self.vsrc.link(self.vqueue)
             gst.caps_from_string("audio/x-raw-int,rate=16000,channels=1,"
                "width=16,depth=16,endianness=1234,signed=true"))
        self.add(self.asrc, self.aqueue, self.audiorate, self.acapsfilter)
        self.asrc.link(self.aqueue)
        self.aqueue.link(self.audiorate)

src/f/l/flumotion-HEAD/flumotion/component/effects/deinterlace/deinterlace.py   flumotion(Download)
 
        # Add elements to the bin
        self.add(self._colorspace, self._colorfilter, self._deinterlacer,
            self._videorate, self._ratefilter)
 
                self._deinterlacer.set_property("silent", True)
            self._deinterlacer.set_state(gst.STATE_PLAYING)
            self.add(self._deinterlacer)
            # unlink the sink and source pad of the old deinterlacer
            self._colorfilter.unlink(oldDeinterlacer)

src/f/l/flumotion-HEAD/flumotion/component/effects/videoscale/videoscale.py   flumotion(Download)
        self._capsfilter = gst.element_factory_make("capsfilter")
        self._videobox = gst.element_factory_make("videobox")
        self.add(self._identity, self._videoscaler, self._capsfilter,
                 self._videobox)
 

src/f/l/flumotion-HEAD/flumotion/component/producers/playlist/smartscale.py   flumotion(Download)
        self.capsfilter = gst.element_factory_make(
            "capsfilter", "smart-capsfilter")
        self.add(self.videoscale, self.capsfilter, self.videobox)
        gst.element_link_many(self.videoscale, self.capsfilter, self.videobox)
 

src/l/e/ledwallfoo-HEAD/gstvideo.py   ledwallfoo(Download)
    self.scale.set_property("method", 5)
 
    self.sink.add(self.color, self.rate, self.scale, self.led)
    ghostpad = gst.GhostPad("sink", self.color.get_pad("sink"))
    self.sink.add_pad(ghostpad)

src/f/l/flumotion-HEAD/flumotion/component/effects/videorate/videorate.py   flumotion(Download)
        self._videorate = gst.element_factory_make("videorate")
        self._capsfilter = gst.element_factory_make("capsfilter")
        self.add(self._videorate, self._capsfilter)
 
        self._videorate.link(self._capsfilter)

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8  Next