Tag: gstreamer

Gstreamer在Linux上运行良好

因为我目前正在为我的项目制作gstreamer绑定并获得信息,gstreamer-sharp 0.99.x只能使用glib-sharp 2.99.x,我认为创建一个测试项目是一个好主意。 所以我下载了名为“GTK#3简单项目模板”的monodevelop插件并编译了它 – >工作。 现在我添加了之前编译的gstreamer-sharp 0.99 dll并添加了以下代码: Gst.Application.Init(); Element music = Parse.Launch(“playbin uri=\”file:////media/Auslagerung/DJ/IDs/android.mp3\””); music.SetState(Gst.State.Playing); 当我播放此代码时,我得到以下exception: Marshaling clicked signal Exception in Gtk# callback delegate Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.Reflection.TargetInvocationException: Exception has been thrown by the target of […]

在WinForms中显示gstreamer-sharpvideo流

我正在寻找一个示例/帮助在WinForms应用程序中显示gstreamer-sharp feed。 我正在使用VS 2012,并为此版本的VS构建了“胶水”项目。 我的项目也安装了glib-sharp,gstreamer-sharp。 我将gstreamer bin目录设置为我项目的工作目录。 如果在按钮单击处理程序中有以下代码,我会在表单上弹出GStreamer D3Dvideo接收器测试窗口。 Gst.Application.Init(); var pipeline = Parse.Launch(@”videotestsrc ! videoconvert ! autovideosink”); pipeline.SetState(State.Playing); 我想在我正在思考的Panel或PictureBox上显示我的应用程序中的流。 谢谢!