如何使用正确的索引存储视频

发布于 2024-08-04 06:12:14 字数 494 浏览 1 评论 0原文

如何存储视频(在数据库或文件系统中),以便可以从任何固定索引开始流式传输,而不是从头开始流式传输。

主要目标是就像我有纽约从一端到另一端的道路的大型视频以及保存在中央服务器上的相应纽约地图。现在,用户打开网站并选择纽约地图上的两个点,这两点之间的道路视频开始流式传输,不是从起点开始,而是从用户指定的第一个点到第二个点开始流式传输。

所以主要要求是存储视频及其索引,以便我可以从任何索引开始流式传输。

编辑部分: 实际上,我正在计划如何存储完整城市的视频,以便每当用户在地图上选择它时我就可以将其显示给用户。 所以现在我脑海中的主要问题是我可以将所有道路的视频合并到一个视频中,例如各种链接列表(道路)。就像如果在特定点有两个转弯,那么我可以将它们存储在一个视频中,而不是将它们存储在一个视频中,这样您必须播放的视频将取决于用户选择的起点和终点以及最短路径在这两点之间,但是我可以将所有道路的视频存储为单个视频吗?

我该如何做到这一点,它取决于流机制还是存储?

谢谢,

GG

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

Main aim is like I have a large video of roads of New York from one end to other and corresponding map of New York save on a central server. Now a user opens up the website and selects the two points on the map of New York and video of road between those two points starts streaming, not from starting but from first point to second point given by user.

So main requirement is to store a video with its indexes such that I can start streaming from any of the index.

Edited Part :
Actually I am planning how to store video of complete city so I can show it to user whenever he selects it on map.
So Now Main question in my mind is can I merge video for all roads in one video like various linked lists (Roads). Like if there are two turns at particular point then instead of storing two videos from that point for different path can I store them in a single video such that which video you have to play will depend upon starting and ending point selected by user and shortest path between those two points, But can I store video of all roads as a single video.

How can I do this, will it depend on stream mechanism or on storage ?

Thanks,

GG

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ぃ双果 2024-08-11 06:12:14

我想这一切都取决于您的播放/流媒体机制的能力。在确定如何存储文件和/或“索引”点之前,我会先了解这些内容。询问一些有关您的流媒体技术的具体问题,例如:

  • 您可以快进到某个点吗?
  • 你能在某个点停下来吗?
  • 一场直播结束后还能播放一场吗?
  • 另一个可以帮助解决这个问题的游戏功能?

如果您可以触发视频播放快进到某个点,您可以存储从头开始快进的时间或帧数,并将它们与地图起点相关联。您还需要在与地图终点匹配的某个点“中止”流。

但是,如果您无法快进流,您可能需要将视频文件分成更小的片段,并根据所选的地图点从正确的片段开始。然后,您需要播放多个文件,直到到达终点。

I guess that this all depends on the capability of your playing/streaming mechanism. I would find out about these before determining how to store the file and/or "index" points. Ask some specific questions about your streaming technology, such as:

  • can you fast forward to a certain point?
  • can you stop at a certain point?
  • can you play one stream after one ends?
  • another play capabilities that may help solve this?

If you can trigger the playing of your video to fast forward to a certain point, you can store the amount of time or frames to fast forward from the beginning and associate these with your map start. You would also need to "abort" the stream at a certain point, that matches your map end point.

However, if you can not fast forward your stream, you many need to break your video file into smaller segments and start at the proper one based on the map point selected. You would then need to play multiple files until you reach the end point.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文