A kind of monitor video restorative procedure based on frame structure features

文档序号:1775563 发布日期:2019-12-03 浏览:30次 中文

阅读说明:本技术 一种基于帧结构特性的监控视频修复方法 (A kind of monitor video restorative procedure based on frame structure features ) 是由 梁效宁 许超明 何丽萍 朱星海 于 2019-08-30 设计创作,主要内容包括:本发明公开了一种基于帧结构特性的监控视频修复方法,其特征在于包括以下步骤:S100:加载并读取磁盘首扇区的内容;S200:解析磁盘管理页中与监控视频相关的各个域并获取各个域的值,包括页大小、数据页管理项项数、数据页管理项偏移地址、磁盘首次录入监控视频的日期时间;S300:解析数据页,数据页包含数据页描述信息、数据页管理表、数据页帧管理表以及监控视频;S400:解析监控视频的帧数据;S500:获取并播放监控视频。(The invention discloses a kind of monitor video restorative procedure based on frame structure features, it is characterised in that the following steps are included: S100: loading and the content of the sector reading disk head;S200: each domain relevant to monitor video and obtaining the value in each domain in parsing disk management page, the date-time including page size, data page management item item number, data page management item offset address, disk typing monitor video for the first time;S300: parsing data page, data page include data page description information, data chunk management table, data page frame management table and monitor video;S400: the frame data of monitor video are parsed;S500: obtaining and plays monitor video.)

1. a kind of monitor video restorative procedure based on frame structure features, it is characterised in that the following steps are included:

S100: loading and the content of the sector reading disk head, comprising the following steps:

S101: the first sector of disk is addressed;

S102: reading the content of current sector, and judge the 0x0C byte of current sector to 0x12 byte content whether etc. It is identified in producer, if so, thening follow the steps S103, otherwise, replaces another disk, execute step S101;

S103: the continuous 0x10 byte content that the current sector address 0x3C starts, the monitoring of a recorded programme as the disk are read The UUID of machine executes step S200;

S200: parsing each domain relevant to monitor video in the disk management page and obtains the value in each domain, including page is big The date-time of small, data page management item item number, data page management item offset address, the disk typing monitor video for the first time;

S300: parsing data page, the data page include data page description information, data chunk management table, data page frame management table And monitor video;

S400: the frame data of monitor video are parsed;

S500: obtaining and plays monitor video.

2. a kind of monitor video restorative procedure based on frame structure features according to claim 1, which is characterized in that described Producer is identified as the character uware_v of ACSII format storage, indicates that the disk is the disk of the monitor video of space view science and technology.

3. a kind of monitor video restorative procedure based on frame structure features according to claim 1, which is characterized in that described Step S200 the following steps are included:

S201: parsing and obtains a page size, to determination each data page start-stop address: with the initial address 0x00 of the disk For the first address of disk management page, deviates 0x78 byte backward and continuously read the content of 8 bytes, as with the storage of small end format The page size;

S202: parsing and obtains data page management item item number: using the initial address 0x00 of the disk as the head of disk management page Address is deviated 0x68 byte backward and continuously reads the content of 4 bytes, as the data page management stored with small end format Item item number;

S203: parsing and obtains the offset address of disk page management item content: using the initial address 0x00 of the disk as disk The first address of management page deviates 0x6C byte backward and continuously reads the content of 4 bytes, as described in the storage of small end format The offset address of disk page management item content;

S204: parsing and obtains the date-time of disk typing monitor video for the first time: with the initial address of the disk 0x00 is the first address of disk management page, deviates 0x88 byte backward and continuously reads the content of 4 bytes, as with small end format The date-time of the disk Unix timestamp of typing monitor video for the first time of storage;

S205: parsing and obtains disk total bytes and actual use disk total bytes, extremely in conjunction with step S102, step S201 Step S204 is parsed and is obtained the data structure of the disk management page as shown in following table one: table one: the data of disk management page Structure

S206: it according to the offset address and the data page management item item number of the disk page management item content, addresses and parses Each data page management item content, wherein

Disk page management item content includes the management item of a disk management page and the management item of multiple data in magnetic disk pages;

First item is the management item of disk management page, Section 2 and later every management item for data in magnetic disk page;

