Did I find the right examples for you? yes no

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

src/a/s/astral-HEAD/examples/gstreamer/video_pipeline.py   astral(Download)
        self.webcam.link(self.caps_filter)
        self.caps_filter.link(self.sink)
        self.pipeline.set_state(gst.STATE_PLAYING)
 
start = Pipeline()

src/a/s/astral-HEAD/examples/gstreamer/pipeline.py   astral(Download)
 
        self.audio_source.link(self.sink)
        self.pipeline.set_state(gst.STATE_PLAYING)
 
start = Pipeline()

src/p/y/Python-Guitar-Transcription-Aid-HEAD/Pipeline.py   Python-Guitar-Transcription-Aid(Download)
	def get_data(self,start,stop):
		#print start, stop
		self.set_state(gst.STATE_PAUSED)
		self.get_state()
 
		self.seek(1.0,gst.FORMAT_TIME,gst.SEEK_FLAG_FLUSH,gst.SEEK_TYPE_SET,start*gst.SECOND,gst.SEEK_TYPE_SET,stop*gst.SECOND)
		self.get_state()
 
		self.set_state(gst.STATE_PLAYING)
		r = array.array("f", str(buf))
 
		self.set_state(gst.STATE_PAUSED)
		self.get_state()
 
	def set_file(self, filename):
		self.set_state(gst.STATE_NULL)
		self.get_state()
 
		self.filesrc.set_property("location",filename)
 
		self.set_state(gst.STATE_PAUSED)

src/g/a/Galicaster-HEAD/galicaster/recorder/utils.py   Galicaster(Download)
        device.link(sink)
        # run pipeline
        pipe.set_state(gst.STATE_PAUSED)
        pipe.set_state(gst.STATE_PLAYING)
        state = pipe.get_state()
        pipe.set_state(gst.STATE_NULL)
                self.device.set_state(gst.STATE_NULL)
                self.remove(self.device)
            pipe.set_state(gst.STATE_PAUSED) # FIXME assert if a gtk.gdk is neccesary
            pipe.set_state(gst.STATE_PLAYING)
            state = pipe.get_state()

src/g/a/galicaster-uib-HEAD/galicaster/recorder/utils.py   galicaster-uib(Download)
        device.link(sink)
        # run pipeline
        pipe.set_state(gst.STATE_PAUSED)
        pipe.set_state(gst.STATE_PLAYING)
        state = pipe.get_state()
        if state[0] != gst.STATE_CHANGE_FAILURE:
            pipe.set_state(gst.STATE_NULL)
                self.device.set_state(gst.STATE_NULL)
                self.remove(self.device)
            pipe.set_state(gst.STATE_PAUSED) # FIXME assert if a gtk.gdk is neccesary
            pipe.set_state(gst.STATE_PLAYING)
            state = pipe.get_state()

src/a/r/arista-HEAD/arista/discoverer.py   arista(Download)
    def _stop(self):
        self.debug("success:%d" % self._success)
        self.finished = True
        self.set_state(gst.STATE_READY)
        self.debug("about to emit signal")
 
        self.info("setting to PLAY")
        if not self.set_state(gst.STATE_PLAYING):
            self._finished()
 

src/n/d/ndnvideo-HEAD/sandbox/publisher.py   ndnvideo(Download)
	bus.add_watch(bus_call, loop)
 
	pipeline.set_state(gst.STATE_PAUSED)
	transmitter.start()
	pipeline.set_state(gst.STATE_PLAYING)
	except KeyboardInterrupt:
		print "Ctrl+C pressed, exitting"
		pipeline.set_state(gst.STATE_NULL)
		time.sleep(2)
		transmitter.stop()
 
	print "exited"
	pipeline.set_state(gst.CLOCK_TIME_NONE)

src/n/d/ndnvideo-HEAD/sandbox/transmitter_repo.py   ndnvideo(Download)
	bus.add_watch(bus_call, loop)
 
	pipeline.set_state(gst.STATE_PAUSED)
 
	transmitter.start()
	pipeline.set_state(gst.STATE_PLAYING)
	except KeyboardInterrupt:
		print "Ctrl+C pressed, exitting"
		pipeline.set_state(gst.STATE_NULL)
		time.sleep(2)
		transmitter.stop()
 
	print "exited"
	pipeline.set_state(gst.CLOCK_TIME_NONE)

src/n/d/ndnvideo-HEAD/sandbox/transmitter.py   ndnvideo(Download)
	bus.add_watch(bus_call, loop)
 
	pipeline.set_state(gst.STATE_PAUSED)
 
	transmitter.start()
	pipeline.set_state(gst.STATE_PLAYING)
	except KeyboardInterrupt:
		print "Ctrl+C pressed, exitting"
		pipeline.set_state(gst.STATE_NULL)
		time.sleep(2)
		transmitter.stop()
 
	print "exited"
	pipeline.set_state(gst.CLOCK_TIME_NONE)

src/o/x/oxtimelines-0.12/oxtimelines/timeline.py   oxtimelines(Download)
        self.sbin.connect('pad-added', self._pad_added_callback)
 
        self.set_state(gst.STATE_PAUSED)
        self.get_state()
        self.get_duration()
            self.out_time = self.duration + 1
        self.done = {'video': not self.video, 'audio': not self.audio}
        self.set_state(gst.STATE_PLAYING)
        self.is_running = True
        self.mainloop.run()

  1 | 2 | 3 | 4  Next