CN102117295B - Binding method of object file and correlative information thereof and correlative information searching method - Google Patents

Binding method of object file and correlative information thereof and correlative information searching method Download PDF

Info

Publication number
CN102117295B
CN102117295B CN200910247972.XA CN200910247972A CN102117295B CN 102117295 B CN102117295 B CN 102117295B CN 200910247972 A CN200910247972 A CN 200910247972A CN 102117295 B CN102117295 B CN 102117295B
Authority
CN
China
Prior art keywords
file
related information
destination
file destination
resource
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.)
Active
Application number
CN200910247972.XA
Other languages
Chinese (zh)
Other versions
CN102117295A (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.)
Shanghai Pateo Network Technology Service Co Ltd
Original Assignee
Shanghai Pateo Network Technology Service Co 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 Shanghai Pateo Network Technology Service Co Ltd filed Critical Shanghai Pateo Network Technology Service Co Ltd
Priority to CN200910247972.XA priority Critical patent/CN102117295B/en
Publication of CN102117295A publication Critical patent/CN102117295A/en
Application granted granted Critical
Publication of CN102117295B publication Critical patent/CN102117295B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a binding method of an object file and correlative information thereof and a correlative information searching method. The binding method comprises the steps of extracting the object file and the correlative information corresponding to the object file, and constructing an index file which is recorded with the correspondence between the object file and the correlative information. For the binding method, the correlative information corresponding to the object file and the object file are mutually independent and bound through the index file, thus reducing the complexity on modifying and reading, and the capacity of the stored information can be larger.

Description