The management item of disk management page and each data page management item sequential storage and each data page management item byte length is equal For 0x80 byte, data page management item records the description information of monitor video, the data page time started including monitor video, number The total block data used according to the end of the page time, channel number, data page, wherein

Using byte length for the current data page management item of 0x80 initial address as first address, deviate 0x1C byte and company backward It resumes studies and takes the content of 4 bytes, as the current channel number stored with small end format;

Using byte length for the current data page management item of 0x80 initial address as first address, deviate 0x20 byte and company backward It resumes studies and takes the content of 4 bytes, as the current data page time started stored with small end format;

Using byte length for the current data page management item of 0x80 initial address as first address, deviate 0x24 byte and company backward It resumes studies and takes the content of 4 bytes, as the current data the end of the page time stored with small end format;

Using byte length for the current data page management item of 0x80 initial address as first address, deviate 0x28 byte and company backward It resumes studies and takes the content of 4 bytes, the total block data used as the current data page stored with small end format.

4. a kind of monitor video restorative procedure based on frame structure features according to claim 1, which is characterized in that described Step S300 the following steps are included:

S301: parsing and obtains data page description information, including the management item time started of monitor video, management item in data page Monitor video is stored in the total block data and data page that end time, the item number of data chunk management table, channel number, data page occupy Tunnel name;Data page description information is stored in the first sector in data page, wherein

Using the initial address of current data page as first address, deviates 0x20 byte backward and continuously read the content of 4 bytes, as With the current management item time started of the Unix timestamp of small end format storage;

Using the initial address of current data page as first address, deviates 0x24 byte backward and continuously read the content of 4 bytes, as With the current management item end time of the Unix timestamp of small end format storage;

Using the initial address of current data page as first address, deviates 0x1C byte backward and continuously read the content of 4 bytes, as The current channel number stored with small end format;

Using the initial address of current data page as first address, deviates 0x2C byte backward and continuously read the content of 2 bytes, as With the item number of the current data chunk management table of small end format storage;

Using the initial address of current data page as first address, deviates 0x2E byte backward and continuously read the content of 2 bytes, as The total block data occupied with the current data page of small end format storage;

Using the initial address of current data page as first address, 0x40 byte is deviated backward and continuously reads the content of 0x0C byte, The current channel title of monitor video is stored in the data page occupied as the data page stored with ASCII character format;

S302: parsing and obtains data chunk management table: using the initial address of current data page as first address, deviating 0x800 backward Byte and the content for continuously reading 0x1800 byte, the content as data chunk management table, wherein the item number of data chunk management table It is obtained by step S301, every byte length is 0x18 byte, and every includes every frame management item time started, every frame pipe The total block data that reason item end time and frame use,

Using byte length for the currentitem of 0x18 initial address as first address, the continuous content for reading 4 bytes, as with small end Every frame management item time started of format storage;

Using byte length for the currentitem of 0x18 initial address as first address, deviate 0x04 byte and continuously read 4 words backward The content of section, as the every frame management item end time stored with small end format;

S303: parsing and obtains data page frame management table: using the initial address of current data page as first address, deviating backward The content of 0x2000 byte is the content that data page frame manages table, and continuously reads the content of 0x1800 byte, as data page Manage the content of table, wherein the item number of data chunk management table is obtained by step S301, and every byte length is 0x20 word Section, data page frame management table include that monitor video makes relative to frame described in the page bias internal of current page initial address, step S302 Every frame management item time started described in total block data and step S302;

S304: the page bias internal according to monitor video acquired in step S303 relative to current page initial address is addressed and is obtained Take monitor video;

S305: it according to step S301 to S304, parses and obtains the data structure of data in magnetic disk page as shown in following table two:

Table two: the data structure of data in magnetic disk page

5. a kind of monitor video restorative procedure based on frame structure features according to claim 1, which is characterized in that described Step 400 comprises the steps of:

S401: it parsing GOP image sequence header structure: using the initial address of current data page as first address, deviates backward The content of 0x200000 byte is the initial address of data page GOP image sequence header structure, addresses and parses GOP image sequence head Structure:

The byte length of GOP image sequence header structure is 0x18 byte, and successively the GOP including 4 byte lengths starts mark, 4 words Save the GOP time started of length and the reserved byte of 0x10 byte length, wherein the GOP time started is current GOP image sequence At the beginning of recording;

