How to create a httpserver streaming video?

I use C ++ and poco libraries. I am trying to implement httpserver video streaming.
I originally used Poco :: StreamCopier. But the client was unable to execute the thread.
Instead, the client downloads the video. How can I get the server to send a stream so that the client can transmit video in the browser instead of downloading?

+3
source share
3 answers

As long as you are not using POCO, you can use ffmpeg. It has streaming servers for several video protocols and is written in C (for which you can write adapters like POCO).

http://ffmpeg.org/ffmpeg.html#rtp

http://ffmpeg.org/ffmpeg.html#toc-Protocols

http://git.videolan.org/?p=ffmpeg.git;a=tree

: http://ffmpeg.org/legal.html

0

, -

0

- , HTTP, MIM- "content-type: multipart/x-mixed-replace; border =..." jpeg .

M-JPEG HTTP. .: http://en.wikipedia.org/wiki/Motion_JPEG

, , . , , , - IP .

However, it does not support bandwidth, as it must send the entire jpeg file for each frame. Therefore, if you intend to use this over the Internet, it will work, but will use more bandwidth than another method.

However, in most browsers it is naively supported at the moment, and it looks like this is what you need.

0
source

All Articles