简体   繁体   中英

How to send video stream to soap web service

I need to send recorded video stream to web service.

I'm doing encoding video stream using Base 64 but im getting out of memory exception . 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. 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. Let's also say that the video is in the standard RGB format with 8 bits per color band, 24 bits per pixel. The math for this would be:

width x height x bytes per pixel x frame per second x Byte64 overhead = bytes per second

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

35MB per second

Remembering that most throughput measurements are in mega bits per second rather than mega bytes per second this translates to 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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