How to output GStreamer video to Gdk.Pixbuf using Vala?
问题 I am using GStreamer 1.0 in my program to play video from file. And I want to output it to Gdk.Pixbuf to add it to Image to display it. But I can't figure out how to use it properly. Here is what I tried to do, but it won't compile: this.pipeline = new Pipeline ("mypipeline"); this.src = ElementFactory.make ("filesrc", "video"); src.set("location", downloadFileName); this.sink = ElementFactory.make ("gdkpixbufsink", "sink"); this.pipeline.add_many (this.src, this.sink); this.src.link (this