8254be8dde8b5550bf09e51b884004e0cd870f3b
2 # An even simpler gstreamer example, omitting all that class stuff
5 gi
.require_version('Gst', '1.0')
6 from gi
.repository
import Gst
8 # Create the gstreamer pipeline
10 pipeline
= Gst
.Pipeline()
13 audio
= Gst
.ElementFactory
.make("audiotestsrc")
17 pulsesink
= Gst
.ElementFactory
.make("pulsesink")
18 pipeline
.add(pulsesink
)
20 # Link our two elements together
24 pipeline
.set_state(Gst
.State
.PLAYING
)
26 # Something to do while the pipeline is playing