CN102568521B - A kind of fault-tolerance processing method reading file and system - Google Patents

A kind of fault-tolerance processing method reading file and system Download PDF

Info

Publication number
CN102568521B
CN102568521B CN201010617041.7A CN201010617041A CN102568521B CN 102568521 B CN102568521 B CN 102568521B CN 201010617041 A CN201010617041 A CN 201010617041A CN 102568521 B CN102568521 B CN 102568521B
Authority
CN
China
Prior art keywords
file
data
fault
invalid
mistake
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.)
Expired - Fee Related
Application number
CN201010617041.7A
Other languages
Chinese (zh)
Other versions
CN102568521A (en
Inventor
刘铁华
郑鹏程
见良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing Ltd
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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN201010617041.7A priority Critical patent/CN102568521B/en
Publication of CN102568521A publication Critical patent/CN102568521A/en
Application granted granted Critical
Publication of CN102568521B publication Critical patent/CN102568521B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of fault-tolerance processing method reading file. Specifically disclose by defining a kind of reading file fault-tolerance processing system various types of files of reading with fault-tolerant processing function, described reading file fault-tolerance processing system is divided into by function opens file module, read data module, decoding data module and closedown file module four part, by each part mentioned above, file in use carried out respectively false judgment, judge that file error type includes: inactive file mistake, invalid data errors, invalid decoder error. With prompting and notify that system mistake occurs in time in finding wrong process user, system process current erroneous, improve work efficiency, convenient use.

Description

A kind of fault-tolerance processing method reading file and system
Technical field
The present invention relates to Audio-video Making field and particularly relate to the fault-tolerance processing method reading file in a kind of video and audio end processing sequences.
Background technology
Along with the development that multimedia video business is increasingly faster, television video has become as one of important content in people's life, the information that people obtain from television video program also gets more and more, thus for the information gathering in video production, processing, issue managed operation on and technically will carry out innovation. Certain angle, the different links in video production process process the height of information capability, determine its concerned and welcome degree socially.
In non-linear volume editing software and video and audio later stage special effect processing editing process and composite software, owing to quarry to be edited is many-sided, and the material used also inevitably there will be various mistake, such as: bad data, or file is absent from, or the not reciprocity various situations of data. When an error occurs, sometimes can not at once embody, only when whole flow process breaks down time, system just has embodiment, now each link can only be checked by video editing producer one by one, including the type of mistake, the file etc. of mistake, return again to correct after checking mistake, sometimes also whole Audio-video Making system can be caused very big impact.
In the process of above-mentioned existing techniques in realizing, inventor have found that at least there is techniques below problem:
1, the data read are likely to inaccurate
2, when mistake occurs, Fault Tolerance is poor, and system is unstable
3, mistake goes out active user and can not find mistake in time and correct
Summary of the invention
In order to solve the shortcoming of above-mentioned prior art, the main purpose of the present invention is to provide a kind of fault-tolerance processing method reading file, and prompting user error occurs in time, enables a system to tolerate the existence of various mistake making system more stable.
In order to achieve the above object, the embodiment of the present invention provides a kind of reading file fault-tolerance processing system on the one hand, specifically includes:
Opening file module, check current file, it has been found that be invalid file error, notice system mistake occurs, system process current mistake;
Reading file module, check the data currently read, it has been found that be invalid data errors, notice system mistake occurs, system process current mistake;
Decoding data module, it is judged that current file is the need of specific decoder, it has been found that be invalid decoder error, notice system mistake occurs, system process current mistake;
Close file module, whole flow process is closed and returns data.
The embodiment of the present invention additionally provides a kind of method reading file fault-tolerant processing, particularly as follows:
Open file, it may be judged whether for inactive file mistake;
Read data, it may be judged whether for invalid data errors;
Judge whether to need specific decoder, if needing, opening file decoding data and determining whether invalid decoder error.
The embodiment of the present invention reads file by unified flow process, and define a kind of file fault-tolerance processing system that reads to read various types of file, reading file fault-tolerance processing system is divided into by function opens file module, read data module, decoding data module and close file module four part, carries out false judgment respectively by each part mentioned above, it is judged that file error type includes: inactive file mistake to file in use, invalid data errors, invalid decoder error. With prompting and notify that system mistake occurs in time in finding wrong process user, system process current erroneous, enable users to find faster mistake, make system more stable, improve work efficiency, convenient use.
Accompanying drawing explanation
Technical scheme for the clearer explanation embodiment of the present invention, below the accompanying drawing used required during embodiment is described is briefly described, apparent, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
The one that Fig. 1 provides for the embodiment of the present invention reads file fault-tolerance processing system schematic block diagram;
A kind of fault-tolerance processing method flow chart reading file that Fig. 2 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention; technical scheme in the embodiment of the present invention is carried out clear, complete description; obviously described embodiment is only a part of embodiment of the present invention; it is not all, of embodiment; based on the embodiment in the present invention; the every other embodiment that those of ordinary skill in the art obtain under not paying creative work premise, broadly falls into the scope of protection of the invention.
The embodiment of the present invention provides a kind of reading file fault-tolerance processing system on the one hand, specifically includes:
Opening file module 11, for checking current file, it has been found that current file is invalid file error, notice system mistake occurs, system process current mistake;
Reading file module 12, check the data currently read, or occur mistake or the data that the data read are not required in reading process, it has been found that be invalid data errors, notice system mistake occurs, system process current mistake;
Decoding data module 13, judge that current file is the need of specific decoder, if system does not support that current data form decodes, interface does not support the decoding of current data format yet, or decoding process makes a mistake, being the discovery that invalid decoder error, notice system mistake occurs, system process current mistake;
Close file module 14, whole flow process is closed and returns data.
By the embodiment of the present invention reading file fault-tolerance processing system is divided into by function and opens file module, read data module, data decoder module and closedown four parts of file module can judge the different mistakes of files in different types respectively, correspondence can judge it is inactive file mistake, invalid data errors or invalid decoder error, and then notify that user and system carry out fault processing, allow users to find faster mistake, and ensure during data that system reads correct, make system more stable, improve efficiency, convenient use.
A kind of method that the embodiment of the present invention provides fault-tolerant processing reading file on the other hand, concretely comprises the following steps:
Step S201: use reading file fault-tolerance processing system 10 to open file.
Step S202: determine whether invalid file error. Judging that file error, this kind of mistake include file and be absent from mainly by the file module 11 of opening reading file fault-tolerance processing system 10, file can not be opened, and reads File header information failure, or the information of file is undesirable etc. If invalid file error then goes to step S208, then go to step S203 if not.
Step S203: use and read file fault-tolerance processing system reading data.
Step S204: the invalid data module 12 reading file fault-tolerance processing system 10 judges whether described data are invalid data errors. This kind of mistake typically occurs in interface and reads the stage of data, and including wrong in the institute reading procedure file IO generation, the data being currently needed for are absent from, or the data that the data read are not required to. If then going to step S208, then go to step S205 if not.
Step S205: judge whether to need specific decoder, if then going to step S206, then goes to step S209 if not.
Step S206: use reading file fault-tolerance processing system to open file decoding data.
Step S207: the invalid decoder module 13 reading file fault-tolerance processing system 10 judges whether described file decoding data are invalid decoder error. This kind of mistake typically occurs in the stage of interface data decoding, makes a mistake including in decoding process, supports if the data compression format read is not system, then is accomplished by interface and provides decoder. If then going to step S108, then go to step S209 if not.
Step S208: notice system makes a mistake, shows specific picture. System receives inactive file mistake, invalid data errors, can take different settling modes for different mistakes when invalid decoder error. When system discovery " inactive file mistake " occurs, information can be fed back to user time system receives this category information, and no longer be read out the operation of data, directly display one " inactive file " specific picture; When there being " invalid data errors " to occur, time system receives this kind of message, only just show the picture of an invalid data when to show current data; When the system of notice " invalid decoder error " occurs, decoder that user installation is correct will be pointed out time system receives this category information and show one " invalid decoder " specific picture.
Step S209: the picture of display current data.
The embodiment of the present invention reads file by unified flow process, and define a kind of file fault-tolerance processing system that reads to read various types of file, reading file fault-tolerance processing system is divided into by function opens file module, read data module, decoding data module and close file module four part, carries out false judgment respectively by each part mentioned above, it is judged that file error type includes: inactive file mistake to file in use, invalid data errors, invalid decoder error. With prompting and notify that system mistake occurs the process finding mistake in time user, processed current erroneous by system, enable users to find faster mistake, and correct when ensureing data that system reads make system more stable, improve work efficiency, convenient use.
Through the above description of the embodiments, those skilled in the art is it can be understood that can realize by software to the present invention, it is also possible to the mode adding necessary general hardware platform by software realizes. Based on such understanding, technical scheme can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) performs the method described in each embodiment of the present invention.
The above, being only a best specific embodiment of the present invention, but inventive feature is not limited thereto, any people being familiar with this technology is in field of the present invention, the change that can readily occur in or modification, all should be encompassed in claim of the invention below.

