jjzjj

audio-streaming

全部标签

Java - XML 解析器性能 : Sun Java Streaming XML Parser (SJSXP) vs Woodstox

我正在寻找最新的、内存高效和高性能的JavaXML解析API。我需要解析3MB到5MB的XML文件。我对此进行了谷歌搜索,了解到SunJavaStreamingXMLParser(SJSXP)和Woodstox比DOM和SAX快得多。两者都使用StAXAPI。*这些技术不支持模式验证。AaltoXML处理器也实现了StAXAPI。我还没有找到关于这些技术性能的具体发现。哪一个在内存效率、高性能和易用性方面最好? 最佳答案 这里还有一些可能相关的链接:数据绑定(bind)的Stax实现:http://technotes.blogs.s

c# - 如何使用 System.IO.Stream 和 LINQ 读取 XML 文件

我将像这样传递xml文件:File1.PostedFile.InputStream//readingxmlfile.....publicstaticvoidreadXMLOutput(Streamstream){System.Xml.Linq.XDocumentxml=System.Xml.Linq.XDocument.Load(stream);varquery=frompinxml.Element("ste").Element("Application")//where(int)p.Element("Id")==1selectPage;foreach(varrecordinquery

windows - C++ -'Stream' 未声明的标识符

这里的新手基本上我想将文件加载到输入流。我收到以下错误errorC2065:'Stream':undeclaredidentifier.#pragmaonce#include#include#include#includenamespacetest2{usingnamespaceSystem;usingnamespaceSystem::ComponentModel;usingnamespaceSystem::Collections;usingnamespaceSystem::Windows::Forms;usingnamespaceSystem::Data;usingnamespace

php - 为什么 stream_socket_server 不阻止来自 Windows 上其他套接字的端口?

我有一个reactphp脚本打开多个端口进行监听。代码归结为尝试在端口x上打开一个套接字,如果被占用,则选择端口+1。我发现我可以为同一个端口打开多个套接字而不会出现错误消息,这使得上述查找“空闲”端口的方法无效:var_dump($s1=stream_socket_server("tcp://127.0.0.1:7777",$errno,$errstr));var_dump($s2=stream_socket_server("tcp://127.0.0.1:7777",$errno,$errstr));两个调用都返回一个具有不同ID的资源。为什么会发生这种情况,端口是否可能已经有来自

php - IIS 网站 "failed to open stream: No such file or directory in C:\inetpub\vhosts\"但那里存在文件

您好,我一直在努力解决一个奇怪的问题。我正在使用IIS并将我的网站文件夹之一移动到我服务器的桌面,然后将其放回去,现在我明白了Warning:include_once(./lib/config.inc.php)[function.include-once]:failedtoopenstream:NosuchfileordirectoryinC:\inetpub\vhosts\politikacim.net\httpdocs\index.phponline12Warning:include_once()[function.include]:Failedopening'./lib/conf

PHP stream_select 不起作用

我使用的是Windows7和php5。我在通过proc_open执行进程并检查超时时遇到问题。我使用stream_select通过以下代码检查超时:array("file",$infile,"r"),//stdinisapipethatthechildwillreadfrom1=>array("pipe","w"),//stdoutisapipethatthechildwillwriteto2=>array("pipe","w")//stderrisafiletowriteto);$prog=@proc_open($objname.".exe",$descriptorspec,$pip

c - 如何同时处理来自 Stdin Stream 的两个输入,其中一个来自 C 中的数字键盘?

我希望我的程序同时从标准输入流中读取数字键盘和键盘。我不知道这是否可能,这就是我问的原因。我的程序运行正常,但是如果第一个玩家仍然按下箭头,第二个玩家不能通过同时按下z/x来移动Racket,除非第一个玩家停止按下箭头。#include#include#includevoidfirst_player_arrow_press();voidsecond_player_Z_or_X_press();void*second_player();intarrow=0,button_pressed=0;intz=50;intmain(){pthread_tmy_thread;intx=50;char

c# - 如何使用 Windows MediaCapture API 捕获 "Audio Only"?

我正在尝试通过WindowsMediaCaptureAPI捕获“仅音频”。我正在使用以下代码但出现异常(HRESULT:0xC00D36D5)。MediaCapturecaptureMgr=newMediaCapture();MediaCaptureInitializationSettingscaptureSettings=newMediaCaptureInitializationSettings();captureSettings.StreamingCaptureMode=StreamingCaptureMode.Audio;awaitcaptureMgr.InitializeAsy

windows - 如何在多个程序中接收相同的 udp-stream?

我有一个封闭的第三方系统,它发送一个单播UDP流(MPEG-TS),我想在同一台计算机上的两个不同程序中访问它。我不能更改源上的任何内容,甚至不能更改IP或端口。除了编写我自己的捕获流然后创建新流并重新发送这两个流的小程序之外,还有其他选择吗?似乎两个目标程序中只有一个处理多播,所以我需要两个单播流。 最佳答案 您应该能够使用socat将单播UDP转发到多播组,或者只是将数据保存到文件中并稍后处理。编辑0:这是一个例子(这是在Linux上——没有任何Windows机器)。在单播端口4242上监听,转发到多播224.10.10.10:

windows - 如何在 Windows 上安装具有 "MPEG-2 Transport Stream demuxer"元素的 GStreamer 插件

我使用以下链接中的.msi文件在Windows上安装了GStreamer-gstreamer-1.0-x86-1.2.0.msi和gstreamer-1.0-devel-x86-1.2.0.msi我可以运行以下命令并毫无问题地播放.webm视频文件。gst-launch-1.0playbinuri="file:///D:/gstreamer_sample_media/sintel_trailer-480p.webm"/p>但是当我尝试使用以下命令播放测试.mts文件时:gst-launch-1.0playbinuri="file:///D:/MyTestMedia/Test1.mts"