The binding method of file destination and its related information and the lookup method of related information
Technical field
The present invention relates to the binding method of a kind of file destination and its related information and the lookup method of related information, relate in particular to the lookup method of a kind of audio file of MP3 format and the binding method of its related information and related information.
Background technology
Along with the development of multimedia information technology, due to MP3 (Moving Picture Experts GroupAudio Layer III, dynamic image expert compression standard audio frequency aspect 3) audio file of form there is outstanding tonequality and the storage space that takies less, therefore, the audio file of MP3 format and player thereof are applied widely.In playing MP3 audio file, user often wishes the related information of seeing that some are relevant to played file, as the impresario of song, composer, album name, issuing date and the lyrics etc., thereby this file is had more fully and is understood.
Prior art is generally by using ID3 (Identify an MP3) label to solve the problems referred to above.Described ID3 label is generally positioned at the beginning of mp3 file or some bytes at end, and wherein each field comprised respectively the information such as the singer, title, album name, age, style of this file.As shown in Figure 1, a mp3 file comprises ID3 label 101 and audio file content 102, the related information that wherein said ID3 label 101 has comprised this mp3 file, as singer, title etc., and in described audio file content 102, stored the audio-frequency information in described mp3 file, as song, music etc.In the time playing described mp3 file, player reads described ID3 label 101 simultaneously, the related information wherein comprising is read out and is processed, as being presented in real time in player.But, because the storage size that described ID3 label 101 takies is limited, only take 128 bytes as limited it in the ID3 tag standards of first version (ID3V1.0), can canned data limited.In addition, because described ID3 label 101 is embedded in mp3 file, therefore, if need content wherein of amendment, need to whole mp3 file be read and be resolved, and for the ID3 label of different editions, its position and content format in mp3 file is all different, need to use targetedly different analytic methods, increase the complicacy that reads and revise, be not easy to the management of the related information of file.
About mp3 file and ID3 label, more detailed descriptions can also application reference number be 03159437.9 Chinese invention patent.
Summary of the invention
The problem that the present invention solves is to provide the binding method of a kind of file destination and its related information and the lookup method of related information, reduces the amendment of related information and the complicacy reading.
For addressing the above problem, the invention provides the binding method of a kind of file destination and its related information, comprising:
Extract file destination and the related information corresponding with described file destination;
Set up index file, in described index file, record the corresponding relation of described file destination and described related information.
Optionally, the described index file of setting up comprises: add heading and an article or item in a contract, and the filename that described heading is described file destination, described an article or item in a contract is pointed to described related information.
Optionally, described related information comprises descriptor, and described descriptor is described the attribute of described file destination.
Optionally, described related information is recorded in resource file.
Optionally, also comprise described file destination, resource file and index file are integrated in identical file bag.
Optionally, described resource file is text file format or hypertext document form.
Optionally, the described index file of setting up comprises: add heading and an article or item in a contract, described heading comprises the filename of described file destination, and described an article or item in a contract comprises the filename of described resource file.
Optionally, the described index file of setting up comprises: add heading and an article or item in a contract, described heading comprises the filename of described file destination, and described an article or item in a contract comprises the attribute type of the related information in filename and the described resource file of described resource file.
Optionally, described file destination is audio file.
Optionally, described file destination is MP3 format.
Optionally, described index file is text file format or hypertext document form.
For addressing the above problem, the invention provides a kind of lookup method of related information of file destination, comprising:
Obtain index file based on described file destination, in described index file, record the corresponding relation of described file destination and related information;
Determine the related information corresponding with described file destination based on described index file;
Read described related information.
Optionally, described related information comprises descriptor, and described descriptor is described the attribute of described file destination.
Optionally, described related information is recorded in resource file.
Optionally, described index file comprises heading and an article or item in a contract, and described heading comprises the filename of described file destination, and described an article or item in a contract comprises the attribute type of the related information in filename and the described resource file of described resource file.
Optionally, also comprise: the attribute type that reads described related information.
Optionally, described resource file is text file format or hypertext document form.
Optionally, described file destination, resource file and index file are integrated in identical file bag.
Optionally, described file destination is audio file.
Optionally, described file destination is MP3 format.
Optionally, described index file is text file format or hypertext document form.
Compared with prior art, the present invention has the following advantages:
In technique scheme, record the corresponding relation of related information and file destination by index file, described related information can be stored in the independently resource file outside described file destination, therefore can easier revise and read.
In addition, because described resource file is the individual files that is independent of file destination, therefore, its storage space is not subject to the restriction of file destination itself, can store more jumbo related information.
Brief description of the drawings
The structural representation of the MP3 audio file of Fig. 1 prior art;
Fig. 2 is the schematic flow sheet of the file destination of the embodiment of the present invention and the binding method of its related information;
Fig. 3 is the file structure schematic diagram of the file destination of the embodiment of the present invention and the binding method of its related information;
Fig. 4 is the schematic flow sheet of the lookup method of the related information of the file destination of the embodiment of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can more be become apparent, below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.
Set forth detail in the following description so that fully understand the present invention.But the present invention can be different from alternate manner described here and implements with multiple, and those skilled in the art can do similar popularization without prejudice to intension of the present invention in the situation that.Therefore the present invention is not subject to the restriction of following public embodiment.
In prior art, often store related information associated with the file with the ID3 label of MP3 audio file inside, but because ID3 label is embedded in mp3 file inside, the complexity that reads and revise is higher.And because its storage space that can take is less, make the content of the related information that wherein can store less.
Technical scheme of the present invention is associated described related information and corresponding audio file by index file, for different audio files, determine corresponding related information based on described index file, and it is read and is revised, reduced the complicacy that reads and revise.Be independent of outside audio file owing to recording the resource file of described related information, therefore its storage space taking is not subject to the restriction of audio file itself, can store more jumbo related information.
Fig. 2 shows the schematic flow sheet of the file destination of the embodiment of the present invention and the binding method of its related information, comprising: execution step S101, extracts file destination and the related information corresponding with described file destination; Execution step S102, sets up index file, records the corresponding relation of described file destination and described related information in described index file.
Described in the present embodiment step S101, file destination is audio file, is preferably the audio file of MP3 format.Described in step S101, related information comprises descriptor, described descriptor is described the attribute of described file destination, as comprise title, singer, age, album name, the lyrics of the audio file of MP3 format etc., it is the content that leaves the related information in ID3 label in prior art in, in addition, related information in the present embodiment can also comprise user-defined information, as user to as described in the comment, scoring, recording cover picture etc. of MP3 audio file.
Index file described in the present embodiment step S102 is for storing the corresponding relation of described file destination and related information.Related information described in the present embodiment is recorded in resource file, and described index file is corresponding with resource file by described file destination, thereby can from corresponding resource file, find the related information corresponding with described file destination.Described index file is text file format or hypertext document form, in the present embodiment, be preferably text file format, text file format is the file layout of the storage text message commonly used, can, by several operation systems and file system support and identification, therefore have higher compatibility.In addition, text file format relatively simple for structure, its analytic method is simpler, is easy to the later stage it is modified and read.
Described index file comprises heading and an article or item in a contract, and the described index file of setting up comprises interpolation heading and an article or item in a contract, the filename that described heading is described file destination, the filename that described an article or item in a contract is described resource file.Described heading is corresponding with an article or item in a contract, described heading is the filename of file destination, the filename that its corresponding an article or item in a contract is corresponding one or more resource files, described one or more resource files have comprised with the file destination of heading sensing thinks corresponding related information.By such scheme, described index file associates file destination and corresponding resource file, is convenient to access and reads.
An article or item in a contract in described index file is except comprising the filename of resource file, can also comprise the attribute type of the related information recording in described resource file, as title, age, the lyrics etc., for example in one embodiment, if the lyrics content that the related information recording in described resource file is file destination, the an article or item in a contract in index file, except comprising the filename of described resource file, also comprises its attribute type, i.e. " lyrics ".
Resource file described in the present embodiment is used for storing described related information, and resource file corresponding and same file destination can be one or more.For in described related information for describing the descriptor of different attribute, as title, singer, age etc., it is deposited in respectively in different resource files, and by index file by described different resource file corresponding to same file destination.
The file layout of described resource file is text file format or hypertext document form, is preferably text file format in the present embodiment, and its advantage and above-mentioned index file are similar, repeat no more here.Compared with text file format, hypertext document form can insert pictures and multimedia messages, the front cover picture of for example disc or for self-defining picture.Because described resource file is the individual files being independent of outside file destination, its form is relatively simple, therefore can easier modify and read, and its space taking is not subject to the restriction of file destination, can preserve more related information.
File destination in Fig. 2 and the binding method of its related information are realized by software in the present embodiment, described step S101 is specially the filename that reads in described file destination, and read in resource file and obtain related information wherein, described step S102 is specially and sets up a new index file or open an index file having existed, and add therein heading and an article or item in a contract, described heading is the filename of described file destination, and described an article or item in a contract is the filename of the resource file that comprises described associated with.
Fig. 3 shows the file structure schematic diagram of the file destination of the embodiment of the present invention and the binding method of its related information.As shown in Figure 3, comprise file destination 201, resource file 202, resource file 203, resource file 204 and index file 205, wherein said resource file 202,203,204 has comprised the related information corresponding with file destination 201, in one embodiment, in described resource file 202,203 and 204, record different descriptors, be respectively title, singer, age.Described index file 205 has comprised the corresponding relation of described file destination 201 and resource file 202,203,204, be that heading in described index file 205 is the filename of described file destination 201, and corresponding an article or item in a contract is the filename of described resource file 204,205,206.
In the present embodiment, described file destination 201, resource file 204,205,206 and index file 207 are integrated in identical file bag, are convenient to management.For example, while needing file destination 201 to add extra related information, described extra related information can be increased to any one in corresponding resource file 202,203,204, and do not revise alternative document, also can in identical file bag, set up again in addition another resource file, described extra related information is stored in described another resource file, and revise described index file 205, in an article or item in a contract corresponding to the filename of described file destination 201, increase the filename of described another resource file, set up corresponding relation.
It should be noted that, in file structure schematic diagram shown in Fig. 3, only comprise single file destination 201, in fact, according to the needs of practical application, multiple file destinations and the resource file corresponding with it can be integrated in identical file bag, and record the corresponding relation of each file destination and corresponding resource file by index file.In this case, the heading of described resource file comprises the information such as deposit position and filename of each file destination, comprises filename, attribute type and the deposit position of the resource file corresponding with this file destination in corresponding an article or item in a contract.
Fig. 4 shows the schematic flow sheet of the lookup method of the related information of the file destination of the embodiment of the present invention, comprise: execution step S201, obtain index file based on described file destination, in described index file, record the corresponding relation of described file destination and related information; Execution step S202, determines and the related information of described file destination based on described index file; Execution step S203, reads described related information.
The file destination that in Fig. 4, each step relates to and index file are corresponding with the file destination and the index file that relate in file destination in Fig. 2 and its related information binding method, and its file layout and content just repeat no more here.Similarly, described related information is also recorded in resource file.
In conjunction with Fig. 3 and Fig. 4, to read file destination 201 and to search its corresponding related information as example, as play the audio file of a certain mp3 file form, in reading file destination 201, read described index file 201, and determine the resource file corresponding with described file destination 201, in Fig. 3, be resource file 204.Afterwards, read described resource file 204, obtain comprising related information, for example obtain the descriptors such as the singer corresponding with the audio file of MP3 format, special edition, the lyrics, and it processed, show described related information playing in music.If also comprise the attribute type of related information in an article or item in a contract of described index file, it is read and is processed simultaneously.In one embodiment, if the related information recording in a resource file is singer (as " Li Jia "), its corresponding attribute type is " singer ", and player shows " singer: Li Jia " accordingly.
During the lookup method of the related information of the file destination shown in Fig. 4 is concrete in the present embodiment, realize by software, described step S201 is specially the filename according to described file destination, obtains the filename of index file in corresponding file bag; Step S202 is specially and opens described index file, and reads the wherein corresponding relation of heading and an article or item in a contract, determines the filename of the resource file corresponding with described file destination; Step S203 is specially and opens described resource file, reads related information wherein.
Because the ID3 label of prior art is embedded in file destination, therefore reading related information need to read and resolve whole file destination, memory cost is larger, and the technical program is because resource file and file destination are mutually independently, therefore can only read the resource file corresponding with file destination, and needn't read described file destination itself, thereby reduce memory consumption.
Above-described embodiment is that audio file taking MP3 format is as example, in fact, related information storage and the read method of the technical program can be used in alternative document form, as video file, data file etc., by user add as in the related information saving such as version information, comment, remarks and resource file independently, and carry out association by index file.
In sum, the related information of technique scheme file destination is stored in independently in resource file, and by index file, described resource file is associated with corresponding file destination, thereby has reduced amendment and read the complexity of described related information.
In addition, because described resource file is the individual files that is independent of file destination, therefore it takes up room and not limited by file destination, can store more jumbo related information.
Although the present invention with preferred embodiment openly as above; but it is not for limiting the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; can utilize method and the technology contents of above-mentioned announcement to make possible variation and amendment to technical solution of the present invention; therefore; every content that does not depart from technical solution of the present invention; any simple modification, equivalent variations and the modification above embodiment done according to technical spirit of the present invention, all belong to the protection domain of technical solution of the present invention.