S402: video frame header structure and video frame start-stop mark in parsing GOP image sequence: with current GOP image sequence head knot The initial address of structure is first address, and the content for deviating 0x18 byte backward is the initial address of video frame header structure, addresses and solves Analyse video frame header structure:

The byte length of video frame header structure is 0x18 byte, successively the frame origin identification including 4 byte lengths, 0x0E byte long The serial number of the frame data of the unknown data of degree, the piece byte number of 2 byte lengths and 4 byte lengths;

S403: video end of identification and GOP total bytes in parsing GOP image sequence: with current GOP image sequence header structure Initial address is first address, searches GOP end of identification backward, and the content of 4 bytes is GOP total bytes before GOP end of identification, Terminate to mark comprising GOP image sequence header structure, video frame header structure, video frame start-stop mark, video requency frame data and video data The sum of each byte number known, the byte number in two domains not comprising GOP total bytes and GOP end of identification;

S404: it according to step S401 to step S403, parses and the data structure for obtaining the data in magnetic disk page video frame is as follows Shown in table three.

Table three: the data structure of data in magnetic disk page video frame

6. a kind of monitor video restorative procedure based on frame structure features according to claim 5, which is characterized in that described GOP starts to be identified as 0x06200000, and the GOP end of identification is 0x03600000, and the video frame origin identification is 0x57130000, the video frame end of identification are 0x58130000, and the video data end of identification is 0x02600000.

7. a kind of monitor video restorative procedure based on frame structure features according to claim 1, which is characterized in that described The specific steps of step S500 are as follows:

S501: whole GOP image sequences of each data page are handled: remove GOP image sequence header structure, video frame header structure, Video frame start-stop mark and video end of identification;

S502: extracting the video data in each GOP image sequence, is combined into a video to group and names it, generation can The video of broadcasting.

Technical field

The invention belongs to electronic data recoveries and evidence obtaining field, are related to a kind of restorative procedure of monitor video, more particularly to A kind of monitor video restorative procedure based on frame structure features.

Background technique

The video monitoring machine producer of existing market has very much, has it for the monitoring equipment data store organisation of each producer Specific data storage method.This patent proposes effective method for the monitor video reparation based on frame structure features, thus Guarantee that the video data extracted is complete, clear, comprehensive.

Summary of the invention

Present invention problem in view of the deficiencies of the prior art, proposes a kind of monitor video reparation side based on frame structure features Method: the data structure of disk management page, the data structure of data in magnetic disk page and data in magnetic disk page by parsing monitor video regard The data structure of frequency frame finds and extracts video data, to generate playable video, reaches the mesh for extracting monitor video 's.

For ease of description, the present invention may include following term:

Management page: the sky for the entire storage organization data of management in video monitoring data storage medium (disk, USB flash disk etc.) Between;

Page: storing the storage medium space of monitor video, page size in No. 0 sector of the storage medium of monitor video into Row definition;

Block: data page is divided into equal-sized section by the basic unit of video storage, and block size is 0x1000 word Section;

Image sequence: a series of video requency frame data of continuous I frames, P frame, B frame composition is referred here to;

GOP (group of pictures): the interval between two I frames is referred to;

GOP start-stop mark: GOP origin identification is 0x06200000, and GOP end of identification is 0x03600000.

Video frame start-stop mark: video frame origin identification is 0x57130000, and video frame end of identification is 0x58130000.

Video data end of identification: video data end of identification is 0x02600000. in GOP image sequence

The present patent application the following steps are included:

S100: loading and the content of the sector reading disk head, comprising the following steps:

S101: the first sector of disk is addressed;

S102: reading the content of current sector, and judges that 0x0C byte to the content of 0x12 byte of current sector is The no producer that is equal to identifies, if so, thening follow the steps S103, otherwise, replaces another disk, executes step S101;

S103: the continuous 0x10 byte content that the current sector address 0x3C starts, the recording as the disk are read The UUID of monitoring equipment executes step S200;

S200: parsing each domain relevant to monitor video in the disk management page and obtains the value in each domain, including Page size, data page management item item number, data page management item offset address, the disk for the first time the date of typing monitor video when Between;

S300: parsing data page, the data page include data page description information, data chunk management table, data page frame pipe Manage table and monitor video;

S400: the frame data of monitor video are parsed;

S500: obtaining and plays monitor video.

