A
A
Akson872012-08-02 23:58:31
Computer networks
Akson87, 2012-08-02 23:58:31

How to show a video (a sequence of pictures I generated) in the browser?

Given:
1) The server on which the application is running, which renders something and at the output we get a sequence of pictures (just bitmaps).
2) A client that has a browser (it can be a weak PC or an android tablet).
3) Most likely they are connected by Wi-Fi.

You need to:
1) See the rendered video (sequence of pictures) in the client's browser.
2) Be able to manage rendering (move the camera, change parameters).

What is the easiest way to stream video?

The simplest thing that comes to mind is to reap the rendered images into a jeep and simply show them consistently on the client, but I'm not sure about performance and what technologies should be used.

Tell me which way to dig.

Thanks in advance for your advice!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Lerg, 2012-08-03
@Lerg

It can be easier. Via MJPEG over HTTP.
Send the client a header stating that this is MJPEG.
Next up are the mini headers and your JPEG encoded bitmaps.
You can read the details in my article habrahabr.ru/post/115808/

V
Vladimir Luchaninov, 2012-08-03
@how

The sequence of pictures will eat too much traffic. Still, it’s better to make a video and show it already - in it, the parts that do not change will hardly take up space.
www.ffmpeg.org/faq.html#How-do-I-encode-single-pictures-into-movies_003f

T
Tr1aL, 2012-08-04
@Tr1aL

If you have a camera on the server, can you just stream from there and watch with any flash player? why so many pictures?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question