小编Dav*_*nko的帖子

通过UDP使用gstreamer进行网络摄像头流媒体

这是我正在尝试的:

gst-launch -v udpsrc port=1234 ! fakesink dump=1

我测试:

gst-launch -v audiotestsrc ! udpsink host=127.0.0.1 port=1234

一切正常,我可以看到从这里来的包裹 audiotestsrc

现在让我们测试网络摄像头来源:

gst-launch -v v4l2src device=/dev/video0 ! queue ! videoscale method=1 ! "video/x-raw-yuv,width=320,height=240" ! queue ! videorate ! "video/x-raw-yuv,framerate=(fraction)15/1" ! queue ! udpsink host=127.0.0.1 port=1234

没有任何反应,转储中没有包.

这里是一个logdump的什么服务器长篇大论节目.

有没有人对此有所了解?

gstreamer

15
推荐指数
1
解决办法
5万
查看次数

C#内存泄漏?

由于内存使用率很高,以下代码在一段时间后崩溃(我打开taskmanager并且其使用的内存不断增加).但我看不到任何内存泄漏,除了垃圾收集没有完成它的工作.有什么建议?

//Load a list of regex
//Load a list of phrases
//Open a output file

foreach (string regexString in regexList)
{
    int num = 0;

    Regex regex = new Regex(regexString, RegexOptions.Compiled | RegexOptions.IgnoreCase);

    foreach (string phrase in phraseList)
            num += regex.Matches(phrase).Count;

    if (num > 0)
    {
        output.WriteLine(String.Join(" ", num, phrase));
        output.Flush();
    }
}
Run Code Online (Sandbox Code Playgroud)

编辑:

完整代码:http://pastebin.com/0SQYn44z

EDIT2:

我发现并发布了解决方案(foreach循环)感谢所有试图提供帮助的人.

c# regex memory-leaks

4
推荐指数
1
解决办法
2919
查看次数

标签 统计

c# ×1

gstreamer ×1

memory-leaks ×1

regex ×1