CN104486614A - MP4 (Mobile Pentium 4) video format corruption detection method - Google Patents
MP4 (Mobile Pentium 4) video format corruption detection method Download PDFInfo
- Publication number
- CN104486614A CN104486614A CN201410748294.6A CN201410748294A CN104486614A CN 104486614 A CN104486614 A CN 104486614A CN 201410748294 A CN201410748294 A CN 201410748294A CN 104486614 A CN104486614 A CN 104486614A
- Authority
- CN
- China
- Prior art keywords
- video
- video file
- size
- file
- format
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Landscapes
- Television Signal Processing For Recording (AREA)
Abstract
The invention discloses an MP4 (Mobile Pentium 4) video format corruption detection method. The method comprises the following steps: opening a video file of an MP4 format; reading metadata information in the opened video file to obtain the size of each BOX; adding the sizes of all the obtained BOXes to obtain the theoretical size s0 of the video file; reading the size s1 of the MP4 format video file in a file system; comparing the sizes of the s0 and the s1; if the s0 is greater than the s1, judging that the video file is corrupted and recording the video corruption information in a log; if the s0 is equal to the s1, judging that the video file is uncorrupted; reading a next piece of video. The method aims to realize the advantages of precision in detection, labor saving and cost reduction.
Description
Technical field
The present invention relates to areas of information technology, particularly, relate to a kind of MP4 video format and damage detection method.
Background technology
The video causing user to submit to due to network environment or the disk read-write bottleneck of instability is imperfect, causes the playing duration of playing duration and the reality shown in playing process inconsistent.For this problem, existing solution is, uses player to open video; Examine video length; Timeline is drawn near time shaft end; Whether acknowledging time axle end place video can normal play; As can be normally broadcast, check next video; There is following problem in the method, need use and manually detect; And file needs first all to be saved in this locality; The damage being less than 2 seconds is manually difficult to detect; Single video detects consuming time long; The input of cost is directly proportional to the quantity of video, when number of videos reaches 1,000,000 order of magnitude, needs to drop into a large amount of manpowers and time.
Summary of the invention
The object of the invention is to, for the problems referred to above, propose a kind of MP4 video format and damage detection method, to realize detecting precisely and the advantage of saving manpower and cost.
For achieving the above object, the technical solution used in the present invention is:
A kind of MP4 video format damages detection method, comprises the following steps:
Step one, open the video file of MP4 form;
Step 2, the metadata information read in the above-mentioned video file opened, obtain the size of each BOX;
Step 3, the size of BOX all above-mentioned steps two obtained are added, and obtain the theoretical size s0 of this video file;
The size s1 of MP4 format video file in above-mentioned steps one in step 4, file reading system;
Step 5, compare the size of s0 and s1 value
Step 6, as s0 > s1, then illustrate that above-mentioned video file damages, this video is damaged information and is recorded in daily record;
Step 7, as s0=s1, then illustrate video file do not damage; Then read next video, return step one.
Technical scheme of the present invention has following beneficial effect:
Technical scheme of the present invention, by the acquisition to metadata information BOX in video file, thus obtains the theoretical value of file, and by the size in this theoretical value and file, thus automatically complete the detection whether video is damaged.Thus there is following characteristics:
1, without the need to artificial participation;
2, detect and precisely only need reading low volume data to judge;
3. execution efficiency is high;
4. can be completely achieved Aulomatizeted Detect;
5. save a large amount of manpowers and time cost.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Fig. 1 is the flow chart of the MP4 video format damage detection method described in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
As shown in Figure 1, a kind of MP4 video format damages detection method, comprises the following steps:
Step one, open the video file of MP4 form;
Step 2, the metadata information read in the above-mentioned video file opened, obtain the size of each BOX;
Step 3, the size of BOX all above-mentioned steps two obtained are added, and obtain the theoretical size s0 of this video file;
The size s1 of MP4 format video file in above-mentioned steps one in step 4, file reading system;
Step 5, compare the size of s0 and s1 value
Step 6, as s0 > s1, then illustrate that above-mentioned video file damages, this video is damaged information and is recorded in daily record;
Step 7, as s0=s1, then illustrate video file do not damage; Then read next video, return step one.
Metadata is metadata, and BOX is data object block.
Last it is noted that the foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, although with reference to previous embodiment to invention has been detailed description, for a person skilled in the art, it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (1)
1. MP4 video format damages a detection method, it is characterized in that, comprises the following steps:
Step one, open the video file of MP4 form;
Step 2, the metadata information read in the above-mentioned video file opened, obtain the size of each BOX;
Step 3, the size of BOX all above-mentioned steps two obtained are added, and obtain the theoretical size s0 of this video file;
The size s1 of MP4 format video file in above-mentioned steps one in step 4, file reading system;
Step 5, compare the size of s0 and s1 value
Step 6, as s0 > s1, then illustrate that above-mentioned video file damages, this video is damaged information and is recorded in daily record;
Step 7, as s0=s1, then illustrate video file do not damage; Then read next video, return step one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410748294.6A CN104486614A (en) | 2014-12-10 | 2014-12-10 | MP4 (Mobile Pentium 4) video format corruption detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410748294.6A CN104486614A (en) | 2014-12-10 | 2014-12-10 | MP4 (Mobile Pentium 4) video format corruption detection method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104486614A true CN104486614A (en) | 2015-04-01 |
Family
ID=52761111
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410748294.6A Pending CN104486614A (en) | 2014-12-10 | 2014-12-10 | MP4 (Mobile Pentium 4) video format corruption detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104486614A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108009035A (en) * | 2016-10-31 | 2018-05-08 | 央视国际网络无锡有限公司 | A kind of MP4 file corruptions detection method and device |
CN110740391A (en) * | 2019-10-31 | 2020-01-31 | 四川效率源信息安全技术股份有限公司 | method for repairing MP4 damaged files |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101146111A (en) * | 2007-10-19 | 2008-03-19 | 深圳市迅雷网络技术有限公司 | A file download method and device |
CN101382914A (en) * | 2008-10-15 | 2009-03-11 | 北大方正集团有限公司 | Testing method and device for software update file |
CN101651709A (en) * | 2009-09-01 | 2010-02-17 | 中国科学院声学研究所 | Method for calibrating integrity of P2P download files |
CN101741643A (en) * | 2009-12-24 | 2010-06-16 | 北京世纪互联宽带数据中心有限公司 | Content delivery network node detecting method and system |
CN101957458A (en) * | 2009-07-21 | 2011-01-26 | 北京大学 | Method for processing ultralow frequency data |
CN102413313A (en) * | 2010-09-26 | 2012-04-11 | 索尼公司 | Data integrity authentication information generation method and device as well as data integrity authentication method and device |
CN103761489A (en) * | 2014-02-18 | 2014-04-30 | 北京网秦天下科技有限公司 | System and method for detecting completeness of file |
-
2014
- 2014-12-10 CN CN201410748294.6A patent/CN104486614A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101146111A (en) * | 2007-10-19 | 2008-03-19 | 深圳市迅雷网络技术有限公司 | A file download method and device |
CN101382914A (en) * | 2008-10-15 | 2009-03-11 | 北大方正集团有限公司 | Testing method and device for software update file |
CN101957458A (en) * | 2009-07-21 | 2011-01-26 | 北京大学 | Method for processing ultralow frequency data |
CN101651709A (en) * | 2009-09-01 | 2010-02-17 | 中国科学院声学研究所 | Method for calibrating integrity of P2P download files |
CN101741643A (en) * | 2009-12-24 | 2010-06-16 | 北京世纪互联宽带数据中心有限公司 | Content delivery network node detecting method and system |
CN102413313A (en) * | 2010-09-26 | 2012-04-11 | 索尼公司 | Data integrity authentication information generation method and device as well as data integrity authentication method and device |
CN103761489A (en) * | 2014-02-18 | 2014-04-30 | 北京网秦天下科技有限公司 | System and method for detecting completeness of file |
Non-Patent Citations (4)
Title |
---|
王华青: "MP4文件流化方法与流媒体系统开发", 《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》 * |
祝红琴: "基于文件传输中文件损坏的检测和恢复办法", 《硅谷》 * |
程峰等: "基于对象的MPEG-4文件格式研究", 《电脑开发与应用》 * |
赵丽娜等: "一种有效加密MP4文件的方法", 《计算机应用与软件》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108009035A (en) * | 2016-10-31 | 2018-05-08 | 央视国际网络无锡有限公司 | A kind of MP4 file corruptions detection method and device |
CN108009035B (en) * | 2016-10-31 | 2021-02-23 | 央视国际网络无锡有限公司 | MP4 file damage detection method and device |
CN110740391A (en) * | 2019-10-31 | 2020-01-31 | 四川效率源信息安全技术股份有限公司 | method for repairing MP4 damaged files |
CN110740391B (en) * | 2019-10-31 | 2021-10-26 | 四川效率源信息安全技术股份有限公司 | Method for repairing MP4 damaged file |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104216811B (en) | The log collecting method and system of application program | |
US20100153347A1 (en) | Method and system for preventing corruption of hard disk drive file system | |
CN104811645A (en) | Embedded video-recording data storage method | |
US10761944B2 (en) | Techniques for deduplication of media content | |
EP1962505A3 (en) | Information recording and reproducing apparatus and method for changing setting language of the same | |
CN104486614A (en) | MP4 (Mobile Pentium 4) video format corruption detection method | |
CN104978241B (en) | A kind of data reconstruction method and device of COW type file systems | |
CN103176867A (en) | Fast file differential backup method | |
US20140325285A1 (en) | Serial attached scsi expander and method for debugging faults thereof | |
CN102968366B (en) | The local storage means of a kind of Blu-ray player daily record and device | |
CN102750342B (en) | A kind of method of cluster file system data consistency | |
CN104615948A (en) | Method for automatically recognizing file completeness and restoring | |
CN204376954U (en) | Based on the Blu-ray Disc storehouse cloud storage system of optical storage | |
CN106648969A (en) | Method and system for inspecting damaged data in disk | |
CN106648999B (en) | The restorative procedure of firmware module damage in a kind of workspace Hitachi's hard disk A | |
CN102117328B (en) | Recording data rapid storage method in Android system | |
CN102117623A (en) | Method and device for recovering magnetic tape metadata | |
CN104252471A (en) | Intelligent file management system | |
CN104504349B (en) | A kind of Video data safe storage device and method | |
WO2012174942A1 (en) | Method and system for locating crash problem of mobile terminal | |
CN103312792A (en) | Method and system for reading file from external storage equipment | |
CN112711380A (en) | Log management method and device of storage equipment and related components | |
CN105072372A (en) | Automatic repair method for FAT file system on DVR terminal | |
CN105517674A (en) | A processing method and a system for monitoring data | |
CN105893394B (en) | Large file simulation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150401 |
|
RJ01 | Rejection of invention patent application after publication |