WO2012089096A1 - 一种媒体内容的存储方法、读取方法、装置和系统 - Google Patents

一种媒体内容的存储方法、读取方法、装置和系统 Download PDF

Info

Publication number
WO2012089096A1
WO2012089096A1 PCT/CN2011/084712 CN2011084712W WO2012089096A1 WO 2012089096 A1 WO2012089096 A1 WO 2012089096A1 CN 2011084712 W CN2011084712 W CN 2011084712W WO 2012089096 A1 WO2012089096 A1 WO 2012089096A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage
file
rewind
fragment
fast
Prior art date
Application number
PCT/CN2011/084712
Other languages
English (en)
French (fr)
Inventor
罗裕辉
陈晓峰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2012089096A1 publication Critical patent/WO2012089096A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4333Processing operations in response to a pause request

Definitions

  • the present invention relates to the field of storage technologies, and in particular, to a method, a reading method, a device and a system for storing media content.
  • VOD Video On Demand
  • Time shift refers to the fast forward, fast rewind, and pause operation of the live TV.
  • the user can pause the live broadcast channel through the remote control, just like X2, X4, X6 like Digital Versatile Disc (DVD). , X8 fast forward, fast reverse operation.
  • DVD Digital Versatile Disc
  • Data tiered storage means that data objects are stored in different levels of storage devices (disks, disk arrays, optical libraries, and tape libraries).
  • the hierarchical storage management software enables automatic migration of data objects between storage devices.
  • the rules for data migration can be artificially controlled, usually based on the data storage frequency, retention time, capacity, performance requirements and other factors to determine the best storage strategy.
  • low-cost storage resources such as tape libraries are used to store information with low access frequency
  • high-cost, fast-speed devices such as disks or disk arrays are used to store important information that is frequently accessed.
  • the VOD content and the recorded live content are stored in the central storage node.
  • the central storage creates an index file (index file) for each static or recorded live content, which is used to record the original file and rewind the file. , the file information of the fast forward file and the location information of the media data.
  • the original content, fast forward and rewind content, and index file are generated simultaneously, and as the live broadcast progresses, the recorded content continues to grow, rewinding files, fast forwarding files, and index files are all Need to update dynamically.
  • the edge streaming server realizes the positioning of the live recorded content by referring to the dynamically updated index file; In general, the streaming of the file by the streaming server is streamed in byte order. To achieve the reverse playback effect, the content required by Mr. is placed in the back end of the file storage space.
  • the duration of the live recording content is usually set, and the system sets the size of the fast rewinding file according to the duration of the live recording content* file bit rate.
  • the file system After determining the end position of the file (or the end time), it means that the file size is determined; at this time, if the time of the live recording is not estimated enough, such as basketball or tennis, it may be time-consuming. To determine the outcome of the match, if the match time estimate is too small, determine the size of the fast-rewind file according to the estimated time. When the match is extended, the extended live content cannot be written to the fast-rewind file. In order to avoid this problem, it is usually necessary to regenerate a file and copy the original fast rewind data; this leads to several problems: 1. A large amount of data copy causes the system overhead; 2. The regenerated file destroys the index file. The index relationship of related files will cause the rewind file to fail to be requested.
  • the technical problem to be solved by the embodiments of the present invention is to provide a storage method, a reading method, a device and a system for media content, which achieve matching of storage space allocation and storage requirements.
  • Generating a rewind file of the media content allocating a storage slice for the fast rewind file, and storing the rewind file to a storage slice; if the rewind file is being generated after the storage slice is full, The storage segment is further allocated for the fast-rewinding file, and the un-stored fast-rewinding file is stored to the newly allocated storage segment; until the fast-rewinding file is completely stored.
  • a method for reading media content including:
  • Receiving a media content request message the media content request message including an external index and a content range of the fast rewind file to be read; Determining, according to an external index and a content range of the fast rewind file, a storage slice for storing the rewind file;
  • a storage device for media content comprising:
  • a file receiving unit configured to receive media content of a live time shift service
  • a file generating unit configured to generate a fast rewind file of the media content
  • a judging unit configured to determine whether there is still a rewind file being generated
  • a storage control unit configured to allocate a storage fragment for the fast rewind file, and store the rewind file to the storage fragment; if the rewind file is being generated after the storage fragment is full, continue to Rewind the file allocation storage fragment and store the unstored rewind file to the newly allocated storage fragment; until the rewind file is completely stored.
  • a device for reading media content comprising:
  • a request receiving unit configured to receive a media content request message, where the media content request message includes an external index and a content range of the fast rewind file to be read;
  • a retrieval unit configured to determine, according to an external index and a content range of the rewind file, a storage fragment for storing the rewind file;
  • a storage system for the media content comprising: a storage device and a reading device, and features thereof
  • the storage device is a storage device for media content according to any one of the embodiments of the present invention
  • the reading device is a device for reading media content provided by the embodiment of the present invention.
  • the foregoing technical solution has the following beneficial effects: storing a rewind file of an unpredictable size by sharding, and pre-allocating a large storage space for a rewind file of an unpredictable size, thereby reducing pre-occupied system storage space and realizing storage space.
  • the allocation is matched to the storage requirements.
  • 1 is a schematic flowchart of a method according to an embodiment of the present invention
  • 2 is a schematic flowchart of a method according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a storage file according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural view of an apparatus according to an embodiment of the present invention.
  • Figure 5 is a schematic structural view of an apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural view of an apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural view of an apparatus according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a system according to an embodiment of the present invention.
  • a method for storing media content includes:
  • the rewind file is stored in the foregoing embodiment, and the rewind file of the unpredictable size is stored by the shard, and the rewind file cannot be pre-allocated for the unpredictable size.
  • the storage space which reduces the pre-occupied system storage space, and achieves the matching of storage space allocation and storage requirements.
  • the size of the storage shards may be the same, and the size of the storage shards may be set according to a predetermined rule, which is not limited in the embodiment of the present invention. For example, the size may be fixed.
  • the storage slices are allocated in decreasing size. In addition, in order to facilitate the retrieval of future rewind files, you can also:
  • the storage fragment is assigned an identification ID, which is used to indicate the location information of the storage fragment, that is, the path information of the storage fragment.
  • the prefix of the external index name of the rewind file may also be added to the identifier of the storage fragment, for example, the storage fragment is named as the external index name + ID of the rewind file.
  • the fragment index is also required to be set up; the fragment index is used to indicate the mapping relationship between the content range of the rewind file stored in the storage fragment and the identifier of the storage fragment, and specifically, the content of the rewind file.
  • the range is expressed in bytes. The law, as shown in Figure 2, includes:
  • Determining, by the external index and the content range of the rewind file, the storage fragment for storing the rewind file includes: determining the identifier of the storage fragment according to the external index of the rewind file and the content index query fragment index, where The identifier of the storage fragment is used to indicate location information of the storage fragment; and the storage fragment is determined according to the identifier of the storage fragment.
  • the sending destination of the content sent here may be the sender of the media content request message, or the third party device of the sender of the media content request message and the reader of the media content, which is not limited in this embodiment of the present invention.
  • the rewind file is generated and stored in a sharding manner. After each shard is full, the next shard is generated until the data of the rewinding file is completely stored.
  • Each shard can be set according to a certain rule, one rule is set according to a fixed size; as shown in the schematic 3 of the storage file, the overlapping square pattern represents four shards 301 : Rewind content (italic The check box is written from the end of the rewind file to the rewind file header; the live recording content, the fast forward content and the rewind content are generated.
  • the index information of the media content is also synchronized to the index file (index file), for example: the index information of each video or audio file in the file is synchronized to the index file, and with the evolution of the live broadcast, the index information Increasing.
  • the naming rules for setting shards are also included; the sharding files are named according to the naming rules.
  • a simple implementation is: Each shard is assigned an ID, and the ID is related to the location of the shard in the file. For example, the first fragment is assigned 0, the second fragment is assigned to 1, and the rewind file to the external index is ABCD, and the fragment name is ABCD-0, ABCD-1.
  • the device for rewinding file shard storage and distribution may include: a user's request processing logic, a shard content location logic, a fast rewind file generator, and content delivery logic. As shown in Figure 4:
  • the storage server receives the request rewind file of the external user
  • the system first performs fragmentation content positioning logic
  • the ID and byte access of the fragment are obtained; wherein the ID of the fragment corresponds to the storage path and file name of the fragment file.
  • the content sending module obtains the fast rewind content from the fast fragmentation generator (which can correspond to the storage device in FIG. 3) according to the fragment ID and the byte range, and then sends the user the required rewind content.
  • the fast fragmentation generator which can correspond to the storage device in FIG. 3
  • the center when the live recording content is processed, the center can generate a fast rewind file according to the length of the actual live program, thereby saving system storage space; the time for adapting the live recording content becomes longer or shorter, and a suitable rewind is generated. Files; for rewind files, they can grow over time, reducing pre-empted system storage.
  • a storage device for media content includes:
  • a file receiving unit 501 configured to receive media content of a live time shift service
  • a file generating unit 502 configured to generate a fast rewind file of the foregoing media content
  • the determining unit 503 is configured to determine whether there is still a rewind file being generated
  • the storage control unit 504 is configured to allocate a storage fragment for the fast rewind file, and store the rewind file to the storage fragment; if the rewind file is generated after the storage fragment is full, continue to rewind the foregoing
  • the file allocation storage slice stores the unstored rewind file to the newly allocated storage slice; until the received rewind file is completely stored.
  • the foregoing storage control unit 504 configured to allocate the storage fragment, includes: allocating a fixed size or a decreasing size storage fragment according to a predetermined rule. As shown in FIG. 6, the foregoing apparatus further includes:
  • the numbering unit 601 is configured to allocate an identifier for the storage fragment, and the identifier is used to indicate location information of the storage fragment.
  • the foregoing apparatus further includes:
  • the indexing unit 701 is configured to establish a fragmentation index, where the fragmentation index is used to indicate a mapping relationship between a content range of the rewind file stored by the storage fragment and an identifier of the storage fragment.
  • the storage control unit 504 configured to store the fast-rewinding file to the storage slice, includes: a device for reading media content, as shown in FIG. 8, comprising:
  • the request receiving unit 801 is configured to receive a media content request message, where the media content request message includes an external index and a content range of the fast rewind file to be read;
  • the retrieving unit 802 is configured to determine, according to the external index and the content range of the rewind file, a storage slice for storing the rewind file; and more specifically, the retrieving unit 802 is configured to perform an external index according to the rewind file
  • the content range query fragment index is used to determine the identifier of the storage fragment, wherein the identifier of the storage fragment is used to indicate location information of the storage fragment; and the storage fragment is determined according to the identifier of the storage fragment.
  • a storage system for media content includes: a storage device 901 and a reading device 902, wherein the storage device 901 is a storage device for media content provided by any one of the embodiments of the present invention, and the reading device 902 A device for reading media content provided by any one of the embodiments of the invention.
  • the fast-rewinding file of the unpredictable size is stored by using the fragment, and the large storage space is not allocated in advance for the unresolved rewinding file, thereby reducing the pre-occupied system storage space and realizing the allocation and storage of the storage space.

Abstract

本发明实施例公开了一种媒体内容的存储方法、读取方法、装置和系统,其中方法的实现包括:接收直播时移业务的媒体内容;生成所述媒体内容的快退文件,为所述快退文件分配存储分片,将快退文件存储到存储分片;若所述存储分片写满后还有正在生成的快退文件,则继续为所述快退文件分配存储分片,将未存储的快退文件存储到新分配的存储分片;直到快退文件全部存储完毕。通过分片来存储无法预知大小的快退文件,不必为无法预知大小的快退文件预先分配大的存储空间,这样减少了预占用的系统存储空间,实现存储空间的分配与存储的需求的匹配。

Description

说 明 书
一种媒体内容的存储方法、 读取方法、 装置和系统 技术领域
本发明涉及存储技术领域,特别涉及一种媒体内容的存储方法、读取方法、 装置和系统。
背景技术
在存储技术领域通常都会用到数据存储的方法以及存储装置,例如在视频 点播(Video On Demand, VOD ) 中实现时移所需要生成的直播快退文件的存 储就是众多存储需求中的一种。
随着时移电视在直播电视中的普及, 用户可以通过实时频道直播的时移, 每个人都可以看到与别人不一样的电视, 改变了人们同一时间,看同一电视的 传统, 全面实现真正的个性化。 时移就是指对直播电视的快进、 快退、 暂停操 作, 用户通过遥控器, 可以对实况直播频道进行暂停, 如同使用数字多功能光 盘(Digital Versatile Disc, DVD )般的 X2、 X4、 X6、 X8的快进、 快退操作。
时移系统中, 为了支持时移快退, 需要实时生成辅助的快退文件。
内容传输网络的发展, 内容存储釆用分级方式存储。 数据分级存储, 是指 数据客体存放在不同级别的存储设备(磁盘、磁盘阵列、 光盘库、磁带库)中, 通过分级存储治理软件实现数据客体在存储设备之间的自动迁移。数据迁移的 规则是可以人为控制的, 通常是根据数据的访问频率、 保留时间、 容量、 性能 要求等因素确定的最佳存储策略。在分级数据存储结构中,磁带库等成本较低 的存储资源用来存放访问频率较低的信息, 而磁盘或磁盘阵列等成本高、速度 快的设备, 用来存储经常访问的重要信息。 VOD 内容和录制的直播内容存放 在中心存储节点; 在这种存储方式下, 中心存储会给每个静态或者录制的直播 内容建立一个索引文件 (index file ), 用于记录原始文件、 快退文件、 快进文 件的文件信息和媒体数据的位置信息。
在直播录制内容的生成过程中, 原始内容, 快进快退内容, 索引文件三者 同时生成, 并且, 随着直播的进展, 录制的内容不断增长, 快退文件, 快进文 件, 索引文件都需要动态的进行更新。 边缘流化服务器通过引用动态更新的索 引文件, 实现对直播录制内容的定位; 一般情况下, 流化服务器对文件的流化都是按照字节顺序流化,要实现倒 退的播放效果,要求先生成的内容放置在文件存储空间的后端。在设定直播录 制内容生成时,通常会设置直播录制内容的持续时间, 系统按照直播录制内容 的持续时间 *文件比特率来设定快退文件的大小。 对于文件系统, 确定文件结 束位置(也可以是结束时间)后, 就意味着确定了文件大小; 这时候, 如果直 播录制的时间预估不足,比如篮球或者网球这种可能釆用加时方式来确定胜负 的比赛, 如果比赛时间预估太小, 按照预估的时间来确定快退文件大小, 当比 赛延长时, 会导致延长的直播内容无法写入快退文件。 为了规避该问题, 通常 需要重新生成一个文件, 并拷贝原先的快退数据; 这样导致了几个问题: 1、 大量的数据拷贝导致了系统的额外开销; 2、 重新生成的文件破坏了索引文件 对相关文件的索引关系, 会导致快退文件点播失败。
按照直播录制内容时间设定固定大小的文件, 如果 VOD内容提前结束, 则浪费了存储空间; 如果 VOD内容的时间延长, 则会导致后续的内容无法生 成快退数据;这样的问题普遍存在于需要预先分配存储空间而需要存储的文件 大小又不能在分配前确定的情况之下,造成分配的存储空间与存储的需求无法 匹配的问题。
发明内容
本发明实施例要解决的技术问题是提供一种媒体内容的存储方法、读取方 法、 装置和系统, 实现存储空间的分配与存储的需求的匹配。 过以下技术方案实现:
接收直播时移业务的媒体内容;
生成所述媒体内容的快退文件, 为所述快退文件分配存储分片, 将快退文 件存储到存储分片; 若所述存储分片写满后还有正在生成的快退文件, 则继续 为所述快退文件分配存储分片, 将未存储的快退文件存储到新分配的存储分 片; 直到快退文件全部存储完毕。
一种媒体内容的读取方法, 包括:
接收媒体内容请求消息,所述媒体内容请求消息包含所要读取的快退文件 的外部索引和内容范围; 根据所述快退文件的外部索引和内容范围确定用于存储所述快退文件的 存储分片;
从所述存储分片中读取所述快退文件并发送。
一种媒体内容的存储装置, 包括:
文件接收单元, 用于接收直播时移业务的媒体内容;
文件生成单元, 用于生成所述媒体内容的快退文件;
判断单元, 用于判断是否还有正在生成的快退文件;
存储控制单元, 用于为所述快退文件分配存储分片,将快退文件存储到存 储分片; 若所述存储分片写满后还有正在生成的快退文件, 则继续为所述快退 文件分配存储分片,将未存储的快退文件存储到新分配的存储分片; 直到快退 文件全部存储完毕。
一种媒体内容的读取装置, 包括:
请求接收单元, 用于接收媒体内容请求消息, 所述媒体内容请求消息包含 所要读取的快退文件的外部索引和内容范围;
检索单元,用于根据所述快退文件的外部索引和内容范围确定用于存储所 述快退文件的存储分片; 一种媒体内容的存储系统, 包括: 存储装置和读取装置, 其特征在于: 存 储装置为本发明实施例提供的任意一项的媒体内容的存储装置,读取装置为本 发明实施例提供的媒体内容的读取装置。
上述技术方案具有如下有益效果:通过分片来存储无法预知大小的快退文 件, 不必为无法预知大小的快退文件预先分配大的存储空间, 这样减少了预占 用的系统存储空间, 实现存储空间的分配与存储的需求的匹配。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需 要使用的附图作简单地介绍,显而易见地, 下面描述中的附图仅仅是本发明的 一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例方法流程示意图; 图 2为本发明实施例方法流程示意图;
图 3为本发明实施例存储文件结构示意图;
图 4为本发明实施例装置结构示意图;
图 5为本发明实施例装置结构示意图;
图 6为本发明实施例装置结构示意图;
图 7为本发明实施例装置结构示意图;
图 8为本发明实施例装置结构示意图;
图 9为本发明实施例系统结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
一种媒体内容的存储方法, 如图 1所示, 包括:
101 : 接收直播时移业务的媒体内容; 生成上述媒体内容的快退文件; 这里的直播时移业务的媒体内容可能是一次性连续接收的,也可能是断断 续续的接收的, 对于直播时移业务的媒体内容如何接收的本申请文件不予限 定。
102: 为上述快退文件分配存储分片, 将快退文件存储到存储分片; 若上 述存储分片写满后还有正在生成的快退文件 ,则继续为上述快退文件分配存储 分片,将未存储的快退文件存储到新分配的存储分片; 直到快退文件全部存储 午。
进一步地,应用于直播快退文件的存储过程中, 上述快退文件存储到存储 上述实施例,通过分片来存储无法预知大小的快退文件, 不必为无法预知 大小的快退文件预先分配大的存储空间, 这样减少了预占用的系统存储空间, 实现存储空间的分配与存储的需求的匹配。
存储分片的大小可以都是一样大的,也可以按照预定的规则来设置各次分 配的存储分片的大小, 对此本发明实施例不予限定, 例如可以固定大小, 也可 以大小递减的形式分配存储分片。 另外为了方便以后的快退文件的检索还可 以:
为存储分片分配标识 ID,该 ID用于表示该存储分片的位置信息, 即存储分 片的路径信息。 为了明确表示出不同快退文件的存储分片,还可以为存储分片 的标识增加快退文件的外部索引名称的前缀,例如将存储分片命名为快退文件 的外部索引名称 +ID。
另外,还需要建立分片索引; 上述分片索引用以表示上述存储分片所存储 的快退文件的内容范围与上述存储分片的标识之间的映射关系, 具体地, 快退 文件的内容范围以字节范围表示。 法, 如图 2所示, 包括:
201 : 接收媒体内容请求消息, 上述媒体内容请求消息包含所要读取的快 退文件的外部索引和内容范围;
202: 根据上述快退文件的外部索引和内容范围确定用于存储上述快退文 件的存储分片;
根据上述快退文件的外部索引和内容范围确定用于存储上述快退文件的 存储分片包括: 根据上述快退文件的外部索引和内容范围查询分片索引,确定 上述存储分片的标识, 其中, 上述存储分片的标识用于表示上述存储分片的位 置信息; 根据上述存储分片的标识确定上述存储分片。
203: 从上述存储分片中读取上述快退文件并发送。 这里发送的内容的发 送目的地可能是媒体内容请求消息的发送方,也可能是媒体内容请求消息的发 送方和媒体内容的读取方的第三方设备, 对此本发明实施例不予限定。
以下将以直播快退文件的生成和读取为例,以系统的方式对上述实施例进 行进一步的说明。
直播录制内容生成时, 快退文件按照分片的方式生成并存储 , 每个分片 写满后, 生成下一个分片, 直到快退文件的数据全部存储完毕。 每个分片可以 按照某种规则设定, 一种规则是按照固定大小的方式设定; 如存储文件的示意 图 3所示, 重叠的方形图案表示了四个分片 301 : 快退内容(斜体方格部分)从 快退文件尾部向快退文件头写入; 直播录制内容, 快进内容和快退内容生成的 同时, 其媒体内容的索引信息也同步到索引文件(index file ) 中, 例如: 每个 视频或者音频釆样在文件中的索引信息会同步到 Index文件中, 并且随着直播 的演进, 索引信息不断增加。 在分片规则中, 还包含设定分片的命名规则; 分 片文件按照命名规则命名。 一种简单的实现方式是: 每个分片分配一个 ID, ID 和分片在文件中的位置相关。 例如, 为第一个分片分配为 0, 第二个分片分配 为 1 , 快退文件对外部的索引为 ABCD, 则分片的名称为 ABCD— 0, ABCD— 1。
快退文件分片存储及分发的设备可以包含: 用户的请求处理逻辑, 分片内 容定位逻辑, 快退文件生成器, 以及内容发送逻辑。 如图 4所示:
401 : 存储服务器接收到外部用户的请求快退文件;
402: 系统首先执行分片内容定位逻辑;
403: 经过分片内容定位逻辑, 得到分片的 ID和字节访问; 其中分片的 ID 对应分片文件的存储路径和文件名。
404: 内容发送的模块根据分片 ID和字节范围从快速分片生成器(可以对 应图 3中的存储设备) 中获取快退内容, 然后向用户发送用户所需要的快退内 容。
在本实施例中, 中心存储在处理直播录制内容时, 可以按照实际直播节目 的长短生成快退文件, 节省系统存储空间; 可以适应直播录制内容的时间变 长或者变短,生成合适的快退文件;针对快退文件,可以随着时间增长而增长, 减少了预占用系统存储空间。
一种媒体内容的存储装置, 如图 5所示, 包括:
文件接收单元 501 , 用于接收直播时移业务的媒体内容;
文件生成单元 502, 用于生成上述媒体内容的快退文件;
判断单元 503 , 用于判断是否还有正在生成的快退文件;
存储控制单元 504, 用于为上述快退文件分配存储分片, 将快退文件存储 到存储分片; 若上述存储分片写满后还有正在生成的快退文件, 则继续为上述 快退文件分配存储分片, 将未存储的快退文件存储到新分配的存储分片; 直到 接收的快退文件全部存储完毕。
更具体地, 上述存储控制单元 504, 用于分配存储分片包括: 按照预先制 定的规则分配固定大小或者大小递减的存储分片。 如图 6所示, 上述装置, 还包括:
编号单元 601 , 用于为上述存储分片分配标识, 上述标识用于表示上述存 储分片的位置信息。
如图 7所示, 上述装置, 还包括:
索引建立单元 701 , 用于建立分片索引, 上述分片索引用以表示上述存储 分片所存储的快退文件的内容范围与上述存储分片的标识之间的映射关系。
更具体地, 上述存储控制单元 504 , 用于将快退文件存储到存储分片包括: 一种媒体内容的读取装置, 如图 8所示, 包括:
请求接收单元 801 , 用于接收媒体内容请求消息, 上述媒体内容请求消息 包含所要读取的快退文件的外部索引和内容范围;
检索单元 802, 用于根据上述快退文件的外部索引和内容范围确定用于存 储上述快退文件的存储分片; 更具体地, 上述检索单元 802, 用于根据上述快退文件的外部索引和内容 范围查询分片索引, 确定上述存储分片的标识, 其中, 上述存储分片的标识用 于表示上述存储分片的位置信息; 根据上述存储分片的标识确定上述存储分 片。
一种媒体内容的存储系统,如图 9所示,包括:存储装置 901和读取装置 902, 其中存储装置 901为本发明实施例任意一项提供的媒体内容的存储装置, 读取 装置 902本发明实施例任意一项提供的媒体内容的读取装置。
上述实施例,通过分片来存储无法预知大小的快退文件, 不必为无法预知 大小的快退文件预先分配大的存储空间, 这样减少了预占用的系统存储空间, 实现存储空间的分配与存储的需求的匹配。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤 是可以通过程序来指令相关的硬件完成,上述的程序可以存储于一种计算机可 读存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。
以上对本发明实施例所提供的一种媒体内容的存储方法、读取方法、装置 行了阐述, 以上实施例的说明只是用于帮助理解本发明的方法及其核心思想; 同时, 对于本领域的一般技术人员, 依据本发明的思想, 在具体实施方式及应 用范围上均会有改变之处, 综上, 本说明书内容不应理解为对本发明的限制。

Claims

1、 一种媒体内容的存储方法, 其特征在于, 包括:
接收直播时移业务的媒体内容;
生成所述媒体内容的快退文件, 为所述快退文件分配存储分片, 将快退文 件存储到所述存储分片; 若所述存储分片写满后还有正在生成的快退文件, 则 继续为所述快退文件分配存储分片 ,将未存储的快退文件存储到新分配的存储 分片; 直到快退文件全部存储完毕。
2、 根据权利要求 1所述方法, 其特征在于, 所述分配存储分配包括: 按照预先制定的规则分配固定大小或者大小递减的存储分片。
3、 根据权利要求 1所述方法, 其特征在于, 还包括: 为所述存储分片分配 标识, 所述标识用于表示所述存储分片的位置信息。
4、 根据权利要求 3所述方法, 其特征在于, 还包括: 为所述存储分片的标 识增加所述快退文件的外部索引名称的前缀。
5、 根据权利要求 3所述方法, 其特征在于, 还包括:
建立分片索引,所述分片索引用以表示所述存储分片所存储的快退文件的 内容范围与所述存储分片的标识之间的映射关系。
6、 根据权利要求 1至 5任意一项所述方法, 其特征在于, 所述快退文件存
7、 一种媒体内容的读取方法, 其特征在于, 包括:
接收媒体内容请求消息,所述媒体内容请求消息包含所要读取的快退文件 的外部索引和内容范围;
根据所述快退文件的外部索引和内容范围确定用于存储所述快退文件的 存储分片;
从所述存储分片中读取所述快退文件并发送。
8、 根据权利要求 7所述方法, 其特征在于, 根据所述快退文件的外部索引 和内容范围确定用于存储所述快退文件的存储分片包括:
根据所述快退文件的外部索引和内容范围查询分片索引,确定所述存储分 片的标识, 其中, 所述存储分片的标识用于表示所述存储分片的位置信息; 根据所述存储分片的标识确定所述存储分片。
9、 一种媒体内容的存储装置, 其特征在于, 包括: 文件接收单元, 用于接收直播时移业务的媒体内容;
文件生成单元, 用于生成所述媒体内容的快退文件;
判断单元, 用于判断是否还有正在生成的快退文件;
存储控制单元, 用于为所述快退文件分配存储分片,将快退文件存储到存 储分片; 若所述存储分片写满后还有正在生成的快退文件, 则继续为所述快退 文件分配存储分片,将未存储的快退文件存储到新分配的存储分片; 直到快退 文件全部存储完毕。
10、 根据权利要求 9所述方法, 其特征在于, 所述存储控制单元, 用于分 配存储分片包括: 按照预先制定的规则分配固定大小或者大小递减的存储分 片。
11、 根据权利要求 9所述装置, 其特征在于, 还包括:
编号单元, 用于为所述存储分片分配标识, 所述标识用于表示所述存储分 片的位置信息。
12、 根据权利要求 11所述装置, 其特征在于, 还包括:
索引建立单元, 用于建立分片索引, 所述分片索引用以表示所述存储分片 所存储的快退文件的内容范围与所述存储分片的标识之间的映射关系。
13、 根据权利要求 9至 12任意一项所述装置, 其特征在于, 所述存储控制 单元, 用于将快退文件存储到存储分片包括: 写入。
14、 一种媒体内容的读取装置, 其特征在于, 包括:
请求接收单元, 用于接收媒体内容请求消息, 所述媒体内容请求消息包含 所要读取的快退文件的外部索引和内容范围;
检索单元,用于根据所述快退文件的外部索引和内容范围确定用于存储所 述快退文件的存储分片;
15、 根据权利要求 14所述装置, 其特征在于, 所述检索单元, 用于根据所 述快退文件的外部索引和内容范围查询分片索引, 确定所述存储分片的标识, 其中, 所述存储分片的标识用于表示所述存储分片的位置信息; 根据所述存储 分片的标识确定所述存储分片。
16、一种媒体内容的存储系统, 包括:存储装置和读取装置,其特征在于: 存储装置为权利要求 9至 13任意一项的媒体内容的存储装置, 读取装置为权利 要求 14或 15的媒体内容的读取装置。
PCT/CN2011/084712 2010-12-30 2011-12-27 一种媒体内容的存储方法、读取方法、装置和系统 WO2012089096A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010615967.2 2010-12-30
CN 201010615967 CN102136289B (zh) 2010-12-30 2010-12-30 一种媒体内容的存储方法、读取方法、装置和系统

Publications (1)

Publication Number Publication Date
WO2012089096A1 true WO2012089096A1 (zh) 2012-07-05

Family

ID=44296047

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/084712 WO2012089096A1 (zh) 2010-12-30 2011-12-27 一种媒体内容的存储方法、读取方法、装置和系统

Country Status (2)

Country Link
CN (1) CN102136289B (zh)
WO (1) WO2012089096A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102136289B (zh) * 2010-12-30 2013-03-13 华为技术有限公司 一种媒体内容的存储方法、读取方法、装置和系统
CN102708107A (zh) * 2011-12-13 2012-10-03 北京安天电子设备有限公司 一种追加式文件存储的方法及系统
WO2012092901A2 (zh) * 2012-02-13 2012-07-12 华为技术有限公司 媒体存储系统及方法
CN103152377B (zh) * 2012-12-13 2016-05-11 中国科学院深圳先进技术研究院 一种面向ftp服务的数据访问方法
CN103108029B (zh) * 2012-12-13 2016-06-29 中国科学院深圳先进技术研究院 vod系统的数据访问方法
CN104796741B (zh) * 2015-04-15 2018-03-16 姚世明 一种网络分层和资源分片的媒体分享方法装置
CN108763479A (zh) * 2018-05-29 2018-11-06 宁波三星医疗电气股份有限公司 基于终端文件系统的文件管理方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1602632A (zh) * 2001-12-12 2005-03-30 皇家飞利浦电子股份有限公司 交互电视应用的回放
CN1886988A (zh) * 2003-10-22 2006-12-27 视频网络Ip控股有限公司 非线性交互式视频导航
CN101073261A (zh) * 2004-12-09 2007-11-14 皇家飞利浦电子股份有限公司 一种节目播放方法和装置
CN101102465A (zh) * 2006-07-03 2008-01-09 长江计算机(集团)公司 一种应用于数字电视播放的时移系统
CN101242520A (zh) * 2007-01-12 2008-08-13 博路技术有限公司 数据分发及缓冲
CN102136289A (zh) * 2010-12-30 2011-07-27 华为技术有限公司 一种媒体内容的存储方法、读取方法、装置和系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6097422A (en) * 1998-10-05 2000-08-01 Panasonic Technologies, Inc. Algorithm for fast forward and fast rewind of MPEG streams
JP2005538616A (ja) * 2002-09-05 2005-12-15 トムソン ライセンシング 配信環境におけるメモリpvr機能のためのシステム及び方法
CN100382594C (zh) * 2004-05-27 2008-04-16 扬智科技股份有限公司 影音信号快进播放方法
CN101021846A (zh) * 2006-02-14 2007-08-22 乐金电子(中国)研究开发中心有限公司 一种不定帧长结构数据流的存储方法
CN101106637A (zh) * 2006-07-13 2008-01-16 中兴通讯股份有限公司 通过机顶盒实现对外接存储设备的媒体文件播放的方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1602632A (zh) * 2001-12-12 2005-03-30 皇家飞利浦电子股份有限公司 交互电视应用的回放
CN1886988A (zh) * 2003-10-22 2006-12-27 视频网络Ip控股有限公司 非线性交互式视频导航
CN101073261A (zh) * 2004-12-09 2007-11-14 皇家飞利浦电子股份有限公司 一种节目播放方法和装置
CN101102465A (zh) * 2006-07-03 2008-01-09 长江计算机(集团)公司 一种应用于数字电视播放的时移系统
CN101242520A (zh) * 2007-01-12 2008-08-13 博路技术有限公司 数据分发及缓冲
CN102136289A (zh) * 2010-12-30 2011-07-27 华为技术有限公司 一种媒体内容的存储方法、读取方法、装置和系统

Also Published As

Publication number Publication date
CN102136289A (zh) 2011-07-27
CN102136289B (zh) 2013-03-13

Similar Documents

Publication Publication Date Title
WO2012089096A1 (zh) 一种媒体内容的存储方法、读取方法、装置和系统
US10986390B2 (en) Recording device and method for efficient network personal video recorder manipulation through adaptive bit rate streaming
US7480441B2 (en) Method for seamless real-time splitting and concatenating of a data stream
JP5894220B2 (ja) プログレッシブ再生を含む映像分配システム
WO2013008867A1 (ja) 送信装置、送信装置の制御方法、制御プログラム、及び記録媒体
EP0744868A2 (en) Method and apparatus for guaranteeing average case disk transfer bandwith and seek time for a video server
WO2009062385A1 (en) A storage system and method of stream media file
KR101352917B1 (ko) 비디오 콘텐츠를 동적으로 수신하여 오디오 콘텐츠와 동기화하여 재생하는 방법 및 시스템
JP2008251082A (ja) 録画システムおよび録画再生方法
TWI285488B (en) Delivery apparatus and reproduction apparatus
WO2017041663A1 (zh) 一种视频控制方法及装置
KR100507956B1 (ko) 멀티미디어 데이터 재생 방법 및 이를 위한 장치
WO2008154784A1 (fr) Procédé et système servant à stocker des fichiers multimédia dans un réseau poste à poste
CN103648021B (zh) 从usb存储设备播放网络视频文件的方法
JP2016059018A (ja) 配信装置、再生装置および配信システム
WO2015096745A1 (zh) 一种内容传送网络的数据处理方法与装置
KR101012187B1 (ko) 데이터 스트림의 심리스 실시간 분리 및 연결을 위한 방법
WO2014072872A1 (en) Persistent review buffer
JP4821501B2 (ja) コンテンツ分散保存システム、フレーム取得方法、及びノード装置等
US11212573B2 (en) Systems, methods, and devices for managing segmented media content
JP2013012284A (ja) コンテンツ送信装置及びダビング方法
JP3670581B2 (ja) 映像音声配信装置及び映像音声ファイル解析方法
JP2005063116A (ja) 無線記憶装置、無線記憶システムおよび無線通信方法
CN114339109A (zh) 一种基于跨存储资源跨网络跨文件的录像级联方法
JP2003124994A (ja) データ蓄積通信装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11853865

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11853865

Country of ref document: EP

Kind code of ref document: A1