Claims (8)

1. a reading file fault-tolerance processing system with fault-tolerant processing function, it is characterised in that including:
Opening file module, check current file, it has been found that be invalid file error, notice system mistake occurs, system process current mistake;
Reading file module, check the data currently read, it has been found that be invalid data errors, notice system mistake occurs, system process current mistake;
Decoding data module, it is judged that current file is the need of specific decoder, it has been found that be invalid decoder error, notice system mistake occurs, system process current mistake;
Close file module, whole flow process is closed, return data.
2. the fault-tolerance processing method reading file, it is characterised in that comprise the following steps:
(1) file is opened, it may be judged whether for inactive file mistake, it has been found that be that inactive file mistake then feeds back to user described inactive file error message;
(2) data are read, it may be judged whether for invalid data errors, it has been found that be that invalid data errors then shows described invalid data errors information when needs show current data;
(3) decoding data, it may be judged whether for invalid decoder error, it has been found that be the invalid decoder error decoder of then pointing out that user installation is correct;
(4) data are returned.
3. the as claimed in claim 2 fault-tolerance processing method reading file, it is characterised in that described step (1) particularly as follows:
Described inactive file mistake includes file and is absent from, and file can not be opened, and reads File header information failure, or the information of file is undesirable.
4. the as claimed in claim 2 fault-tolerance processing method reading file, it is characterised in that described step (2) particularly as follows:
The institute that described invalid data errors includes reading procedure file IO generation is wrong, and the data being currently needed for are absent from, or the data that the data read are not required to.
5. the as claimed in claim 2 fault-tolerance processing method reading file, it is characterised in that step (3) particularly as follows:
Described invalid decoder error typically occurs in the stage of interface data decoding, is not that system is supported including the data compression format read, makes a mistake in decoding process.
6. the fault-tolerance processing method reading file as claimed in claim 2, it is characterized in that, system discovery " inactive file mistake " occurs, information can be fed back to user time described system receives this category information, no longer it is read out the operation of data, directly displays one " inactive file " specific picture.
7. the fault-tolerance processing method reading file as claimed in claim 2, it is characterised in that find when " invalid data errors " occurs, time system receives this kind of message, only just shows the picture of an invalid data when to show current data.
8. the fault-tolerance processing method reading file as claimed in claim 2, it is characterized in that, when notice system " invalid decoder error " occurs, decoder that user installation is correct will be pointed out time system receives this category information and show one " invalid decoder " specific picture.
CN201010617041.7A 2010-12-31 2010-12-31 A kind of fault-tolerance processing method reading file and system Expired - Fee Related CN102568521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010617041.7A CN102568521B (en) 2010-12-31 2010-12-31 A kind of fault-tolerance processing method reading file and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010617041.7A CN102568521B (en) 2010-12-31 2010-12-31 A kind of fault-tolerance processing method reading file and system