Claims (7)

1. a binding method for file destination and its related information, is characterized in that, comprising:
Extract file destination and the related information corresponding with described file destination, described file destination is the file of MP3 format, described mp3 file comprises ID3 label and audio file content, the related information that described ID3 label comprises this mp3 file, the storage size that can store related information in the ID3 label of described file destination is limited, described related information comprises descriptor, and described descriptor is described the attribute of described file destination;
Set up index file for described file destination, in described index file, record the corresponding relation of described file destination and described related information, for described file destination is corresponding with related information; Described related information is recorded in resource file, the described index file of setting up comprises: add heading and an article or item in a contract, described heading comprises the filename of described file destination, and described an article or item in a contract comprises the attribute type of the related information in filename and the described resource file of described resource file;
Described file destination, resource file and index file are integrated in identical file bag, for in described related information for describing the descriptor of different attribute, it is deposited in respectively in different resource files, and by index file by described different resource file corresponding to same file destination.
2. the binding method of file destination according to claim 1 and its related information, is characterized in that, described resource file is text file format or hypertext document form.
3. the binding method of file destination according to claim 1 and its related information, is characterized in that, described index file is text file format or hypertext document form.
4. a lookup method for the related information of file destination, is characterized in that, comprising:
Be retrieved as based on described file destination the index file that described file destination is set up, described file destination is the file of MP3 format, described mp3 file comprises ID3 label and audio file content, the related information that described ID3 label comprises this mp3 file, the storage size that can store related information in the ID3 label of described file destination is limited, described related information comprises descriptor, described descriptor is described the attribute of described file destination, in described index file, record the corresponding relation of described file destination and related information, this index file is for corresponding with related information by described file destination, described related information is recorded in resource file, described index file comprises heading and an article or item in a contract, described heading comprises the filename of described file destination, described an article or item in a contract comprises the attribute type of the related information in filename and the described resource file of described resource file, described file destination, resource file and index file are integrated in identical file bag, for in described related information for describing the descriptor of different attribute, it is deposited in respectively in different resource files, and by index file by described different resource file corresponding to same file destination,
Determine the related information corresponding with described file destination based on described index file;
Read described related information.
5. the lookup method of the related information of file destination according to claim 4, is characterized in that, also comprises: the attribute type that reads described related information.
6. the lookup method of the related information of file destination according to claim 4, is characterized in that, described resource file is text file format or hypertext document form.
7. the lookup method of the related information of file destination according to claim 4, is characterized in that, described index file is text file format or hypertext document form.
CN200910247972.XA 2009-12-31 2009-12-31 Binding method of object file and correlative information thereof and correlative information searching method Active CN102117295B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910247972.XA CN102117295B (en) 2009-12-31 2009-12-31 Binding method of object file and correlative information thereof and correlative information searching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910247972.XA CN102117295B (en) 2009-12-31 2009-12-31 Binding method of object file and correlative information thereof and correlative information searching method

