简体   繁体   English

如何将视频流发送到soap Web服务

[英]How to send video stream to soap web service

I need to send recorded video stream to web service. 我需要将录制的视频流发送到Web服务。

I'm doing encoding video stream using Base 64 but im getting out of memory exception . 我正在使用Base 64对视频流进行编码,但即时出现内存异常 So I'm thinking another way to do this. 所以我在想另一种方法。

I searched for this but I can't find any reference link. 我搜索了这个,但我找不到任何参考链接。

Is there another way to send the video that I can use? 是否有其他方式发送我可以使用的视频?

Byte64 encoding alone expands data sizes to 4/3 their original size. 仅Byte64编码就可以将数据大小扩展到原始大小的4/3。 On a video file this is an exceptional amount of overhead. 在视频文件上,这是一个特殊的开销。 Most likely you haven't seen any links on this topic due to the inability to use such a solution on any current infrastructure. 由于无法在任何当前基础架构上使用此类解决方案,因此您很可能没有看到关于此主题的任何链接。

I'd highly recommend that you start looking into prepackaged transcoding solutions for your needs until you have a better understanding of this problem domain. 我强烈建议您开始研究预先打包的转码解决方案,以满足您的需求,直到您更好地了解此问题域。 Otherwise you are going to have a hard time finding people who want to take up your questions on stack overflow for fear of being downvoted when they have to explain to you that your entire premise is flawed and can be proven so mathematically. 否则你将很难找到想要在堆栈溢出时提出问题的人,因为当他们必须向你解释你的整个前提是有缺陷的并且可以通过数学方式证明时,他们担心被贬低。

For example let's assume that you are trying to push standard definition video (640x480) at 30 frames per second. 例如,假设您尝试以每秒30帧的速度推送标清视频(640x480)。 Let's also say that the video is in the standard RGB format with 8 bits per color band, 24 bits per pixel. 我们还要说视频采用标准RGB格式,每个色带8位,每像素24位。 The math for this would be: 对此的数学将是:

width x height x bytes per pixel x frame per second x Byte64 overhead = bytes per second width x height x每个像素的字节数x每秒的帧数x Byte64开销=每秒字节数

640 x 480 x 3 x 30 x 4/3 = 36,864,000 640 x 480 x 3 x 30 x 4/3 = 36,864,000

35MB per second 每秒35MB

Remembering that most throughput measurements are in mega bits per second rather than mega bytes per second this translates to 281.25Mb/s. 记住,大多数吞吐量测量是以每秒兆比特而不是每秒兆字节为单位,这相当于281.25Mb / s。 With those kind of bandwidth needs you are going to have a hard time finding a wireless connection that can meet your data needs and face quite a real threat of saturating a hardwired network connection. 有了这些带宽需求,您将很难找到能够满足您的数据需求的无线连接,并且面临着使硬连线网络连接饱和的相当严重的威胁。 At the present time you need to compress your video files and you need to use something other than soap or use SOAP extensions like MTOM which allow data streaming. 目前,您需要压缩视频文件,并且需要使用除soap之外的其他内容或使用允许数据流的MTOM等SOAP扩展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM