安装的GStreamer锋利的Xamarin工作室(GTK#) [英] Install gstreamer-sharp for Xamarin Studio(Gtk#)

查看:893
本文介绍了安装的GStreamer锋利的Xamarin工作室(GTK#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要安装的GStreamer锋利的Xamarin工作室(GTK#项目)。 我安装OSSBuild,并加入到引用的GStreamer-sharp.dll,调试后,我得到了异常:

I need to install gstreamer-sharp for Xamarin Studio(Gtk# project). I installed OSSBuild and add to references gstreamer-sharp.dll, after debugging I got exception:

Gst.GLib.GException:在Gst.Parse.Launch没有元素playbin(字符串   pipeline_description)

Gst.GLib.GException: no element "playbin" in Gst.Parse.Launch(String pipeline_description)

输出:

0:00:00.010000000  6224   0748AA00 ERROR           GST_REGISTRY gstregistrybinary.c:557:gst_registry_binary_read_cache: Binary registry type not recognized (invalid magic) for file at C:\Users\Admin\.gstreamer-0.10\registry.i686.bin

** (gStremTest:6224): WARNING **: Failed to load plugin 'C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.6\bin\libgsf-win32-1-114.dll': `C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.6\bin\libgsf-win32-1-114.dll': Не найден указанный модуль.

** (gStremTest:6224): WARNING **: Failed to load plugin 'C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.6\bin\libpangocairo-1.0-0.dll': `C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.6\bin\libpangocairo-1.0-0.dll': Не найдена указанная процедура.

** (gStremTest:6224): WARNING **: Failed to load plugin 'C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.6\bin\librsvg-2-2.dll': `C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.6\bin\librsvg-2-2.dll': Не найден указанный модуль.
0:00:02.501003000  6224   0748AA00 ERROR           GST_PIPELINE grammar.tab.c:1975:_gst_parse_yyparse: no element "playbin"
0:00:02.501003000  6224   0748AA00 ERROR           GST_PIPELINE grammar.tab.c:2564:_gst_parse_launch: Unrecoverable syntax error while parsing pipeline playbin uri=http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/Sintel_Trailer1.1080p.DivX_Plus_HD.mkv
Loaded Module 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_ru_b77a5c561934e089\mscorlib.resources.dll'

code:

Code:

    Gst.Application.Init ();
    GLib.MainLoop Loop;
    Gst.Element element;
    Loop = new GLib.MainLoop();
    element = Gst.Parse.Launch("playbin uri=http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/Sintel_Trailer1.1080p.DivX_Plus_HD.mkv");
    element.Bus.AddSignalWatch();
    element.SetState( Gst.State.Playing);
    Loop.Run();

据我所知,这只是我的错,所以我不需要解决这个问题,我需要重新安装GStreamer的锐利和正确的使用它Xamarin。 这是怎么做的是否正确?

I understand, it's only my fault, so I don't need to fix this, I need to reinstall gstreamer-sharp and correct use it in Xamarin. How is this done correctly?

P.S。我认为这将是很好,如果谁已经安装了它对于.NET的人可以给我意见了。

P.S. I think it would be nice if people who have installed it for .Net could give me advice too.

推荐答案

我不得不使用不同的code。这code是正常工作:

I had to use a different code. This code is works fine:

        Gst.Application.Init ();
        var pipeDescription = "playbin uri=file:///a:/test.avi ";
        var pipeline = Gst.Parse.Launch(pipeDescription) as Gst.Bin; 
        var someElementInPipe = pipeline.GetChildByName("myBin") as Gst.Element;
        pipeline.SetState(Gst.State.Playing);

这篇关于安装的GStreamer锋利的Xamarin工作室(GTK#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