Answer the question
In order to leave comments, you need to log in
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
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/
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question