Preferably, the producer is identified as the character uware_v of ACSII format storage, indicates that the disk is Yu Shi section The disk of the monitor video of skill.

Preferably, the step S200 the following steps are included:

S201: parsing and obtains a page size, to determination each data page start-stop address: with the initial address of the disk 0x00 is the first address of disk management page, deviates 0x78 byte backward and continuously reads the content of 8 bytes, as with small end format The page size of storage;

S202: parsing and obtains data page management item item number: using the initial address 0x00 of the disk as disk management page First address, deviate 0x68 byte backward and continuously read the contents of 4 bytes, as the data page stored with small end format Management item item number;

S203: parsing and obtains the offset address of disk page management item content: being with the initial address 0x00 of the disk The first address of disk management page is deviated 0x6C byte backward and continuously reads the content of 4 bytes, as what is stored with small end format The offset address of the disk page management item content;

S204: parsing and obtains the date-time of disk typing monitor video for the first time: with the starting point of the disk Location 0x00 is the first address of disk management page, deviates 0x88 byte backward and continuously reads the content of 4 bytes, as with small end lattice The date-time of the disk Unix timestamp of typing monitor video for the first time of formula storage;

S205: parsing and obtains disk total bytes and actual use disk total bytes, in conjunction with step S102, step S201 to step S204 is parsed and is obtained the data structure of the disk management page as shown in following table one: table one: disk management page Data structure

S206: according to the offset address and the data page management item item number of the disk page management item content, addressing is simultaneously Parse each data page management item content, wherein

Disk page management item content includes the management item of a disk management page and the management item of multiple data in magnetic disk pages;

First item is the management item of disk management page, Section 2 and later every management item for data in magnetic disk page;

The management item of disk management page and each data page management item sequential storage and each data page management item byte long Degree is 0x80 byte, and data page management item records the description information of monitor video, when the data page including monitor video starts Between, the total block data that uses of data page end time, channel number, data page, wherein

Using byte length for the current data page management item of 0x80 initial address as first address, backward deviate 0x1C byte And the content of 4 bytes is continuously read, as the current channel number stored with small end format;

Using byte length for the current data page management item of 0x80 initial address as first address, backward deviate 0x20 byte And the content of 4 bytes is continuously read, as the current data page time started stored with small end format;

Using byte length for the current data page management item of 0x80 initial address as first address, backward deviate 0x24 byte And the content of 4 bytes is continuously read, as the current data the end of the page time stored with small end format;

Using byte length for the current data page management item of 0x80 initial address as first address, backward deviate 0x28 byte And the content of 4 bytes is continuously read, the total block data used as the current data page stored with small end format.

Preferably, the step S300 the following steps are included:

S301: parsing and obtains data page description information, including the management item time started of monitor video, pipe in data page Storage monitoring view in the total block data and data page that reason item end time, the item number of data chunk management table, channel number, data page occupy The tunnel name of frequency;Data page description information is stored in the first sector in data page, wherein

Using the initial address of current data page as first address, deviates 0x20 byte backward and continuously reads the content of 4 bytes, The current management item time started as the Unix timestamp stored with small end format;

Using the initial address of current data page as first address, deviates 0x24 byte backward and continuously reads the content of 4 bytes, The current management item end time as the Unix timestamp stored with small end format;

Using the initial address of current data page as first address, deviates 0x1C byte backward and continuously reads the content of 4 bytes, As the current channel number stored with small end format;

Using the initial address of current data page as first address, deviates 0x2C byte backward and continuously reads the content of 2 bytes, Item number as the current data chunk management table stored with small end format;

Using the initial address of current data page as first address, deviates 0x2E byte backward and continuously reads the content of 2 bytes, The total block data occupied as the current data page stored with small end format;

Using the initial address of current data page as first address, 0x40 byte is deviated backward and continuously reads the interior of 0x0C byte Hold, the current channel title of monitor video is stored in the data page occupied as the data page stored with ASCII character format;

S302: parsing and obtains data chunk management table: using the initial address of current data page as first address, deviating backward 0x800 byte and the content for continuously reading 0x1800 byte, the content as data chunk management table, wherein data chunk management table Item number obtained by step S301, every byte length is 0x18 byte, it is every comprising every frame management item time started, The total block data that every frame management item end time and frame use,

