Of course you can combine example 2 and 3 and get audio AND video
[python-gstreamer-examples] / example2.py
index 21d4dbb9517917caef3a234aca3488bb8fd0b820..90b846337a1ea2f82ce64a73098d54f5a876376d 100755 (executable)
@@ -15,7 +15,7 @@ class Main:
         # Create gui bits and bobs
 
         self.wTree = Gtk.Builder()
-        self.wTree.add_from_file("example2.glade")
+        self.wTree.add_from_file("example2_2.glade")
         
         signals = {
             "on_play_clicked" : self.OnPlay,
@@ -33,7 +33,7 @@ class Main:
 
         # Add an audiotestsrc element to the pipeline
         self.audiotestsrc = Gst.ElementFactory.make("audiotestsrc", "audio")
-        self.audiotestsrc.set_property("freq", 200)
+        self.audiotestsrc.set_property("freq", 800)
         self.pipeline.add(self.audiotestsrc)
 
         # Add a pulsesink element to the pipeline