A
A
ASiD2020-01-23 10:40:12
JavaScript
ASiD, 2020-01-23 10:40:12

Is it possible to change the number of frames per second in html5 video?

Good afternoon. There is not very powerful "server" with a bunch of videos. Now the video from it is played through the player in its original quality. But if the quality is high, and the communication channels are not very wide, the video starts to slow down.
I understand that changing the resolution "on the fly" most likely will not work, but is it possible to change the number of frames displayed per second in the player? This would reduce the load on the channel and possibly solve the problem.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
profesor08, 2020-01-23
@profesor08

Save yourself the headache and upload it to youtube.
But if you like it, then optimize the video for the Internet, for example, webm.
Or fork out for a tariff more expensive than Deshman's.

E
Evgeny Koryakin, 2020-01-23
@zettend

If only re-render all the files and give it from the server with the required fps.

A
Alexander, 2020-01-23
@UPSA

No. The number of frames per second (roughly - FPS) is hardcoded into the video container.
Look up video encoding.
For example, https://ru.wikipedia.org/wiki/Audio_Video_Interleave, dwTotalFrames - indicates the total number of frames in the file and dwMicroSecPerFrame - determines the number of microseconds between frames, the number of frames per second is strictly determined when encoding a video file. But players love to "lag" - this is also for skipping frames.
Here is another link htmlbook.ru/html5/video. So with a weak channel and 8K video, you can only add preload to the video tag so that it starts downloading in advance.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question