Using byte length for the currentitem of 0x18 initial address as first address, the continuous content for reading 4 bytes, as with Every frame management item time started of small end format storage;

Using byte length for the currentitem of 0x18 initial address as first address, deviate 0x04 byte and continuously read backward The content of 4 bytes, as the every frame management item end time stored with small end format;

S303: parsing and obtains data page frame management table: using the initial address of current data page as first address, deviating backward The content of 0x2000 byte is the content that data page frame manages table, and continuously reads the content of 0x1800 byte, as data page Manage the content of table, wherein the item number of data chunk management table is obtained by step S301, and every byte length is 0x20 word Section, data page frame management table include that monitor video makes relative to frame described in the page bias internal of current page initial address, step S302 Every frame management item time started described in total block data and step S302;

S304: the page bias internal according to monitor video acquired in step S303 relative to current page initial address, addressing And obtain monitor video;

S305: it according to step S301 to S304, parses and obtains the data structure of data in magnetic disk page as shown in following table two:

Table two: the data structure of data in magnetic disk page

Preferably, the step 400 comprises the steps of:

S401: it parsing GOP image sequence header structure: using the initial address of current data page as first address, deviates backward The content of 0x200000 byte is the initial address of data page GOP image sequence header structure, addresses and parses GOP image sequence head Structure:

The byte length of GOP image sequence header structure be 0x18 byte, successively including 4 byte lengths GOP start mark, The GOP time started of 4 byte lengths and the reserved byte of 0x10 byte length, wherein the GOP time started is current GOP image At the beginning of sequence is recorded;

S402: video frame header structure and video frame start-stop mark in parsing GOP image sequence: with current GOP image sequence The initial address of header structure is first address, and the content for deviating 0x18 byte backward is the initial address of video frame header structure, addressing And parse video frame header structure:

The byte length of video frame header structure is 0x18 byte, successively the frame origin identification including 4 byte lengths, 0x0E word Save the serial number of the frame data of the unknown data of length, the piece byte number of 2 byte lengths and 4 byte lengths;

S403: video end of identification and GOP total bytes in parsing GOP image sequence: with current GOP image sequence head knot The initial address of structure is first address, searches GOP end of identification backward, and the content of 4 bytes is GOP total byte before GOP end of identification Number, it includes GOP image sequence header structure, video frame header structure, video frame start-stop mark, video requency frame data and video data knots The sum of each byte number of beam identification, the byte number in two domains not comprising GOP total bytes and GOP end of identification;

S404: according to step S401 to step S403, parse and obtain the data structure of the data in magnetic disk page video frame As shown in following table three.

Table three: the data structure of data in magnetic disk page video frame

Preferably, the GOP starts to be identified as 0x06200000, and the GOP end of identification is 0x03600000, the view Frequency frame origin identification is 0x57130000, and the video frame end of identification is 0x58130000, the video data end of identification For 0x02600000.

Preferably, the specific steps of the step S500 are as follows:

S501: whole GOP image sequences of each data page are handled: removing GOP image sequence header structure, video frame header knot Structure, video frame start-stop mark and video end of identification;

S502: extracting the video data in each GOP image sequence, is combined into a video to group and names it, raw At playable video.

The invention has the following advantages:

1, structure elucidation is carried out for the disk of storage video monitoring, conveniently extracts significant data all in disk.

2, for the data extracted, Accurate Analysis goes out the management information of Each part, according to management information, to view Frequency evidence extracts according to channel, time and forms video file.

3, it is handled for frame structure in video file, guarantees that video playing picture is complete, clear.

4, user's operation is very simple, visualizes clear logic, simple and clear, does not have to worry that monitoring data extraction is extensive Multiple junction fruit is difficult to the problem of showing.

Detailed description of the invention

Fig. 1 is the general flow chart of method provided by the present invention;

Fig. 2 is to parse each domain in one embodiment of the invention and obtain the specific flow chart of the value in each domain;

Fig. 3 is the specific flow chart that data page is parsed in one embodiment of the invention;

Fig. 4 is the specific flow chart that the frame data of monitor video are parsed in one embodiment of the invention.

Specific embodiment

The present invention is for the scientific and technological video monitoring of space view as embodiment.The present invention is made with reference to the accompanying drawings and examples It is further described.

Fig. 1 shows the general flow chart of method provided by the present invention.

