CN101489074B - Collaborative recording system and method - Google Patents

Collaborative recording system and method Download PDF

Info

Publication number
CN101489074B
CN101489074B CN2009101050399A CN200910105039A CN101489074B CN 101489074 B CN101489074 B CN 101489074B CN 2009101050399 A CN2009101050399 A CN 2009101050399A CN 200910105039 A CN200910105039 A CN 200910105039A CN 101489074 B CN101489074 B CN 101489074B
Authority
CN
China
Prior art keywords
recording
data
block
pcr
center
Prior art date
Application number
CN2009101050399A
Other languages
Chinese (zh)
Other versions
CN101489074A (en
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 深圳市龙视传媒有限公司
Priority to CN2009101050399A priority Critical patent/CN101489074B/en
Publication of CN101489074A publication Critical patent/CN101489074A/en
Application granted granted Critical
Publication of CN101489074B publication Critical patent/CN101489074B/en

Links

Abstract

本发明适用于视频服务技术领域,提供了一种协同录制系统及方法,所述系统包括中心录制端和至少一边缘录制端,其中:所述中心录制端对接收到的TS流进行录制,并向边缘录制端发送预先生成的时间位置同步信息,同时将录制的视频文件和索引文件存储到硬盘;所述边缘录制端对接收到的TS流进行录制,并根据中心录制端发送的时间位置同步信息对录制的数据进行分块、分段,并检测录制数据是否与所述中心录制端录制的数据保持一致,当块、段写满时,生成并存储在和中心录制一致的视频文件及索引文件。 The present invention is applicable to the technical field of video services, there is provided a recording system and a method of collaboration, the central recording system comprising a terminal and at least one side edge of the recording, wherein: TS end of the central recording the received stream record, and transmission time position of the synchronization information generated in advance to the terminal edge of the recording while the recorded video files and index files stored in the hard disk; recording end edge of the TS of the received stream for recording, and record the synchronization based on the time sent by the central location recording information data into blocks, segments, and detects whether the recorded data with the data center consistent recording side recording, when the block when the segment is full, generated and stored in the same file and a video recording and a central index file. 实现了多台服务器录制的同步性,且保持了录制内容的一致性和数据的安全性。 To achieve the synchronization of multiple servers to record, and to maintain the security of the recorded content and data consistency.

Description

一种协同录制系统及方法 One kind of recording system and method for collaborative

技术领域 FIELD

[0001] 本发明属于视频服务技术领域,尤其涉及一种协同录制系统及方法。 [0001] The present invention belongs to the technical field of video services, particularly to a system and method for collaborative recording.

背景技术 Background technique

[0002] 当前,对通过IP网络组播的TS流的录制方式主要有集中录制方式和双机热备份录制的方式,其中,集中录制方式为系统中每个单独的服务器对TS流中的单独数据进行录制,当系统出现问题或崩溃时,数据丢失,无法继续录制;双机热备份录制的方式为系统采用两台录制端服务器进行数据录制,录制的数据都在其备用的服务器上进行数据备份,当其中一台出现故障时,另一台继续录制,保证了录制的安全和连续性,但是当系统出现故障时,需要中断服务器的运行,将录制任务切换到备用的服务器上运行,并且双机热备份通常要求两服务器的配置完全一致。 [0002] Currently, the TS recording mode through the IP network multicast stream mainly centralized recording mode recording and hot backup, wherein the recording method is centralized system server separately for each individual stream TS data recording, there is a problem or when the system crashes, loss of data, recording can not be continued; hot standby mode recording system for recording using two-end server performs data recording, the recorded data are data on its standby server backup, when one of them fails, the other continues recording, to ensure the security and continuity of the record, but when the system fails, the need to interrupt the operation of the server, the recording task switching to the backup server is running, and hot backup server typically requires two identical configuration.

发明内容 SUMMARY

[0003] 本发明实施例的目的在于提供一种协同录制系统,旨在解决现有技术提供的录制系统在出现问题时,录制系统无法良好的继续运行,为用户提供服务的的问题。 [0003] The object of embodiments of the present invention to provide a synergistic recording system, the recording system aimed at solving the prior art problem provided in the recording system can not continue to run well, to provide users with services in question.

[0004] 本发明实施例是这样实现的,一种协同录制系统,所述系统包括中心录制端和至少一边缘录制端,其中: [0004] Example embodiments of the present invention is implemented, a synergistic recording system, said system comprising a central terminal and at least one recording recording end edge, wherein:

[0005] 所述中心录制端对接收到的TS流进行录制,并定时向边缘录制端发送预先生成的时间位置同步信息,同时将录制的视频文件和索引文件存储到硬盘,所述时间位置同步信息包括流ID、段ID、块ID、PCR在块内的偏移量、PCR和虚拟PCR ; [0005] The center side recording received TS stream recording, and periodically transmits the time position of the synchronization information generated in advance to the terminal edge of the recording while the recorded video file and the index file is stored to the hard disk, the position of the synchronization time information includes a stream ID, segment ID, block ID, PCR offset within the block, PCR, and the PCR virtual;

[0006] 所述边缘录制端对接收到的TS流进行录制,并根据中心录制端发送的时间位置同步信息对录制的数据进行分块、分段,并检测录制数据是否与所述中心录制端录制的数据保持一致,当块、段写满时,生成并存储在和中心录制一致的视频文件及索引文件。 [0006] The recording end edge received TS stream for recording, and recording the data block according to the time position of the synchronization information sent by the center of the recording, segmentation, and detects whether the recorded data and the recording end center recorded data consistent when the block when the segment is full, generated and stored in the same file and a video recording and a central index file.

[0007] 本发明实施例的另一目的在于提供一种协同录制方法,所述方法包括下述步骤: [0007] Another object of an embodiment of the present invention to provide a synergistic method of recording, said method comprising the steps of:

[0008] 中心录制端和边缘录制端同时对接收到的TS进行录制,中心录制端将生成的时间位置同步信息发送给边缘录制端,同时当块、段写满后,生成并存储视频文件及索引文件,所述时间位置同步信息包括流ID、段ID、块ID、PCR在块内的偏移量、PCR和虚拟PCR ; [0008] Recording end and center end edge of the recording while recording a received TS, the center transmits the generated recording end time position of synchronization information to the recording end edge, at the same time when the block, the segment is full, and to generate and store a video file index file, the time position of the synchronization information includes a stream ID, segment ID, block ID, PCR offset within the block, PCR, and the PCR virtual;

[0009] 边缘录制端接收到所述时间位置同步信息后,对已经录制的数据进行分块、分段操作,同时检测录制数据是否与所述中心录制端录制的数据保持一致,当块、段写满时,生成并存储在和中心录制一致的视频文件及索引文件。 After [0009] receiving the edges of the recording end time position of the synchronization information, the data has been recorded is divided into blocks, the operating segment, the data is detected while recording data is recorded to the center side recording consistent, when the block, segment when full, and the center is generated and stored consistent record video files and index files.

[0010] 本发明提供的协同录制系统包括中心录制端和至少一边缘录制端,中心录制端和边缘录制端同时对TS流进行录制,中心录制端将生成的时间位置同步信息发送给边缘录制端,同时当块、端写满后,生成并存储视频文件及索引文件;边缘录制端根据时间位置同步信息对已经录制的数据进行分块、分段操作,同时检测录制的数据是否和中心录制端录制的数据保持一致,当块、段写满时,生成并存储在和中心录制一致的视频文件及索引文件,实现了多台服务器录制的同步性。 [0010] Collaborative recording system according to the present invention comprises the center of the recording end and at least one edge of the recording ends, the center of the recording end and the edge of the recording side while the TS stream recording, transmission center recording end the generated time position of synchronization information to the edges of the recording end while when the block, the end filled, generating and storing an index file and a video file; recording end edge of the block is divided according to the time data has been recorded position-synchronization information segment operation, while detecting the recorded data whether the recording ends and the center recorded data consistent when the block when the segment is full, generated and stored in the same file and a video recording and a central index file, to achieve synchronization of multiple servers recorded. 附图说明 BRIEF DESCRIPTION

[0011] 图1是本发明实施例提供的协同录制的系统框图; [0011] FIG. 1 is a system block diagram of a cooperative recorded an embodiment of the present invention;

[0012] 图2是本发明实施例提供的协同录制的方法实现示意图。 [0012] FIG. 2 is a schematic of a method to achieve synergistic recording according to an embodiment of the present invention.

具体实施方式 Detailed ways

[0013] 为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。 [0013] To make the objectives, technical solutions and advantages of the present invention will become more apparent hereinafter in conjunction with the accompanying drawings and embodiments of the present invention will be further described in detail. 应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。 It should be understood that the specific embodiments described herein are only intended to illustrate the present invention and are not intended to limit the present invention.

[0014] 本发明的实施例提供的协同录制系统包括中心录制端和至少一边缘录制端,中心录制端和边缘录制端同时对TS流进行录制,中心录制端将生成的时间位置同步信息发送给边缘录制端,同时当块、端写满后,生成并存储视频文件及索引文件;边缘录制端根据时间位置同步信息对已经录制的数据进行分块、分段操作,同时检测录制的数据是否和中心录制端录制的数据保持一致,当块、段写满时,生成并存储在和中心录制一致的视频文件及索引文件。 [0014] Collaborative recording system of an embodiment of the present invention include the center of the recording end and at least one edge of the recording ends, the center of the recording end and the edge of the recording side while the TS stream recording, transmission center recording end the generated time position of synchronization information to the recording end edge, at the same time when the block, the end filled, generating and storing an index file and a video file; recording end edge of the block is divided according to the time data has been recorded position-synchronization information segment operation, while detecting the recorded data and whether recording the data center side recording consistent, when the block when the segment is full, generated and stored in the same file and a video recording and a central index file.

[0015] 图1示出了本发明实施例提供的协同录制的系统框图,为了便于说明,图中仅给出了与本发明实施例相关的部分。 [0015] FIG. 1 shows a system block diagram of the present invention is a synergistic recorded according to an embodiment, for convenience of explanation, the figures shows only parts related to the embodiment of the present invention.

[0016] 本发明实施例提供的协同录制系统包括中心录制端和至少一边缘录制端。 Collaborative recording system according to an embodiment of the [0016] present invention includes a center end and at least a recording recording end edge. 中心录制端和边缘录制端获取组播到IP网络上的TS流数据,对锁定的TS流数据进行录制。 Recording recording end edge and center terminal acquires multicast data stream to the TS on the IP network, the TS stream data record locked.

[0017] 中心录制端预先生成用于写数据的块和段,每段包括固定数量的块,每段可以独立生成一个文件;将录制的TS流的数据包和PCR包写入块,当前块写满时,继续写下一块。 [0017] Recording the center and end segment previously generated for the write data blocks, each including a fixed number of blocks, each can generate a separate file; the recorded data packet stream and the TS packets PCR write block, the current block when full, continue to write one.

[0018] 在本发明实施例中,当中心录制端接收到PCR包时,对当前块进行映射打点,同时生成时间位置同步信息,其中,该时间位置同步信息包括流ID、段ID、块ID、PCR在块内的偏移量、PCR和虚拟PCR。 [0018] In an embodiment of the present invention, when the center receives the PCR packet recording, mapping the current block RBI, while generating the time position of the synchronization information, wherein the time position of the synchronization information includes a stream ID, segment ID, block ID , PCR offset within the block, PCR, and a virtual PCR.

[0019] 在本发明实施例中,中心录制端定时向边缘录制端发送时间位置同步信息,其中,该特定时间可以为I秒,但不用以限制本发明。 [0019] In an embodiment of the present invention, the recording of the timing transmission to the central edge of the recording end time position of the synchronization information, wherein the second specific time may be I, but not to limit the present invention.

[0020] 当整个段中的块都写满时,将整个段的数据以视频文件的方式存储在硬盘,同时生成索引文件,一并存储到硬盘。 [0020] When the entire segment block are filled, the entire data segment as to the video file stored in the hard disk, while generating an index file stored in the hard disk together.

[0021] 边缘录制端对通过IP网络组播的TS流数据进行录制,在录制的过程中将接收到的TS流数据包和PCR包一并存储到缓存,当接收到中心录制端发送的时间位置同步信息后,边缘录制端对缓存中存储的录制数据进行分块、分段,同时检测录制数据是否与中心录制端录制的数据保持一致。 [0021] recording end edge of the IP network data stream TS multicast recording, in the recording process the received TS packet and a PCR packet stream stored in the cache together, when the time of receiving the record sent by the central after the synchronization position information, recording end edge of the recorded data is stored in the cache block, segmented, while the detection data record and the recorded data whether the recording ends consistent center.

[0022] 在本发明实施例中,根据接收到的中心录制端发送的时间位置同步信息,边缘录制端录制对存储在缓存中的数据进行分块、分段,其详细实现过程为:当在时间位置同步信息中检测到虚拟PCR时,即表示当前为块与块的分界点,虚拟PCR之后的录制的数据为新的一块的数据,每一个端由固定的块组成,根据时间位置同步信息为每一块、每一段进行标识ID,使其与中心录制端录制的数据保持一致,其中,时间位置同步信息包括流ID、段ID、块ID、PCR在块内的偏移量、PCR和虚拟PCR。 [0022] In an embodiment of the present invention, according to the central time of the received position recording sends synchronization information, recording end edge of the recording data stored in the cache is divided into blocks, the segment, which is a detailed implementation process: when when the time position of the synchronization information detected by the dummy PCR, i.e. as a boundary point indicating the current block and the block of data recorded after the dummy PCR of the new data block, each end by a fixed blocks, based on the time position of the synchronization information for each block, each segment identified ID, so that the data center and the end of recording record keeping, wherein the time position of the synchronization information includes a stream ID, segment ID, block ID, PCR offset within the block, PCR and virtual PCR.

[0023] 在本发明实施例中,在对存储在缓存中的录制数据进行分块、分段的同时,边缘录制端对PCR进行定位检测,并判断时间位置同步信息的PCR值和PCR在块内的偏移量是否分别和边缘录制端录制的数据中的PCR值和PCR在块内的偏移量相同,当录制的数据错误或丢失时,边缘录制端向中心录制端发送重发丢失或错误的数据包的请求,其中,该请求包括流ID、段ID、块ID和丢失或错误数据的开始或结束位置,当中心录制端接收到该请求后,以“流ID+段ID+块ID+丢失或错误数据的开始或结束位置+数据流”的格式将丢失或错误的数据包反馈给边缘录制端。 [0023] In embodiments, for the recorded data while stored in the cache block is segmented, the recording end edge of the positioning PCR detection embodiment of the present invention, and determining the time position of the synchronization information and PCR value in the PCR block whether the offset within the record, respectively, and the edges of the recording end and the PCR value in the PCR data in the same block offset, when the recorded data error or loss, the edge toward the center sends recording recording end retransmit the lost or request error packet, wherein the request includes the flow ID, the start or end position of the segment ID, block ID, and missing or erroneous data, when the central recording receives the request, in order to "flow ID + segment ID + block ID + lost + or the beginning or end of the data stream "format of erroneous data will be lost or erroneous data packets back to the end edge of the recording.

[0024] 在本发明实施例中,对时间位置同步信息中的PCR值和PCR在块中内的偏移量进行定位检测: [0024] In an embodiment of the present invention, the time position of the synchronization information PCR value and the PCR offset in the positioning block detection:

[0025] 若边缘录制端中的PCR值和PCR在块中内的偏移量与时间位置同步信息中的PCR值和PCR在块中内的偏移量相同,且前一个PCR值也相等,则为正确的PCR ;若两者前一个PCR值不相等,则为边缘录制端的PCR不正确,即边缘录制端录制的数据有错误,需要请求中心录制端重发错误的数据包; [0025] If the recording end edge of the PCR value and the PCR offset within the block position and time synchronization information PCR value and the PCR offset within the same block, and the previous PCR values ​​are equal, PCR was correct; if a PCR value is not equal to the first two, the edge of recording a PCR was incorrect, i.e. the edge side recording recorded data has an error, the center need to request retransmission of erroneous recording end data packet;

[0026] 若PCR值相等,而PCR在块中内的偏移量不同时,则边缘录制端丢失了数据包,需要请求中心录制端重发丢失的数据包; [0026] If the PCR values ​​are equal, and the PCR offset within the block is not at the same time, the recording end edge of lost packets need to request retransmission of the central recording end lost data packet;

[0027] 若时间位置同步信息中的PCR值比边缘录制端的PCR值大时,则边缘录制端多了PCR包,继续取下一个PCR与该时间位置同步信息中的PCR进行比较; [0027] If the value of the time position of the synchronization information PCR is large than the edge-side recording when the PCR value, then the edge record end more PCR packets, continuing to remove a PCR is compared with the time position of the synchronization information PCR;

[0028] 若时间位置同步信息中的PCR值比边缘录制端的PCR值小时,则边缘录制端丢失了数据包,需要请求中心录制端重发丢失的数据包。 [0028] When the PCR value of the time position of the synchronization information PCR value is small than the end edge of the recording, the recording end edge of lost packets need to request retransmission of the central recording end lost data packet.

[0029] 边缘录制端在比较PCR值的同时,要判断该PCR是否是当前块的最后一个PCR,如果是最后一个PCR,则通过判断该PCR和下一块第一个PCR的正确与否来确定该块最后一个PCR到下一块的第一个PCR之间的数据的正确与否。 [0029] recording end edge while the PCR value comparison, to determine whether the current PCR PCR is the last block, if the last PCR, it is determined whether or not the right is determined by PCR and the next block of the first PCR the last block to the PCR under a correct one or not between the PCR data.

[0030] 在本发明实施例中,边缘录制端根据接收到的时间位置同步信息将录制的数据分段完成时,向中心录制端发送视频文件名和索引文件请求,中心录制端根据该请求,从硬盘中读取存储的视频文件和索引文件的信息,向边缘录制端发送视频文件名和索引文件数据,其发送格式为“流ID+段ID+块ID+文件名”和“流ID+段ID+块ID+文件索引”。 [0030] In the embodiment of the present invention, the edge recording end segment is completed based on the data received time position of the synchronization information will be recorded, transmitted to the central recording side video file name and index file request, the center of the recording side according to the request, from the hard disk reads the stored information of the video files and index files, and transmits the video file name and the index file data to the edge of the recording ends, which transmission format is the "flow ID + segment ID + block ID + file name" and "flow ID + segment ID + block ID + file index . "

[0031] 图2示出了本发明实施例提供的协同录制方法的实现示意图,其详细步骤如下所述: [0031] FIG. 2 shows a schematic view of the present invention to achieve synergy recording method according to an embodiment, the detailed steps are as follows:

[0032] 1.中心录制端和边缘录制端对组播到IP网络上的TS流数据进行录制。 [0032] 1. The Center recording end and the end edge of the TS data record on the IP Multicast network to record.

[0033] 2.中心录制端对录制数据进行分块、分段,每段包括固定数量的块,每段可以以一个独立的视频文件进行存储。 [0033] 2. The center of the end of recording recorded data block, segmented, each segment comprising a fixed number of blocks, each segment may be stored in a single video file.

[0034] 3.当接收到PCR包时,对块进行打点标识,同时生成时间位置同步信息。 When [0034] 3. When the received PCR packet, the block identification RBI, while the time position of synchronization information generation. 在本发明实施例中,时间位置同步信息包括流ID、段ID、块ID、PCR在块内的偏移量、PCR和虚拟PCR。 In an embodiment of the present invention, the time position of the synchronization information includes a stream ID, segment ID, block ID, PCR offset within the block, PCR, and a virtual PCR.

[0035] 4.将生成的时间位置同步信息定时以组播方式发送给边缘录制端。 [0035] 4. The resulting time position is sent to the timing synchronization information recording end edge multicasts.

[0036] 5.边缘录制端根据中心录制端发送的时间位置同步信息,对存储到缓存中的录制数据进行分块、分段。 [0036] The edge position of the recording end time according to the synchronization information sent by the center of the recording, the recording of data stored in the cache is divided into blocks, segments.

[0037] 6.利用时间位置同步信息中的PCR值和PCR在块内的偏移量,边缘录制端对PCR进行定位检测,并判断时间位置同步信息的PCR值和PCR在块内的偏移量是否分别和边缘录制端录制的数据中的PCR值和PCR在块内的偏移量相同,判断边缘录制端是否有数据包丢失或错误。 [0037] 6. The use of the time position of the synchronization information PCR value and the PCR offset within the block, the recording end edge positioned to detect PCR, the PCR value and the PCR and determines the time position of the synchronization information within the block offset respectively and the same data is recorded in the edges of the recording end and the PCR value in the PCR offset block determines whether the recording end edge of the data packet loss or error. [0038] 7.当边缘录制端检测到有数据包丢失或错误时,向中心录制端发送重发丢失或错误的数据包的请求,其中,请求包括流ID、段ID、块ID和丢失或错误数据的开始或结束位置。 [0038] 7. The recording ends when the edge is detected when a packet is missing or incorrect, missing or wrong retransmission request packets to the center of the recording side, wherein the request includes a flow ID, segment ID, block ID, and loss or beginning or end of erroneous data.

[0039] 8.中心录制端的块、段写满时,生成视频文件和索引文件,将视频文件和索引文件存储到硬盘,以防断电或其他事故后,丢失录制数据。 [0039] 8. The central block of the end of recording, when the segment is full, to generate video files and index files, video files and index files stored in the hard disk, in case the power failure or other accident, the loss of recorded data. 其中,每一段可以生成一个单独的视频文件。 Wherein each section may generate a single video file.

[0040] 9.中心录制端接收到该请求后,以“流ID+段ID+块ID+丢失或错误数据的开始或结束位置+数据流”的格式将丢失或错误的数据包反馈给边缘录制端。 Format "start or end position + stream flow ID + segment ID + block ID + missing or erroneous data" after the [0040] 9. The central recording receives the request, to the missing or erroneous data packets back to the edge of the recording side.

[0041] 10.当边缘录制端写满时,向中心录制端发送视频文件名和索引文件请求。 [0041] 10. When the recording end edge of the filled, the center sends a video recording end request file name and index files.

[0042] 11.中心录制端根据边缘录制端发送的请求,发送视频文件名和索引文件数据,其中,其发送格式为“流ID+段ID+块ID+文件名”和“流ID+段ID+块ID+文件索引”。 [0042] 11. The center of the recording side according to the request edge recording terminal that sending the video file name and the index file data, wherein that the transmission format is the "flow ID + segment ID + block ID + file name" and "flow ID + segment ID + block ID + File Index . "

[0043] 12.边缘录制端接收到中心录制端返回的视频文件名和索引文件数据后,设置视频文件和索引文件,当检测的块数据都正确后,就往视频文件里写文件,保持与中心录制端的文件数据的一致。 After [0043] 12. The edge receives video recording file name and recording the index file returned by the data center, video files and index files is provided, when the detected data block is correct, go out into the video file write file, maintaining with the center recording the same end of the file data.

[0044] 在本发明实施例中,上述流程的步骤次序不用以限制本发明,仅仅是本发明的一个具体实施例,其他方式的替换都不用以限制本发明。 [0044] In an embodiment of the present invention, the above-described order of steps is not to limit the process of the present invention, only a particular embodiment of the present invention, another alternative embodiment is not intended to limit the present invention.

[0045] 本发明的实施例提供的协同录制系统包括中心录制端和至少一边缘录制端,中心录制端和边缘录制端同时对TS流进行录制,中心录制端将生成的时间位置同步信息发送给边缘录制端,同时当块、端写满后,生成并存储视频文件及索引文件;边缘录制端根据时间位置同步信息对已经录制的数据进行分块、分段操作,同时检测录制的数据是否和中心录制端录制的数据保持一致,当块、段写满时,生成并存储在和中心录制一致的视频文件及索引文件,实现了多台服务器录制的同步性,且保持了录制内容的一致性和数据的安全性,有效的解决了数据的丢失问题。 [0045] The synergistic recording system of an embodiment of the present invention include the center of the recording end and at least one edge of the recording ends, the center of the recording end and the edge of the recording side while the TS stream recording, transmission center recording end the generated time position of synchronization information to the recording end edge, at the same time when the block, the end filled, generating and storing an index file and a video file; recording end edge of the block is divided according to the time data has been recorded position-synchronization information segment operation, while detecting the recorded data and whether recording the data center side recording consistent, when the block when the segment is full, generated and stored in the same file and a video recording and a central index file, to achieve synchronization of multiple servers recorded, and the recorded content retaining consistency and data security, effective solution to the problem of lost data.

[0046] 以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。 [0046] The foregoing is only preferred embodiments of the present invention but are not intended to limit the present invention, any modifications within the spirit and principle of the present invention, equivalent substitutions and improvements should be included in the present within the scope of the invention.

Claims (10)

1.一种协同录制系统,其特征在于,所述系统包括中心录制端和至少一边缘录制端,其中: 所述中心录制端对接收到的TS流进行录制,并定时向边缘录制端发送预先生成的时间位置同步信息,同时将录制的视频文件和索引文件存储到硬盘,所述时间位置同步信息包括流ID、段ID、块ID、PCR在块内的偏移量、PCR和虚拟PCR ; 所述边缘录制端对接收到的TS流进行录制,并根据中心录制端发送的时间位置同步信息对录制的数据进行分块、分段,并检测录制数据是否与所述中心录制端录制的数据保持一致,当块、段写满时,生成并存储和中心录制一致的视频文件及索引文件。 1. A synergistic recording system, wherein said system comprises a central recording recording end and at least one end edge, wherein: TS end of the central recording the received stream record, and send the timing advance to the recording end edge time position of synchronization information generated while the recorded video file and the index file is stored to the hard disk, the time position of the synchronization information includes a stream ID, segment ID, block ID, PCR offset within the block, PCR, and the PCR virtual; TS recording end edge of said received stream for recording, and recording the data block according to the time position of the synchronization information sent by the center of the recording, segmentation, and detects whether the recorded data with the data center of the recording side recording consistency, when the block when the segment is full, and the center generates and stores the video file and recording the same index file.
2.如权利要求1所述的系统,其特征在于,所述中心录制端预先生成用于写数据的块和段,根据接收到的PCR包对块进行打点标识,同时生成时间位置同步信息。 2. The system according to claim 1, characterized in that the recording center and end segment previously generated for the write data block, the block identifier according to the received RBI PCR packet, and the time position of the synchronization information generation.
3.如权利要求1所述的系统,其特征在于,当所述边缘录制端根据接收到的时间位置同步信息将录制的数据分段完成时,向中心录制端发送视频文件名和索引文件请求,所述中心录制端根据所述请求,发送视频文件名和索引文件数据到边缘录制端。 3. The system according to claim 1, wherein, when the recording end edge of the segment data is completed according to the received time position information of the recorded synchronization, transmits the video file name and recording the index file request to the central terminal, the center according to the recording end request, send the video file name and the index file data recorded to the end edge.
4.如权利要求1所述的系统,其特征在于,根据中心录制端发送的时间位置同步信息,所述边缘录制端对PCR进行定位检测,并判断时间位置同步信息的PCR值和PCR在块内的偏移量是否分别和边缘录制端录制的数据中的PCR值和PCR在块内的偏移量相同,当所述边缘录制端录制的数据错误或丢失时,向中心录制端发送重发丢失或错误的数据包的请求,所述请求包括流ID、段ID、块ID和丢失或错误数据的开始或结束位置。 4. The system according to claim 1, characterized in that, based on the time position of the synchronization information center sends the recording, the recording end edge positioned to detect PCR, the PCR value and the PCR and determines the time position of the synchronization information at block whether the offset within the same data are recorded and the edge of the end of the recorded PCR, and the PCR value offset within the block, when the recording end edge of the recorded data error or loss, the end of the recording to the center retransmission request packet loss or error, the request includes a stream ID, segment ID, the start or end of the block ID and lost or erroneous data.
5.如权利要求1所述的系统,其特征在于,根据中心录制端发送的时间位置同步信息中包含的虚拟PCR,边缘录制端对录制的数据进行分块、分段,每段包括固定数量的块。 5. The system according to claim 1, characterized in that the position of the virtual synchronization time PCR record sent by the information center included in the recording end edge of the recorded data is divided into blocks, segments, each segment comprising a fixed number of block.
6.一种协同录制方法, 其特征在于,所述方法包括下述步骤: 中心录制端和边缘录制端同时对接收到的TS进行录制,中心录制端将生成的时间位置同步信息发送给边缘录制端,同时当块、段写满后,生成并存储视频文件及索引文件,所述时间位置同步信息包括流ID、段ID、块ID、PCR在块内的偏移量、PCR和虚拟PCR ; 边缘录制端接收到所述时间位置同步信息后,对已经录制的数据进行分块、分段操作,同时检测录制数据是否与所述中心录制端录制的数据保持一致,当块、段写满时,生成并存储和中心录制一致的视频文件及索引文件。 A synergistic method of recording, wherein said method comprises the steps of: recording end and center end edge recording while recording a received TS, the center transmits the generated recording end time position information to the edge of recording synchronization end, while when the block, the segment is full, generates and stores a video file and an index file, the position of the time synchronization information includes a stream ID, segment ID, block ID, PCR offset within the block, PCR, and the PCR virtual; after recording edge position receives the time synchronization information, the data has been recorded into blocks, staging operation, detecting whether the recorded data while the data center and the end of recording record keeping, when the block, filled segments generated and stored consistent and center recorded video files and index files.
7.如权利要求6所述的方法,其特征在于,所述中心录制端和边缘录制端同时对接收到的TS进行录制的步骤之后,所述中心录制端将生成的时间位置同步信息发送给边缘录制端的步骤之前,还包括下述步骤: 所述中心录制端预先生成用于写数据的块和段,根据接收到的PCR包对块进行打点标识,同时生成时间位置同步信息。 After 7. The method according to claim 6, characterized in that the central edge of the recording end and an end while recording the received TS recording step, said center end recording the generated time position information to the synchronization before the step of recording end edge, further comprising the step of: recording said center and end segment previously generated for the write data block, the block identifier according to the received RBI PCR packet, and the time position of the synchronization information generation.
8.如权利要求6所述的方法,其特征在于,所述同时检测录制数据是否与所述中心录制端录制的数据保持一致的步骤之后,所述当块、段写满时,生成并存储和中心录制一致的视频文件及索引文件的步骤之前,还包括下述步骤: 当所述边缘录制端根据接收到的时间位置同步信息将录制的数据分段完成时,向中心录制端发送视频文件名和索引文件请求,所述中心录制端根据所述请求,发送视频文件名和索引文件数据到边缘录制端。 After 8. The method according to claim 6, wherein said step of simultaneously detecting the recorded data consistent with the data whether to maintain the center of the recording side recording, when the block section when filled, generates and stores and before the step of the video file and the index file recording the same center, further comprising the step of: when the recording end edge of the received data segment is completed in accordance with the time position of the synchronization information recording, transmitting video files recorded to the end of the center name and index file request, said central recording end according to the request, sending the video file name and the index file data recorded to the end edge.
9.如权利要求6所述的方法,其特征在于,所述检测录制数据是否与所述中心录制端录制的数据保持一致的步骤具体包括下述步骤: 根据中心录制端发送的时间位置同步信息,所述边缘录制端对PCR进行定位检测,并判断时间位置同步信息的PCR值和PCR在块内的偏移量是否分别和边缘录制端录制的数据中的PCR值和PCR在块内的偏移量相同,当所述边缘录制端录制的数据错误或丢失时,请求中心录制端重发丢失或错误的数据包。 9. The method according to claim 6, wherein said detecting recorded data coincides with the step of holding the central recording side recording data comprises the steps of: recording synchronization information according to the time sent by the central location , recording end edge of the positioning of the PCR detection, and determines whether the partial data time PCR PCR value and the offset position of the synchronization information in each block and recording end edge of the recorded PCR, and the PCR values ​​within the block the same shift amount, when the data recording end edge of said recording error or missing, the center of the recording end request retransmission of missing or erroneous data packets.
10.如权利要求6所述的方法,其特征在于,所述同时检测录制数据是否与所述中心录制端录制的数据保持一致的步骤之后,所述当块、段写满时,生成并存储和中心录制一致的视频文件及索引文件的步骤之前,还包括下述步骤: 当所述边缘录制端录制的数据错误或丢失时,请求中心录制端重发丢失或错误的数据包。 After 10. The method according to claim 6, wherein said step of simultaneously detecting the recorded data consistent with the data whether to maintain the center of the recording side recording, when the block section when filled, generates and stores center and before the step of recording the same video file and an index file, further comprising the step of: when the data recording end edge of said recording error or missing, the center of the recording end request retransmission of missing or erroneous data packets. · ·
CN2009101050399A 2009-01-14 2009-01-14 Collaborative recording system and method CN101489074B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101050399A CN101489074B (en) 2009-01-14 2009-01-14 Collaborative recording system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101050399A CN101489074B (en) 2009-01-14 2009-01-14 Collaborative recording system and method

Publications (2)

Publication Number Publication Date
CN101489074A CN101489074A (en) 2009-07-22
CN101489074B true CN101489074B (en) 2013-11-27

Family

ID=40891725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101050399A CN101489074B (en) 2009-01-14 2009-01-14 Collaborative recording system and method

Country Status (1)

Country Link
CN (1) CN101489074B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103310814B (en) * 2012-03-08 2016-05-18 安凯(广州)微电子技术有限公司 The method of recording on a low-end embedded products and systems
CN102780911B (en) * 2012-05-31 2017-08-04 新奥特(北京)视频技术有限公司 Method for detecting data consistency
CN106055663B (en) * 2016-06-03 2019-07-02 广东工业大学 A kind of video storage method based on two-node cluster hot backup
CN107566883B (en) * 2017-08-11 2019-07-05 中广热点云科技有限公司 A method of utilizing recorded broadcast equipment recorded broadcast TV programme

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6772435B1 (en) 1996-04-15 2004-08-03 Nds Limited Digital video broadcast system
CN101034364A (en) 2007-04-02 2007-09-12 华为技术有限公司 Method, device and system for implementing RAM date backup
CN101038591A (en) 2007-04-11 2007-09-19 华为技术有限公司 Method and system for synchronizing data base
EP1903801A2 (en) 2001-08-22 2008-03-26 Tivo, Inc. Multimedia signal processing system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5050668B2 (en) * 2007-06-06 2012-10-17 ティアック株式会社 Data recorder

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6772435B1 (en) 1996-04-15 2004-08-03 Nds Limited Digital video broadcast system
EP1903801A2 (en) 2001-08-22 2008-03-26 Tivo, Inc. Multimedia signal processing system
CN101034364A (en) 2007-04-02 2007-09-12 华为技术有限公司 Method, device and system for implementing RAM date backup
CN101038591A (en) 2007-04-11 2007-09-19 华为技术有限公司 Method and system for synchronizing data base

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2008-305472A 2008.12.18

Also Published As

Publication number Publication date
CN101489074A (en) 2009-07-22

Similar Documents

Publication Publication Date Title
US20060143497A1 (en) System, method and circuit for mirroring data
US9734242B2 (en) Systems and methods for synchronizing operations among a plurality of independently clocked digital data processing devices that independently source digital data
US20030105934A1 (en) Information storage system and control method therefor
KR20120016298A (en) Packet mirroring between primary and secondary virtualized software images for improved system failover performance
US6671821B1 (en) Byzantine fault tolerance
CN101334797B (en) Distributed file systems and its data block consistency managing method
CN101291195A (en) File downloading method, system and terminal realizing breaker point continuous transmission
CN101060391A (en) Master and spare server switching method and system and master server and spare server
CN101656624A (en) Multi-node application-level disaster recovery system and multi-node application-level disaster recovery method
BRPI0721658A2 (en) real-time protocol flow migration
CN102035862B (en) Configuration node fault transfer method and system in SVC cluster
CN101873259B (en) SCTP (Stream Control Transmission Protocol) message identification method and device
CN101741911B (en) Multi-copy collaboration-based write operation method, system and node
CN102546773A (en) Providing resilient services
CN101465768B (en) Method and system for implementing website disaster-tolerating and error-tolerating operation
CN1946058A (en) Soft exchange device allopatric disaster recovery solution system and its method for software exchange network
Ramasamy et al. Quantifying the cost of providing intrusion tolerance in group communication systems
CN103259700A (en) Avionics full-duplex switched ethernet network
JP2006165643A (en) Communication system, delay insertion server, backup server, and communication control apparatus
CN102684827B (en) Data processing method and data processing apparatus
CN101706795B (en) Method for synchronizing data of database in active/standby server
CN103457973B (en) An image-upload method, system, image upload client and server network
CN102790686B (en) Log data acquisition method, system and server
CN101394306B (en) Seamless switching method for dual server system
CN102169453A (en) File online backup method

Legal Events

Date Code Title Description
C06 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1133975

Country of ref document: HK

C10 Entry into substantive examination
ASS Succession or assignment of patent right

Owner name: SHENZHEN DRAGON MEDIA CO., LTD.

Free format text: FORMER OWNER: SHENZHEN TONGZHOU ELECTRONIC CO., LTD.

Effective date: 20120417

C41 Transfer of patent application or patent right or utility model
C14 Grant of patent or utility model
ASS Succession or assignment of patent right

Owner name: SHENZHEN TONGZHOU ELECTRONIC CO., LTD.

Free format text: FORMER OWNER: SHENZHEN LONGSHI MEDIA CO., LTD.

Effective date: 20140516

C41 Transfer of patent application or patent right or utility model
EXPY Termination of patent right or utility model
REG Reference to a national code

Ref country code: HK

Ref legal event code: WD

Ref document number: 1133975

Country of ref document: HK