Did I find the right examples for you? yes no

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

src/a/s/astral-HEAD/examples/gstreamer/video_pipeline.py   astral(Download)
    def __init__(self):
        self.pipeline = gst.Pipeline("pipe")
        self.webcam = gst.element_factory_make("v4l2src", "webcam")
        self.webcam.set_property("device", "/dev/video0")
        self.pipeline.add(self.webcam)
        self.caps_filter = gst.element_factory_make("capsfilter", "caps_filter")
        caps = gst.Caps("video/x-raw-yuv,width=640,height=480,framerate=30/1")
        self.caps_filter.set_property("caps", caps)
        self.pipeline.add(self.caps_filter)
 
        self.sink = gst.element_factory_make("xvimagesink", "sink")
        self.pipeline.add(self.sink)
 
        self.webcam.link(self.caps_filter)

src/a/s/astral-HEAD/examples/gstreamer/pipeline.py   astral(Download)
    def __init__(self):
        self.pipeline = gst.Pipeline("pipe")
        self.audio_source = gst.element_factory_make("audiotestsrc", "audio")
        self.audio_source.set_property("freq", 2000)
        self.pipeline.add(self.audio_source)
 
        self.sink = gst.element_factory_make("alsasink", "sink")
        self.pipeline.add(self.sink)

src/o/p/OpenOB-2.3.6/openob/rtp/tx.py   OpenOB(Download)
 
    # Add to the pipeline
    self.pipeline.add(self.source, self.audioconvert, self.audioresample, self.audiorate, self.payloader, self.udpsink_rtpout, self.udpsink_rtcpout, self.udpsrc_rtcpin, self.rtpbin, self.level)
    if encoding != 'pcm':
      # Only add an encoder if we're not in PCM mode
      self.pipeline.add(self.encoder)
      self.capsfilter =  gst.element_factory_make("capsfilter", "filter")
      self.capsfilter.set_property("caps", caps)
      self.pipeline.add(self.capsfilter)
      gst.element_link_many(self.source, self.capsfilter, self.level, self.audioresample, self.audiorate, self.audioconvert)
    else:

src/o/p/OpenOB-2.3.6/openob/rtp/rx.py   OpenOB(Download)
 
    # And now we've got it all set up we need to add the elements
    self.pipeline.add(self.audiorate, self.audioresample, self.audioconvert, self.sink, self.level, self.depayloader, self.rtpbin, self.udpsrc_rtpin, self.udpsrc_rtcpin, self.udpsink_rtcpout)
    if encoding != 'pcm':
      self.pipeline.add(self.decoder)

src/o/x/oxtimelines-0.12/oxtimelines/timeline.py   oxtimelines(Download)
        #self.sbin.props.caps = gst.Caps('video/x-raw-yuv;video/x-raw-rgb')
        self.sbin.props.expose_all_streams = True
        self.add(self.src, self.sbin)
 
        info = ox.avinfo(uri)
            #self.vsink.connect('frame', self._video_callback)
            self.add(
                self.vqueue, self.scale, self.rate, self.csp, self.vsink
            )
 
            self.asink = gst.element_factory_make('fakesink')
            self.add(
                self.aqueue, self.convert, self.resample, self.level, self.asink
            )
            self.nanoseconds_per_frame = FPS / 1e9

src/o/p/openob-HEAD/openob/rtp/tx.py   openob(Download)
        # Add to the pipeline
        self.pipeline.add(
            self.source, self.capsfilter, self.audioconvert, self.audioresample,
            self.audiorate, self.payloader, self.udpsink_rtpout, self.rtpbin,
            self.level)
 
        if self.link_config.encoding != 'pcm':
            # Only add the encoder if we're not in PCM mode
            self.pipeline.add(self.encoder)

src/o/p/openob-HEAD/openob/rtp/rx.py   openob(Download)
        # And now we've got it all set up we need to add the elements
        self.pipeline.add(
            self.audiorate, self.audioresample, self.audioconvert, self.sink,
            self.level, self.depayloader, self.rtpbin, self.udpsrc_rtpin)
        if self.link_config.encoding != 'pcm':
            self.pipeline.add(self.decoder)

src/n/d/ndnvideo-HEAD/sandbox/transmitter_repo.py   ndnvideo(Download)
 
	pipeline = gst.Pipeline()
	pipeline.add(src, rate, overlay, encoder, sink)
 
#	gst.element_link_many(src, encoder, muxer, sink)

src/n/d/ndnvideo-HEAD/sandbox/transmitter.py   ndnvideo(Download)
 
	pipeline = gst.Pipeline()
	pipeline.add(src, rate, overlay, encoder, sink)
 
#	gst.element_link_many(src, encoder, muxer, sink)

src/a/u/aubio-HEAD/python.old/aubioinput.py   aubio(Download)
        self.apad = conv.get_pad('sink')
 
        self.pipeline.add(src, conv, rsmpl, capsfilter, sink)
 
        gst.element_link_many(conv, rsmpl, capsfilter, sink)

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