Publications (2)

Publication Number Publication Date
CN102568521A CN102568521A (en) 2012-07-11
CN102568521B true CN102568521B (en) 2016-06-15

Family

ID=46413755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010617041.7A Expired - Fee Related CN102568521B (en) 2010-12-31 2010-12-31 A kind of fault-tolerance processing method reading file and system

Country Status (1)

Country Link
CN (1) CN102568521B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3796615B1 (en) 2018-06-28 2023-06-07 Huawei Technologies Co., Ltd. Fault tolerance processing method, device, and server
CN111353763A (en) * 2020-03-30 2020-06-30 中国建设银行股份有限公司 Method, device, server and storage medium for processing data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1467635A (en) * 2002-06-21 2004-01-14 ӡ�����Ƽ��ɷ����޹�˾ Intelligent mp3 error checking method and mechanism
CN1592933A (en) * 2002-01-02 2005-03-09 国际商业机器公司 Method, system, and program for synchronization and resynchronization of a data stream

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7694208B2 (en) * 2005-12-20 2010-04-06 Quantum Corporation Error correction algorithm using interleaved parity check and Reed-Solomon code

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1592933A (en) * 2002-01-02 2005-03-09 国际商业机器公司 Method, system, and program for synchronization and resynchronization of a data stream
CN1467635A (en) * 2002-06-21 2004-01-14 ӡ�����Ƽ��ɷ����޹�˾ Intelligent mp3 error checking method and mechanism

Also Published As

Publication number Publication date
CN102568521A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN107273280B (en) Log processing method and device, electronic equipment and storage medium
CN107172454B (en) Video recommendation method, medium, device and computing equipment
CN103414949B (en) A kind of multimedia edit system based on intelligent television and method
CN101521782B (en) Method for fast-forward and fast-backward browsing video, system and multimedia equipment
US20170139813A1 (en) Method and device for checking influence of deleting cache file, and mobile terminal
US20090327295A1 (en) Maintenance of exo-file system metadata on removable storage device
US20100153347A1 (en) Method and system for preventing corruption of hard disk drive file system
KR20100054817A (en) Method and system for repairing damaged hard disk file systems
CN101719357A (en) HDCP off-line burning system for LCD (Liquid Crystal Display)
CN105512294A (en) Multi-media file update prompting method and device
CN102568521B (en) A kind of fault-tolerance processing method reading file and system
US8294548B2 (en) System and method for using sound to differentiate keypresses
KR100781512B1 (en) Apparatus and method for playing multimedia files selecting multimedia file which can be played in embedded device
US20170132240A1 (en) Method and system for file storage and access
US20180225289A1 (en) Audio/video file playback method and audio/video file playback apparatus
CN103024219A (en) IAD (Integrated Access Device) and voice processing method and system based on same
CN102957966B (en) A kind of method of player and the frame of video embedded time for player
CN101866346A (en) Method and terminal for updating terminal media library
CN103389927A (en) Data recovery method, device and system
CN110020378A (en) The content delivery method and device of video website
CN106897045B (en) Audio frequency playing method, device and computer equipment
CN103902645A (en) Method for controlling file name and electronic device thereof
CN204463134U (en) SATA hard disc Write-protect system
WO2020211371A1 (en) Image restoration method and apparatus, device and storage medium
CN107741992B (en) Network storage method and device for conference records, intelligent tablet and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160615

Termination date: 20161231