As shown in Figure 1, the method for the present invention includes the following steps:

S100: loading and the content of the sector reading disk head, comprising the following steps:

S101: the first sector of disk is addressed;

S102: reading the content of current sector, and judges that 0x0C byte to the content of 0x12 byte of current sector is The no producer that is equal to identifies uware_v, if so, indicating that the disk is the disk of the monitor video of space view science and technology, executes step Otherwise S103 replaces another disk, execute step S101;

S103: the continuous 0x10 byte content that the current sector address 0x3C starts, the monitoring of a recorded programme as disk are read The UUID of machine executes step S200;

S200: each domain relevant to the scientific and technological monitor video of space view and each domain is obtained in parsing disk management page Value, including page size, data page management item item number, data page management item offset address, disk, typing space regards scientific and technological prison for the first time Control the date-time of video;

Step S200 the following steps are included:

S201: parsing and obtains a page size, to determination each data page start-stop address: with the initial address 0x00 of disk For the first address of the disk management page of space view science and technology, deviates 0x78 byte backward and continuously read the content of 8 bytes, as with small Hold the page size of format storage;

S202: parsing and obtains data page management item item number: using the initial address 0x00 of disk as the disk of space view science and technology The first address of management page is deviated 0x68 byte backward and continuously reads the content of 4 bytes, as the data stored with small end format Page management item item number;

S203: parsing and obtains the offset address of disk page management item content: regarding by space of the initial address 0x00 of disk The first address of the disk management page of science and technology deviates 0x6C byte backward and continuously reads the content of 4 bytes, as with small end format The offset address of the disk page management item content of storage;

S204: parsing and obtain disk for the first time typing space view science and technology monitor video date-time: with the starting of disk Address 0x00 is the first address of the disk management page of space view science and technology, deviates 0x88 byte backward and continuously reads the content of 4 bytes, As the disk stored with small end format for the first time typing space view science and technology monitor video Unix timestamp date-time;

S205: parsing and obtains disk total bytes and actual use disk total bytes, in conjunction with step S102, step S201 to step S204 is parsed and is obtained the data structure of disk management page as shown in following table one:

Table one: the data structure of disk management page

S206: it according to the offset address and data page management item item number of disk page management item content, addresses and parses each Data page management item content, wherein

Disk page management item content includes the management item of a disk management page and the management item of multiple data in magnetic disk pages;

First item is the management item of disk management page, Section 2 and later every management item for data in magnetic disk page;

The management item of disk management page and each data page management item sequential storage and each data page management item byte long Degree is 0x80 byte, and data page management item records the description information of monitor video, when the data page including monitor video starts Between, the total block data that uses of data page end time, channel number, data page, wherein

Using byte length for the current data page management item of 0x80 initial address as first address, backward deviate 0x1C byte And the content of 4 bytes is continuously read, as the current channel number stored with small end format;

Using byte length for the current data page management item of 0x80 initial address as first address, backward deviate 0x20 byte And the content of 4 bytes is continuously read, as the current data page time started stored with small end format;

Using byte length for the current data page management item of 0x80 initial address as first address, backward deviate 0x24 byte And the content of 4 bytes is continuously read, as the current data the end of the page time stored with small end format;

Using byte length for the current data page management item of 0x80 initial address as first address, backward deviate 0x28 byte And the content of 4 bytes is continuously read, the total block data used as the current data page stored with small end format.

S300: parsing data page, data page include data page description information, data chunk management table, data page frame management table And monitor video, step S300 the following steps are included:

S301: parsing and obtains data page description information, including the management item time started of monitor video, pipe in data page Storage monitoring view in the total block data and data page that reason item end time, the item number of data chunk management table, channel number, data page occupy The tunnel name of frequency;Data page description information is stored in the first sector in data page, wherein

Using the initial address of current data page as first address, deviates 0x20 byte backward and continuously reads the content of 4 bytes, The current management item time started as the Unix timestamp stored with small end format;

Using the initial address of current data page as first address, deviates 0x24 byte backward and continuously reads the content of 4 bytes, The current management item end time as the Unix timestamp stored with small end format;

Using the initial address of current data page as first address, deviates 0x1C byte backward and continuously reads the content of 4 bytes, As the current channel number stored with small end format;

Using the initial address of current data page as first address, deviates 0x2C byte backward and continuously reads the content of 2 bytes, Item number as the current data chunk management table stored with small end format;