Publications (2)

Publication Number Publication Date
CN102117295A CN102117295A (en) 2011-07-06
CN102117295B true CN102117295B (en) 2014-09-10

Family

ID=44216069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910247972.XA Active CN102117295B (en) 2009-12-31 2009-12-31 Binding method of object file and correlative information thereof and correlative information searching method

Country Status (1)

Country Link
CN (1) CN102117295B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104602124A (en) * 2015-01-21 2015-05-06 深圳市金锐显数码科技有限公司 Multi-screen driving method and system of LCD TV and driving main board module
CN108257625B (en) * 2016-12-29 2020-09-08 北京酷我科技有限公司 Audio file playing method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1554095A (en) * 2001-09-10 2004-12-08 汤姆森特许公司 Method and apparatus for creating an indexed playlist in a digital audio data player
CN1601459A (en) * 2003-09-22 2005-03-30 英华达股份有限公司 Data synchronous method definition data sychronous format method and memory medium
CN1753082A (en) * 2004-09-22 2006-03-29 雅马哈株式会社 Electronic music apparatus and music-related data display method
CN1822175A (en) * 2004-12-02 2006-08-23 索尼株式会社 Reproduction apparatus, reproduction method, reproduction program, record medium, and data structure
CN101398844A (en) * 2008-10-28 2009-04-01 深圳华为通信技术有限公司 Resource file searching method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1554095A (en) * 2001-09-10 2004-12-08 汤姆森特许公司 Method and apparatus for creating an indexed playlist in a digital audio data player
CN1601459A (en) * 2003-09-22 2005-03-30 英华达股份有限公司 Data synchronous method definition data sychronous format method and memory medium
CN1753082A (en) * 2004-09-22 2006-03-29 雅马哈株式会社 Electronic music apparatus and music-related data display method
CN1822175A (en) * 2004-12-02 2006-08-23 索尼株式会社 Reproduction apparatus, reproduction method, reproduction program, record medium, and data structure
CN101398844A (en) * 2008-10-28 2009-04-01 深圳华为通信技术有限公司 Resource file searching method and mobile terminal

