How to save videos with correct indexing

How do I store the video (either in the database or in the file system) so that instead of starting the streaming from start I can start this streaming from any index to fix.

The main goal is that I have a large video of the roads of New York from one end to the other, and the corresponding map of New York is stored on a central server. The user now opens the website and selects two points on the New York map, and the video between the two points starts streaming, not from the beginning, but from the first point to the second point specified by the user.

So the main requirement is to store the video with its indices so that I can start streaming from any of the indices.

Edited part: I am actually planning how to store the video of the full city so that I can show it to the user whenever he selects it from the map. So now the main question, in my opinion, is it possible to combine videos for all roads in one video, as in different linked lists (roads). For example, if there are two loops at a certain point, instead of saving two videos from that point for a different path, I can save them in one video so that the video you have to play will depend on the start and end point chosen by the user and the shortest path between by these two points, but can I store the video of all the roads as one video.

How can I do this, is it thread engine dependent or storage dependent?

Thank,

GG

+2


source to share


1 answer


I guess it all depends on the ability of your game / streaming engine. I learned about this before figuring out how to store files and / or "indexes". Ask some specific questions about your streaming technology, for example:

  • Can you jump ahead to a certain point?
  • Can you stop at a certain point?
  • Can you play one thread once finished?
  • other playback options that may help resolve this issue.


If you can start playing your video to fast forward to a specific point, you can save the amount of time or frames to fast forward from the beginning and link them to the beginning of the map. You will also need to "interrupt" the stream at a specific point that corresponds to the endpoint of your map.

However, if you cannot speed up the transfer of your stream, you need to split the video file into smaller segments and start from the desired one based on the selected point on the map. You will then need to play several files until you reach the end point.

+1


source







All Articles