Using the initial address of current data page as first address, deviates 0x2E byte backward and continuously reads the content of 2 bytes, The total block data occupied as the current data page stored with small end format;

Using the initial address of current data page as first address, 0x40 byte is deviated backward and continuously reads the interior of 0x0C byte Hold, the current channel title of monitor video is stored in the data page occupied as the data page stored with ASCII character format;

S302: parsing and obtains data chunk management table: using the initial address of current data page as first address, deviating backward 0x800 byte and the content for continuously reading 0x1800 byte, the content as data chunk management table, wherein data chunk management table Item number obtained by step S301, every byte length is 0x18 byte, it is every comprising every frame management item time started, The total block data that every frame management item end time and frame use,

Using byte length for the currentitem of 0x18 initial address as first address, the continuous content for reading 4 bytes, as with Every frame management item time started of small end format storage;

Using byte length for the currentitem of 0x18 initial address as first address, deviate 0x04 byte and continuously read backward The content of 4 bytes, as the every frame management item end time stored with small end format;

S303: parsing and obtains data page frame management table: using the initial address of current data page as first address, deviating backward The content of 0x2000 byte is the content that data page frame manages table, and continuously reads the content of 0x1800 byte, as data page Manage the content of table, wherein the item number of data chunk management table is obtained by step S301, and every byte length is 0x20 word Section, data page frame management table include that monitor video is used relative to page bias internal, the step S302 frame of current page initial address Total block data and step S302 every frame management item time started;

S304: the page bias internal according to monitor video acquired in step S303 relative to current page initial address, addressing And obtain monitor video;

S305: it according to step S301 to S304, parses and obtains the data structure of data in magnetic disk page as shown in following table two:

Table two: the data structure of data in magnetic disk page

S400: parsing the frame data of monitor video, and step 400 comprises the steps of:

S401: it parsing GOP image sequence header structure: using the initial address of current data page as first address, deviates backward The content of 0x200000 byte is the initial address of data page GOP image sequence header structure, addresses and parses GOP image sequence head Structure:

The byte length of GOP image sequence header structure is 0x18 byte, and successively the GOP including 4 byte lengths starts to identify The reserved byte of 0x06200000, the GOP time started of 4 byte lengths and 0x10 byte length, wherein the GOP time started is At the beginning of current GOP image sequence is recorded;

S402: video frame header structure and video frame start-stop mark in parsing GOP image sequence: with current GOP image sequence The initial address of header structure is first address, and the content for deviating 0x18 byte backward is the initial address of video frame header structure, addressing And parse video frame header structure:

The byte length of video frame header structure is 0x18 byte, successively includes the frame origin identification of 4 byte lengths The sequence of the frame data of the unknown data of 0x57130000,0x0E byte length, the piece byte number of 2 byte lengths and 4 byte lengths Number;In addition, frame end is identified as 0x58130000.

S403: video end of identification and GOP total bytes in parsing GOP image sequence: with current GOP image sequence head knot The initial address of structure is first address, searches 4 words before GOP end of identification 0x03600000, GOP end of identification 0x03600000 backward The content of section is GOP total bytes, and it includes GOP image sequence header structure, video frame header structure, video frame start-stop marks, view The sum of frequency frame data and each byte number of video data end of identification 0x02600000, do not include GOP total bytes and GOP is tied The byte number in two domains of beam identification;

S404: it according to step S401 to step S403, parses and the data structure for obtaining data in magnetic disk page video frame is as follows Shown in table three.

Table three: the data structure of data in magnetic disk page video frame

S500: obtaining and plays monitor video.

The specific steps of step S500 are as follows:

S501: whole GOP image sequences of each data page are handled: removing GOP image sequence header structure, video frame header knot Structure, video frame start-stop mark and video end of identification;

S502: extracting the video data in each GOP image sequence, is combined into a video to group and names it, raw At playable video

The method provided through the invention solves and there is no a kind of monitor video based on frame structure features in the prior art The technical issues of restorative procedure.

It should be understood that the present invention is not limited to above-mentioned citings, it for those of ordinary skills, can basis Above description is improved or converted, and all these modifications and variations all should belong to the protection model of appended claims of the present invention It encloses.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于FPGA的HDMI Source测试设备与方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类