Also Published As

Publication number Publication date
CN102117295A (en) 2011-07-06

Similar Documents

Publication Publication Date Title
CN101256809B (en) Storage medium storing audio-visual data including metadata, reproducing apparatus, and method of searching for audio-visual data using the metadata
JP5214969B2 (en) Information recording medium recording metadata supporting multi-language, and metadata processing method and system
US7003533B2 (en) File management method, content recording/playback apparatus and content recording program
US20100031367A1 (en) Single File Rich Media Package Portable Across Multiple Devices
CN1993755B (en) Storage medium including metadata and reproduction apparatus and method therefor
RU2007130084A (en) METHOD AND DEVICE FOR PLAYING DATA FROM RECORDING MEDIA USING A LOCAL STORING DEVICE
JP5019836B2 (en) Electronic device having data reproduction function
CN101325078B (en) Information processing apparatus, information processing method and computer program
CN101147378A (en) Network-based data collection, including local data attributes, enabling media management without requiring a network connection
JP2005502977A5 (en)
CN1114167C (en) Flexible management of multiple file system
JP2012510101A (en) Flash-based memory with flash conversion layer and file storage method
CN104221089A (en) Information processing device and information processing method
CN102117295B (en) Binding method of object file and correlative information thereof and correlative information searching method
CN101441884A (en) Information storage medium for storing metadata and systems and methods of processing metadata
CN100585597C (en) File organization method
CN102542025A (en) Music recording method, device and system
US7676504B2 (en) Device and method for processing content and an information file related to the content
CN102117647B (en) Playing method and player of media pack
CN101127227A (en) Method of presenting auxiliary data for an interactive recording medium
US7814291B2 (en) Flexible formatting for universal storage device
CN1602059A (en) Audio file selective playing method having catalogue structure
JP2004356751A (en) Information processing apparatus, information processing method, and recording medium
KR20080069871A (en) Method for synchronizing information of folder in pc and that of folder in portable device
CN100583271C (en) Information storage medium containing enhanced AV (ENAV) buffer configuration information, reproducing method thereof and method for managing the buffer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
ASS Succession or assignment of patent right

Owner name: SHANGHAI PATEO YUEZHEN NETWORK TECHNOLOGY SERVICE

Free format text: FORMER OWNER: SHANGHAI PATEO YUEZHEN ELECTRONIC EQUIPMENT MANUFACTURING CO., LTD.

Effective date: 20110926

Free format text: FORMER OWNER: SHANGHAI PATEO YUEZHEN NETWORK TECHNOLOGY SERVICE CO., LTD.

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20110926

Address after: 200233 Shanghai City, Zhongshan Road No. 1800 Mega global building 6 floor F2 block

Applicant after: Shanghai Botai Yuezhen Network Technology Service Co., Ltd.

Address before: 200233, building 2, building 1800, Zhongshan West Road, Shanghai, D1

Applicant before: Shanghai Botai Yuezhen Electrical Equipment Manufacturing Co., Ltd.

Co-applicant before: Shanghai Botai Yuezhen Network Technology Service Co., Ltd.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant