CN103198101A - Method and equipment for scanning media file - Google Patents

Method and equipment for scanning media file Download PDF

Info

Publication number
CN103198101A
CN103198101A CN 201310082791 CN201310082791A CN103198101A CN 103198101 A CN103198101 A CN 103198101A CN 201310082791 CN201310082791 CN 201310082791 CN 201310082791 A CN201310082791 A CN 201310082791A CN 103198101 A CN103198101 A CN 103198101A
Authority
CN
China
Prior art keywords
blue light
value
former dish
folder
pointer
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.)
Withdrawn
Application number
CN 201310082791
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 201310082791 priority Critical patent/CN103198101A/en
Publication of CN103198101A publication Critical patent/CN103198101A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention discloses a method and equipment for scanning media files. According to the embodiment, the method comprises the following steps: scanning folders and files of an external storage media medium step by step according to the preset sequence by receiving the inserting notification of the external storage media medium; if confirming that the name of one target folder corresponds to the preset name, further confirming whether a parent folder of the target folder is a blue-ray primary disc or not; and if the parent folder of the target folder is the blue-ray primary disc, stopping the scanning sequence aiming at the files in the target folder and recording the parent folder of the target folder as a blue-ray file. The blue-ray primary disc and a blue-ray disc have the same special directory structure and play mode, namely files of the target folder do not need to be scanned when the parent folder of the target folder is the blue-ray primary disc, so that the scanning time of the external storage media medium is reduced, the scanning speed is increased, the system application resources occupied by scanning of the external storage media medium are further reduced, and the scanning efficiency of blue-ray medial files is improved.

Description

A kind of media file scan method and equipment
Technical field
The application relates to areas of information technology, is specifically related to a kind of media file scan method and equipment.
Background technology
(Blu-ray Disc BD) is one of disk format of future generation after DVD to Blu-ray Disc, and it adopts the blue laser beams of wavelength 405nm to carry out read-write operation, to store the data of high-quality audio-visual and high power capacity.Because special file bibliographic structure and the broadcast mode of BD, make scanning system scan after the catalogue of called after BDMV file correspondence in the dish bag, do not need to obtain the sub-directory under the catalogue of BDMV file correspondence, and then need not scan the media file of sub-directory correspondence.And the former dish of blue light is virtual storage medium, according to the external memory media medium, as portable hard drive, be used for storage to the copy of the master data of the BD of formal publication, and must not carry out any additions and deletions or change to master data and structure thereof, the master data comprise the positive file of m2ts form, have comprised contents such as video, many tracks, PGS captions, and its capacity is usually more than 15GB.Wherein, the folder content structure of the former dish of blue light is according to the folder content organization definition of Blu-ray Disc association criterion.
For the jumbo portable hard drive that has comprised the former dish of some blue lights, when existing scanning system scanned this portable hard drive, the media files such as all videos, audio frequency or picture that contain in the meeting autoscan portable hard drive had taken a lot of time scan files.And, can not guarantee after the scanning and can play the media file of the former dish of blue light with the form that blue light is play, and then influence the performance of scanning system, reduced the startup speed of playing media file.
Summary of the invention
The embodiment of the present application provides a kind of media file scan method and equipment, has solved the low and inefficient problem of speed of the former dish of scanning blue light of existing media file scan method.
First aspect, the embodiment of the present application provide a kind of media file scan method, comprising:
Receive the insertion notice of external memory media medium, according to presetting order file and file in the described external memory media medium are scanned step by step;
Whether the title of confirming a destination folder is corresponding with default title;
If confirm that the title of described destination folder is corresponding with default title, confirm then whether the parent folder of described destination folder is the former dish of blue light;
If the parent folder of described destination folder is the former dish of blue light; Then stop the scanning sequence at the file in the described destination folder, and the parent folder of described destination folder is recorded as the blue light file.
In conjunction with first aspect, in first kind of possible implementation, described method also comprises:
Inquire about the former dish of described blue light, obtain the directory path with the blue light media file of blue light file identification sign;
Store the first information of the directory path that comprises described blue light file identification and described blue light media file to database.
In conjunction with first kind of first aspect or first aspect possible implementation, in second kind of possible implementation, whether the parent folder of the described destination folder of described affirmation is the former dish of blue light, comprising:
Obtain the path of the parent folder of described destination folder;
Obtain the value of first pointer according to the path of the parent folder of described destination folder, described first pointed, first structure, described first structure is used for the configuration information of the former dish of definition blue light, the configuration information of the former dish of described blue light comprises the summary info of the former dish of described blue light, and the summary info of the former dish of described blue light is the member variable of described first structure;
Whether the value of judging described first pointer is empty;
If the value of described first pointer is not empty, then obtain the value of second pointer according to the value of described first pointer, wherein, described second pointed, second structure, described second structure is used for the summary info of the former dish of the described blue light of definition, described summary info comprises the detecting sign of the former dish of described blue light, and the detecting of the former dish of described blue light is masked as the member variable of described second structure, is used for label detection to the former dish of described blue light;
Whether the value of judging described second pointer is empty;
If the value of described second pointer be empty, then according to described second structure, obtaining in described second structure is the member variable of the detecting sign of the former dish of described blue light, with the value of the detecting sign that obtains the former dish of described blue light;
Whether the value of judging the detecting sign of the former dish of described blue light is zero;
If the value of the detecting sign of the former dish of described blue light is non-vanishing, determine that then the parent folder of described destination folder is the former dish of blue light.
In conjunction with second kind of first aspect possible implementation, in the third possible implementation, the path of described parent folder according to described destination folder obtains the value of first pointer, comprising:
Call first function that defines in the storehouse of increasing income, described first function is used for obtaining the value of first pointer;
Obtain the path of parent folder of described destination folder as the shape of described first function ginseng, to obtain the rreturn value of described first function, with the value as first pointer.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation, described value according to described first pointer is obtained the value of second pointer, comprising:
Call second function that defines in the storehouse of increasing income, described second function is used for obtaining the value of second pointer;
Import the value of described first pointer as the shape ginseng of described second function, to obtain the rreturn value of described second function, as the value of second pointer.
Second aspect, present embodiment provide a kind of media file scanning device, comprising:
Receiving element, the insertion that is used for reception external memory media medium is notified, and according to presetting order file and file in the described external memory media medium is scanned step by step;
Judging unit is used for confirming whether the title of a destination folder is corresponding with default title;
Described judging unit also for the title of confirming described destination folder according to the described judging unit notice corresponding with default title, confirms whether the parent folder of described destination folder is the former dish of blue light;
Processing unit is used for confirming that according to described judging unit the parent folder of described destination folder is the notice of the former dish of blue light, stops the scanning sequence at the file in the described destination folder, and the parent folder of described destination folder is recorded as the blue light file.
In conjunction with second aspect, in first kind of possible implementation, described media file scanning device also comprises:
Acquiring unit is used for the former dish of the described blue light of inquiry, obtains the directory path with the blue light media file of blue light file identification sign;
Described acquiring unit also is used for storing the first information of the directory path that comprises described blue light file identification and described blue light media file to database.
In conjunction with first kind of second aspect or second aspect possible implementation, in second kind of possible implementation, described judging unit, also be used for obtaining the path of the parent folder of described destination folder, obtain the value of first pointer according to the path of the parent folder of described file, described first pointed, first structure, described first structure is used for the configuration information of the former dish of definition blue light, the configuration information of the former dish of described blue light comprises the summary info of the former dish of described blue light, and the summary info of the former dish of described blue light is the member variable of described first structure;
Described judging unit is used for also judging whether the value of described first pointer is empty, if the value of described first pointer is not empty, then also be used for obtaining according to the value of described first pointer value of second pointer, wherein, described second pointed, second structure, described second structure is used for the summary info of the former dish of the described blue light of definition, described summary info comprises the detecting sign of the former dish of described blue light, the detecting of the former dish of described blue light is masked as the member variable of described second structure, is used for label detection to the former dish of described blue light;
Described judging unit is used for also judging whether the value of described second pointer is empty; If the value of described second pointer is not empty, then be used for according to described second structure, obtaining in described second structure is the member variable of the detecting sign of the former dish of described blue light, to obtain the value of the former dish detecting of described blue light sign; And whether the value that is used for judging the detecting sign of the former dish of described blue light is zero; If the value of the detecting sign of the former dish of described blue light is non-vanishing, determine that then the parent folder of described destination folder is the former dish of blue light.
In conjunction with second kind of second aspect possible implementation, in the third possible implementation, described judging unit also is used for calling first function that the storehouse of increasing income defines, and described first function is used for obtaining the value of first pointer; And the path of parent folder that also is used for obtaining described destination folder is as the shape ginseng of described first function, to obtain the rreturn value of described first function, with the value as first pointer.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation, described judging unit also is used for calling second function that the storehouse of increasing income defines, and described second function is used for obtaining the value of second pointer; And be used for obtaining the value of described first pointer as the shape ginseng of described second function, to obtain the rreturn value of described second function, as the value of second pointer.
Present embodiment is by receiving the insertion notice of external memory media medium, according to presetting order file and file in the described external memory media medium are scanned step by step, if confirm that the title of a destination folder is corresponding with default title, whether the parent folder of then further confirming described destination folder is the former dish of blue light, if the parent folder of described destination folder is the former dish of blue light, then stop the scanning sequence at the file in the described destination folder, and the parent folder of described destination folder is recorded as the blue light file.Because the former dish of blue light is identical with special directory structure and the broadcast mode of Blu-ray Disc, namely when the parent folder of confirming destination folder is the former dish of blue light, then need not to scan the file in the destination folder, reduce the time of scanning external memory media medium, promoted sweep speed, further reduced the shared system applies resource of scanning external memory media medium, promoted the scan performance of media file, improve the startup speed of playing the blue light media file, further promoted the usable range of the former dish of blue light.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiment of the application, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the process flow diagram of a kind of media file scan method of providing of the embodiment of the present application;
Fig. 2 is the structural drawing of a kind of media file scanning device of providing of the embodiment of the present application;
Fig. 3 is the structural drawing of the another kind of media file scanning device that provides of the embodiment of the present application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment only is the application's part embodiment, rather than whole embodiment.Based on the embodiment among the application, those of ordinary skills are not making the every other embodiment that obtains under the creative work prerequisite, all belong to the scope of the application's protection.
Below by specific embodiment, be described in detail respectively.
The media file scan method that present embodiment provides not only can be applied in the general operation system, also can be applied to Android (Android) operating system of present up-to-date exploitation.Because during the blue light playback of media files, sharpness and resolution are very high, thereby Blu-ray Disc and the former dish of blue light have become mainstream media's medium.Present embodiment is that example is described to use the media file scan method in Android operating system.When needing to play the blue light media file, the external memory media medium that will comprise the former dish of several blue lights, as portable hard drive, be connected with the corresponding interface of scanning device by wired connection interface or wireless connections interface, and then this portable hard drive of trigger sweep device scan.
Particularly, the scan method of media file can be referring to Fig. 1, Fig. 1 is the process flow diagram of a kind of media file scan method of providing of the embodiment of the present application, and wherein, the media file scan method that present embodiment provides is that executive agent is explained with one scan equipment.As shown in Figure 1, the scan method of the media file that present embodiment provides comprises the steps:
The insertion notice of S110, reception external memory media medium scans the file in the outside storage media and file step by step according to presetting order.
Whether the title of S120, affirmation one destination folder is corresponding with default title.If confirm that the title of described destination folder is not corresponding with default title, then the scan mode with systemic presupposition scans this destination folder, and the scan mode of systemic presupposition is for scanning step by step the file in the outside storage media and file according to presetting order.If confirm that the title of destination folder is corresponding with default title, then execution in step S130.
Wherein, the catalogue of the former dish of blue light of standard comprises the parent folder of BDMV catalogue, BDMV catalogue, and comprise each catalogue under the BDMV catalogue, then can be with sign " BDMV " as default title, whether the title of confirming destination folder is corresponding with default title BDMV, if corresponding, continue execution in step S130.Comprise index file, movie object file, playlist folder, clip information file folder, stream folder, auxiliary data file folder and backup file folder in the BDMV catalogue corresponding file folder.
Wherein, the index file that comprises under the BDMV catalogue, be used for preserving the relevant information of explanation BDMV catalogue institute content, information, playlist folder that movie object file is used for preserving one or more movie objects are used for preserving the database file of movie tabulation, the clip information file folder is used for preserving the database file of fragment, stream folder is used for preserving the audio/video flow file, the auxiliary data file folder is used for preserving audio files and font file, and the backup file folder is used for preserving above-mentioned All Files and file.
Whether the parent folder of S130, affirmation destination folder is the former dish of blue light.If confirm that the parent folder of destination folder is not the former dish of blue light, then the scan mode according to systemic presupposition scans this destination folder.If the parent folder of destination folder is the former dish of blue light, then execution in step S140.
In one embodiment, confirm whether the parent folder of destination folder is the former dish of blue light, may further comprise the steps:
A, the path that obtains the parent folder of destination folder.
B, obtain the value of first pointer according to the path of the parent folder of destination folder, first pointed, first structure, first structure is used for the configuration information of the former dish of definition blue light, the configuration information of the former dish of blue light comprises the summary info of the former dish of blue light, and the summary info of the former dish of blue light is the member variable of first structure.The value of first pointer is the address of first structure.
C, judge that whether the value of first pointer is empty, if the value of first pointer is empty, the parent folder that this destination folder then is described is not the former dish of blue light, then the scan mode with systemic presupposition scans this destination folder, namely according to presetting order the file in this destination folder and the external memory media medium is scanned step by step.
D, if the value of first pointer be empty, then obtain the value of second pointer according to the value of first pointer, wherein, second pointed, second structure, second structure is used for defining the summary info of the former dish of blue light, summary info comprises the detecting sign of the former dish of blue light.Wherein, the detecting of the former dish of blue light is masked as the member variable of second structure, is used for label detection to the former dish of blue light.
E, judge that whether the value of second pointer is empty, if the value of second pointer is empty, the parent folder that this destination folder then is described is not the former dish of blue light, then the scan mode with systemic presupposition scans this destination folder, namely according to presetting order the file in this destination folder and the external memory media medium is scanned step by step.Wherein, the value of second pointer is the address of second structure.
F, if the value of second pointer be empty, then according to second structure, obtain in second structure member variable for the former dish detecting of blue light sign, to obtain the value that the former dish detecting of blue light indicates;
G, judge that whether the value of the detecting sign of the former dish of blue light is zero;
If the value of the detecting sign of the former dish of blue light is zero, the parent folder that this destination folder then is described is not the former dish of blue light, then the scan mode with systemic presupposition scans this destination folder, namely according to presetting order the file in this destination folder and the external memory media medium is scanned step by step.
H, if the value of the detecting sign of the former dish of blue light is non-vanishing, determine that then the parent folder of destination folder is the former dish of blue light.
Among the embodiment, obtain the value of first pointer according to the path of the parent folder of destination folder, comprise the steps:
1) call first function that defines in the storehouse of increasing income, first function is used for obtaining the value of first pointer.
2) obtain the path of parent folder of destination folder as the shape of first function ginseng, to obtain the rreturn value of first function, with the value as first pointer.The concrete bd_open function that can call in the storehouse of increasing income.
Specifically, call first structure that first function declaration can define the configuration information of the former dish of blue light, fill this first structure with the path according to the parent folder of destination folder when the scanning external memory media medium, thereby can call first function and obtain rreturn value according to the path of the parent folder of destination folder
This rreturn value is the address of first structure, gives first pointer with the address assignment of this first structure, to obtain the value of first pointer.
Among the embodiment, obtain the value of second pointer according to the value of first pointer, comprise the steps:
A) call second function that defines in the storehouse of increasing income, second function is used for obtaining the value of second pointer, and concrete can call the bd_get_disc_info function that defines in the storehouse of increasing income.
B) value of input first pointer is as the shape ginseng of second function, to obtain the rreturn value of second function, as the value of second pointer.
Specifically, call second structure that second function declaration can define the summary info of the former dish of blue light according to the value of first pointer, can fill this second structure according to the value of first pointer then.Thereby can call second function and obtain the rreturn value of second function according to the value of first pointer, the rreturn value of second function is the address of second structure, gives second pointer with the address assignment of this second structure, as the value of second pointer.
S140, stop the scanning sequence at the file in the destination folder, and the parent folder of destination folder is recorded as the blue light file.In step S140, when stopping the scanning sequence at the file in the destination folder, do not stop the scanning to the parent folder of this destination folder, namely scan the parent folder of this destination folder with the scan mode of systemic presupposition, the scan mode of systemic presupposition is for scanning step by step the file that parent folder and the external memory media medium of this destination folder comprises according to presetting order.
When the external memory media medium comprises the former dish of blue light, the media file scan method that present embodiment provides can be judged the external memory media medium and whether comprise the former dish of blue light, if confirm as the former dish of blue light, then do not need the file in the former dish of blue light is scanned, with respect to existing scan mode according to systemic presupposition, namely according to presetting order the file in the outside storage media and file are scanned step by step, not only improved the sweep speed of the media file of scanning, save a large amount of system applies resources simultaneously, and then promoted the overall performance of scanning system.
Among the embodiment, after step S140, the media file scan method is further comprising the steps of:
The former dish of inquiry blue light obtains the directory path with the blue light media file of blue light file identification sign;
Store the first information of the directory path that comprises blue light file identification and blue light media file to database.
Wherein, video/bd can be identified this blue light media file as the blue light file identification.Concrete can blue light file identification video/bd as the extension name of directory path, file type with this extension name sign blue light media file, namely identify the blue light media file, according to the blue light media file of blue light file identification video/bd as the extension name of directory path sign, by the inquiry screening, obtain the directory path of this blue light media file, so that system storage related the first information of directory path of blue light file identification and blue light media file to database, the system of being convenient to generates the tabulation of the directory path that comprises the blue light media file according to the first information of storing in the database, make things convenient for the user according to this blue light of program request user's interest rapidly media file of tabulating, the further perfect application performance of scanning.
Be among the embodiment at another, after step S140, can store the directory path of the former dish of blue light that comprises this blue light media file to database, the concrete type according to player is determined, if only need the directory path of the former dish of blue light, just can play the blue light media file, then only need the directory path of the former dish of storage blue light to database, open the former dish of blue light so that generate the tabulation back easily for the user, further open the blue light media file rapidly.
To sum up statement, the media file scan method that present embodiment provides is by receiving the insertion notice of external memory media medium, according to presetting order the file in the outside storage media and file are scanned step by step, if confirm that the title of a destination folder is corresponding with default title, whether the parent folder of then further confirming destination folder is the former dish of blue light, if the parent folder of destination folder is the former dish of blue light, then stop the scanning sequence at the file in the destination folder, and the parent folder of destination folder is recorded as the blue light file.Because the former dish of blue light is identical with special directory structure and the broadcast mode of Blu-ray Disc, namely when the parent folder of confirming destination folder is the former dish of blue light, then need not to scan the file in the destination folder, reduce the time of scanning external memory media medium, promoted sweep speed, further reduced the shared system applies resource of scanning external memory media medium, promoted the scan performance of media file, improve the startup speed of playing the blue light media file, further promoted the usable range of the former dish of blue light.
See also Fig. 2, Fig. 2 is the structural drawing of a kind of media file scanning device of providing of the embodiment of the present application, and the media file scan method that the media file scanning device that present embodiment provides is based on above-described embodiment to be provided realizes.As shown in Figure 2, the media file scanning device that provides of present embodiment comprises: receiving element 21, judging unit 22 and processing unit 23.
Wherein, the annexation of each unit is as follows:
Receiving element 21, the insertion that is used for reception external memory media medium is notified, and according to presetting order the file in the outside storage media and file is scanned step by step.Be about to comprise the external memory media medium of the former dish of several blue lights, as portable hard drive, be connected with the corresponding interface of scanning device by wired connection interface or wireless connections interface, and then this portable hard drive of trigger sweep device scan.
Judging unit 22 is used for confirming whether the title of a destination folder is corresponding with default title.If confirm that the title of destination folder is not corresponding with default title, then the scan mode with systemic presupposition scans this destination folder, and the scan mode of systemic presupposition is for scanning step by step file and file in the described external memory media medium according to presetting order.
Wherein, the catalogue of the former dish of blue light of standard comprises the parent folder of BDMV catalogue, BDMV catalogue, and comprises each catalogue under the BDMV catalogue, then can be with sign " BDMV " as default title.Comprise index file, movie object file, playlist folder, clip information file folder, stream folder, auxiliary data file folder and backup file folder in the BDMV catalogue corresponding file folder.
Wherein, the index file that comprises under the BDMV catalogue, be used for preserving the relevant information of explanation BDMV catalogue institute content, information, playlist folder that movie object file is used for preserving one or more movie objects are used for preserving the database file of movie tabulation, the clip information file folder is used for preserving the database file of fragment, stream folder is used for preserving the audio/video flow file, the auxiliary data file folder is used for preserving audio files and font file, and the backup file folder is used for preserving above-mentioned All Files and file.
Judging unit 22 also is used for the title notice corresponding with default title according to judging unit 22 affirmation destination folders, confirms whether the parent folder of destination folder is the former dish of blue light.If confirm that the parent folder of destination folder is not the former dish of blue light, then the scan mode according to systemic presupposition scans this destination folder.
Processing unit 23 is used for confirming that according to judging unit 22 parent folder of destination folder is the notice of the former dish of blue light, stops the scanning sequence at the file in the destination folder, and the parent folder of destination folder is recorded as the blue light file.
Wherein, when stopping the scanning sequence at the file in the destination folder, do not stop the scanning to this destination folder, namely the scan mode with systemic presupposition scans this destination folder, and the scan mode of systemic presupposition is for scanning step by step the file that this destination folder and external memory media medium comprise according to presetting order.
When the external memory media medium comprises a lot of the former dishes of blue light, the media file scanning device that present embodiment provides can be judged the external memory media medium and whether comprise the former dish of blue light, if confirm as the former dish of blue light, then do not need the file in the former dish of blue light is scanned, with respect to existing scan mode according to systemic presupposition, namely according to presetting order the file in the outside storage media and file are scanned step by step, not only improved the sweep speed of the media file of scanning, save a large amount of system applies resources simultaneously, and then promoted the overall performance of scanning system.
The media file scanning device that present embodiment provides receives the insertion notice of external memory media medium by receiving element 21, according to presetting order the file in the outside storage media and file are scanned step by step, the title of confirming a destination folder by judging unit 22 is corresponding with default title, then further confirm by judging unit 22 whether the parent folder of destination folder is the former dish of blue light, if the parent folder of destination folder is the former dish of blue light, then notifier processes unit 23 stops the scanning sequence at the file in the destination folder, and the parent folder of destination folder is recorded as the blue light file.Because the former dish of blue light is identical with special directory structure and the broadcast mode of Blu-ray Disc, namely when the parent folder of confirming destination folder is the former dish of blue light, then need not to scan the file in the destination folder, reduce the time of scanning external memory media medium, promoted sweep speed, further reduced the shared system applies resource of scanning external memory media medium, promoted the scan performance of media file, improve the startup speed of playing the blue light media file, further promoted the usable range of the former dish of blue light.
As a kind of optional embodiment, the media file scanning device also comprises acquiring unit, is used for the former dish of inquiry blue light, obtains the directory path with the blue light media file of blue light file identification sign;
Acquiring unit also is used for storing the first information of the directory path that comprises blue light file identification and blue light media file to database.
Wherein, video/bd can be identified this blue light media file as the blue light file identification.Concrete can blue light file identification video/bd as the extension name of directory path, with this extension name identification document type, namely identify the blue light media file, according to the blue light media file of blue light file identification video/bd as the extension name of directory path, obtain the directory path of this blue light media file, so that system storage related the first information of directory path of blue light file identification and blue light media file to database, the system of being convenient to generates the tabulation of the directory path that comprises the blue light media file according to the first information of storing in the database, make things convenient for the user according to this blue light of program request user's interest rapidly media file of tabulating, the further perfect application performance of scanning.
As a kind of optional embodiment, acquiring unit can be stored the directory path of the former dish of blue light that comprises this blue light media file to database, the concrete type according to player is determined, if only need the directory path of the former dish of blue light, just can play the blue light media file, then the directory path that only needs the former dish of storage blue light is opened the former dish of blue light so that generate the tabulation back for the user easily to database, further opens and play the blue light media file rapidly.
Among the embodiment, judging unit, also be used for obtaining the path of the parent folder of destination folder, obtain the value of first pointer according to the path of the parent folder of file, first pointed, first structure, first structure is used for the configuration information of the former dish of definition blue light, and the configuration information of the former dish of blue light comprises the summary info of the former dish of blue light, and the summary info of the former dish of blue light is the member variable of first structure.
Judging unit is used for also judging whether the value of first pointer is empty, if the value of first pointer is empty, the parent folder that this destination folder then is described is not the former dish of blue light, then the scan mode with systemic presupposition scans this destination folder, namely according to presetting order the file in this destination folder and the external memory media medium is scanned step by step.
If the value of first pointer is not empty, then judging unit also is used for obtaining according to the value of first pointer value of second pointer, wherein, second pointed, second structure, second structure is used for the summary info of the former dish of definition blue light, summary info comprises the detecting sign of the former dish of blue light, and the detecting of the former dish of blue light is masked as the member variable of second structure, is used for label detection to the former dish of blue light.
Judging unit is used for also judging whether the value of second pointer is empty.If the value of second pointer is empty, the parent folder that this destination folder then is described is not the former dish of blue light, then the scan mode with systemic presupposition scans this destination folder, namely according to presetting order the file in this destination folder and the external memory media medium is scanned step by step.Wherein, the value of second pointer is the first address of second structure.
If the value of second pointer is not empty, then be used for according to second structure, obtaining in second structure is the member variable of the detecting sign of the former dish of blue light, to obtain the value of the former dish detecting of blue light sign; And whether the value that is used for judging the detecting sign of the former dish of blue light is zero.If the value of the detecting sign of the former dish of blue light is zero, the parent folder that this destination folder then is described is not the former dish of blue light, then the scan mode with systemic presupposition scans this destination folder, namely according to presetting order the file in this destination folder and the external memory media medium is scanned step by step.If the value of the detecting sign of the former dish of blue light is non-vanishing, determine that then the parent folder of destination folder is the former dish of blue light.
Among the embodiment, judging unit also is used for calling first function that the storehouse of increasing income defines, and first function is used for obtaining the value of first pointer; And the path of parent folder that also is used for obtaining destination folder is as the shape ginseng of first function, to obtain the rreturn value of first function, with the value as first pointer.The concrete bd_open function that can call in the storehouse of increasing income.
Among the embodiment, judging unit also is used for calling second function that the storehouse of increasing income defines, and second function is used for obtaining the value of second pointer; And be used for obtaining the value of first pointer as the shape ginseng of second function, to obtain the rreturn value of second function, as the value of second pointer.Concrete can call the bd_get_disc_info function that defines in the storehouse of increasing income.
See also Fig. 3, Fig. 3 is the structural drawing of the another kind of media file scanning device that provides of the embodiment of the present application.As shown in Figure 3, the media file scanning device that present embodiment provides comprises: input media 31, output unit 32, storer 33 and processor 34, wherein, storage batch processing code in the storer 33, and processor 34 is used for calling the storer stored program code, is used for carrying out following operation:
Receive the insertion notice of external memory media medium, according to presetting order the file in the outside storage media and file are scanned step by step;
Whether the title of confirming a destination folder is corresponding with default title;
If confirm that the title of destination folder is corresponding with default title, confirm then whether the parent folder of destination folder is the former dish of blue light;
If the parent folder of destination folder is the former dish of blue light; Then stop the scanning sequence at the file in the destination folder, and the parent folder of destination folder is recorded as the blue light file.
Wherein, the catalogue of the former dish of blue light of standard comprises the parent folder of BDMV catalogue, BDMV catalogue, and comprises each catalogue under the BDMV catalogue, then can be with sign " BDMV " as default title.Comprise index file, movie object file, playlist folder, clip information file folder, stream folder, auxiliary data file folder and backup file folder in the BDMV catalogue corresponding file folder.
Wherein, the index file that comprises under the BDMV catalogue, be used for preserving the relevant information of explanation BDMV catalogue institute content, information, playlist folder that movie object file is used for preserving one or more movie objects are used for preserving the database file of movie tabulation, the clip information file folder is used for preserving the database file of fragment, stream folder is used for preserving the audio/video flow file, the auxiliary data file folder is used for preserving audio files and font file, and the backup file folder is used for preserving above-mentioned All Files and file.
And, when stopping the scanning sequence at the file in the destination folder, do not stop the scanning to this destination folder, namely the scan mode with systemic presupposition scans this destination folder, and the scan mode of systemic presupposition is for scanning step by step the file that this destination folder and external memory media medium comprise according to presetting order.
When the external memory media medium comprises a lot of the former dishes of blue light, the media file scan method that present embodiment provides can be judged the external memory media medium and whether comprise the former dish of blue light, if confirm as the former dish of blue light, then do not need the file in the former dish of blue light is scanned, with respect to existing scan mode according to systemic presupposition, namely according to presetting order the file in the outside storage media and file are scanned step by step, not only improved the sweep speed of the media file of scanning, save a large amount of system applies resources simultaneously, and then promoted the overall performance of scanning system.
The media file scanning device that present embodiment provides is carried out associative operation by processor 34, receive the insertion notice of external memory media medium, according to presetting order the file in the outside storage media and file are scanned step by step, if confirm that the title of a destination folder is corresponding with default title, whether the parent folder of then further confirming destination folder is the former dish of blue light, if the parent folder of destination folder is the former dish of blue light, then stop the scanning sequence at the file in the destination folder, and the parent folder of destination folder is recorded as the blue light file.Because the former dish of blue light is identical with special directory structure and the broadcast mode of Blu-ray Disc, namely when the parent folder of confirming destination folder is the former dish of blue light, then need not to scan the file in the destination folder, reduce the time of scanning external memory media medium, promoted sweep speed, further reduced the shared system applies resource of scanning external memory media medium, promoted the scan performance of media file, improve the startup speed of playing the blue light media file, further promoted the usable range of the former dish of blue light.
Among the embodiment, can be specifically by detecting the wired connection interface that is connected with the external memory media medium or the connection situation of wireless connections interface, notify with the insertion of reception external memory media medium.
As a kind of optional embodiment, the processor that present embodiment provides also is used for carrying out following steps:
The former dish of inquiry blue light obtains the directory path with the blue light media file of blue light file identification sign;
Store the first information of the directory path that comprises blue light file identification and blue light media file to database.Wherein, video/bd can be identified this blue light media file as the blue light file identification.Concrete can blue light file identification video/bd as the extension name of directory path, with this extension name identification document type, namely identify the blue light media file, according to the blue light media file of blue light file identification video/bd as the extension name of directory path, obtain the directory path of this blue light media file, so that system storage related the first information of directory path of blue light file identification and blue light media file to database, the system of being convenient to generates the tabulation of the directory path that comprises the blue light media file according to the first information of storing in the database, make things convenient for the user according to this blue light of program request user's interest rapidly media file of tabulating, the further perfect application performance of scanning.
As a kind of optional embodiment, whether this processor is carried out the parent folder of confirming destination folder is that the operation of the former dish of blue light specifically can comprise the steps:
Obtain the path of the parent folder of destination folder;
Obtain the value of first pointer according to the path of the parent folder of destination folder, first pointed, first structure, first structure is used for the configuration information of the former dish of definition blue light, the configuration information of the former dish of blue light comprises the summary info of the former dish of blue light, and the summary info of the former dish of blue light is the member variable of first structure.
Whether the value of judging first pointer is empty; If the value of first pointer is empty, the parent folder that this destination folder then is described is not the former dish of blue light, then the scan mode with systemic presupposition scans this destination folder, namely according to presetting order the file in this destination folder and the external memory media medium is scanned step by step.
If the value of first pointer is not empty, then obtain the value of second pointer according to the value of first pointer, wherein, second pointed, second structure, second structure is used for the summary info of the former dish of the described blue light of definition, summary info comprises the detecting sign of the former dish of blue light, and the detecting of the former dish of blue light is masked as the member variable of second structure, is used for label detection to the former dish of blue light.
Whether the value of judging second pointer is empty.If the value of second pointer is empty, the parent folder that this destination folder then is described is not the former dish of blue light, then the scan mode with systemic presupposition scans this destination folder, namely according to presetting order the file in this destination folder and the external memory media medium is scanned step by step.Wherein, the value of second pointer is the first address of second structure.
If the value of second pointer be empty, then according to second structure, obtaining in second structure is the member variable of the detecting sign of the former dish of blue light, with the value of the detecting sign that obtains the former dish of blue light;
Whether the value of judging the detecting sign of the former dish of blue light is zero.If the value of the detecting sign of the former dish of blue light is zero, the parent folder that this destination folder then is described is not the former dish of blue light, then the scan mode with systemic presupposition scans this destination folder, namely according to presetting order the file in this destination folder and the external memory media medium is scanned step by step.
If the value of the detecting sign of the former dish of blue light is non-vanishing, determine that then the parent folder of destination folder is the former dish of blue light.
As a kind of optional embodiment, processor is carried out the operation that path according to the parent folder of destination folder obtains the value of first pointer and can be comprised the steps:
Call first function that defines in the storehouse of increasing income, first function is used for obtaining the value of first pointer;
Obtain the path of parent folder of destination folder as the shape of first function ginseng, to obtain the rreturn value of first function, with the value as first pointer.The concrete bd_open function that can call in the storehouse of increasing income.
As a kind of optional embodiment, the operation that the processor execution is obtained the value of second pointer according to the value of first pointer specifically comprises following operation:
Call second function that defines in the storehouse of increasing income, second function is used for obtaining the value of second pointer;
Import the value of first pointer as the shape ginseng of second function, to obtain the rreturn value of second function, as the value of second pointer.Concrete can call the bd_get_disc_info function that defines in the storehouse of increasing income.
In several embodiment that the application provides, should be understood that disclosed equipment and method can realize by other mode.For example, apparatus embodiments described above only is schematic, for example, the division of module or unit, only be that a kind of logic function is divided, during actual the realization other dividing mode can be arranged, for example a plurality of unit or module can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.In addition, the shown or coupling each other discussed or directly be coupled or communicate to connect and can be the indirect coupling by some interfaces, device, module or unit or communicate to connect also can be electric, machinery or other form connect.
Module or unit as the separating component explanation can or can not be physically to separate also, the parts that show as module or unit can be or also can not be physical module or unit, namely can be positioned at a place, perhaps also can be distributed on a plurality of mixed-media network modules mixed-medias or the unit.Can select wherein some or all of module or the unit purpose that realizes embodiment of the invention scheme according to the actual needs.
In addition, each functional module in each embodiment of the present invention or unit can be integrated in a processing module or the unit, also can be that the independent physics in each module or unit exists, also can be that two or more modules or unit are integrated in a module or the unit.The form that above-mentioned integrated module or unit both can adopt hardware realizes, also can adopt the form of SFU software functional unit to realize.
If integrated module or unit are realized with the form of software function module or unit and during as independently production marketing or use, can be stored in the computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words, perhaps all or part of form that can software product of this technical scheme embodies, this computer software product is stored in the storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out all or part of step of each embodiment method of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD.
More than; it only is the specific embodiment of the present invention; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the present invention discloses; can expect modification or the replacement of various equivalences easily, these modifications or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (10)

1. a media file scan method is characterized in that, comprising:
Receive the insertion notice of external memory media medium, according to presetting order file and file in the described external memory media medium are scanned step by step;
Whether the title of confirming a destination folder is corresponding with default title;
If confirm that the title of described destination folder is corresponding with default title, confirm then whether the parent folder of described destination folder is the former dish of blue light;
If the parent folder of described destination folder is the former dish of blue light; Then stop the scanning sequence at the file in the described destination folder, and the parent folder of described destination folder is recorded as the blue light file.
2. media file scan method as claimed in claim 1 is characterized in that, described method also comprises:
Inquire about the former dish of described blue light, obtain the directory path with the blue light media file of blue light file identification sign;
Store the first information of the directory path that comprises described blue light file identification and described blue light media file to database.
3. media file scan method as claimed in claim 1 or 2 is characterized in that, whether the parent folder of the described destination folder of described affirmation is the former dish of blue light, comprising:
Obtain the path of the parent folder of described destination folder;
Obtain the value of first pointer according to the path of the parent folder of described destination folder, described first pointed, first structure, described first structure is used for the configuration information of the former dish of definition blue light, the configuration information of the former dish of described blue light comprises the summary info of the former dish of described blue light, and the summary info of the former dish of described blue light is the member variable of described first structure;
Whether the value of judging described first pointer is empty;
If the value of described first pointer is not empty, then obtain the value of second pointer according to the value of described first pointer, wherein, described second pointed, second structure, described second structure is used for the summary info of the former dish of the described blue light of definition, described summary info comprises the detecting sign of the former dish of described blue light, and the detecting of the former dish of described blue light is masked as the member variable of described second structure, is used for label detection to the former dish of described blue light;
Whether the value of judging described second pointer is empty;
If the value of described second pointer be empty, then according to described second structure, obtaining in described second structure is the member variable of the detecting sign of the former dish of described blue light, with the value of the detecting sign that obtains the former dish of described blue light;
Whether the value of judging the detecting sign of the former dish of described blue light is zero;
If the value of the detecting sign of the former dish of described blue light is non-vanishing, determine that then the parent folder of described destination folder is the former dish of blue light.
4. media file scan method as claimed in claim 3 is characterized in that, the path of described parent folder according to described destination folder obtains the value of first pointer, comprising:
Call first function that defines in the storehouse of increasing income, described first function is used for obtaining the value of first pointer;
Obtain the path of parent folder of described destination folder as the shape of described first function ginseng, to obtain the rreturn value of described first function, with the value as first pointer.
5. media file scan method as claimed in claim 4 is characterized in that, described value according to described first pointer is obtained the value of second pointer, comprising:
Call second function that defines in the storehouse of increasing income, described second function is used for obtaining the value of second pointer;
Import the value of described first pointer as the shape ginseng of described second function, to obtain the rreturn value of described second function, as the value of second pointer.
6. a media file scanning device is characterized in that, comprising:
Receiving element, the insertion that is used for reception external memory media medium is notified, and according to presetting order file and file in the described external memory media medium is scanned step by step;
Judging unit is used for confirming whether the title of a destination folder is corresponding with default title;
Described judging unit also for the title of confirming described destination folder according to the described judging unit notice corresponding with default title, confirms whether the parent folder of described destination folder is the former dish of blue light;
Processing unit is used for confirming that according to described judging unit the parent folder of described destination folder is the notice of the former dish of blue light, stops the scanning sequence at the file in the described destination folder, and the parent folder of described destination folder is recorded as the blue light file.
7. media file scanning device as claimed in claim 6 is characterized in that, also comprises:
Acquiring unit is used for the former dish of the described blue light of inquiry, obtains the directory path with the blue light media file of blue light file identification sign;
Described acquiring unit also is used for storing the first information of the directory path that comprises described blue light file identification and described blue light media file to database.
8. as claim 6 or 7 described media file scanning devices, it is characterized in that, described judging unit, also be used for obtaining the path of the parent folder of described destination folder, obtain the value of first pointer according to the path of the parent folder of described file, described first pointed, first structure, described first structure is used for the configuration information of the former dish of definition blue light, the configuration information of the former dish of described blue light comprises the summary info of the former dish of described blue light, and the summary info of the former dish of described blue light is the member variable of described first structure;
Described judging unit is used for also judging whether the value of described first pointer is empty, if the value of described first pointer is not empty, then also be used for obtaining according to the value of described first pointer value of second pointer, wherein, described second pointed, second structure, described second structure is used for the summary info of the former dish of the described blue light of definition, described summary info comprises the detecting sign of the former dish of described blue light, the detecting of the former dish of described blue light is masked as the member variable of described second structure, is used for label detection to the former dish of described blue light;
Described judging unit is used for also judging whether the value of described second pointer is empty; If the value of described second pointer is not empty, then be used for according to described second structure, obtaining in described second structure is the member variable of the detecting sign of the former dish of described blue light, to obtain the value of the former dish detecting of described blue light sign; And whether the value that is used for judging the detecting sign of the former dish of described blue light is zero; If the value of the detecting sign of the former dish of described blue light is non-vanishing, determine that then the parent folder of described destination folder is the former dish of blue light.
9. media file scanning device as claimed in claim 8 is characterized in that, described judging unit also is used for calling first function that the storehouse of increasing income defines, and described first function is used for obtaining the value of first pointer; And the path of parent folder that also is used for obtaining described destination folder is as the shape ginseng of described first function, to obtain the rreturn value of described first function, with the value as first pointer.
10. media file scanning device as claimed in claim 9 is characterized in that, described judging unit also is used for calling second function that the storehouse of increasing income defines, and described second function is used for obtaining the value of second pointer; And be used for obtaining the value of described first pointer as the shape ginseng of described second function, to obtain the rreturn value of described second function, as the value of second pointer.
CN 201310082791 2013-03-15 2013-03-15 Method and equipment for scanning media file Withdrawn CN103198101A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310082791 CN103198101A (en) 2013-03-15 2013-03-15 Method and equipment for scanning media file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310082791 CN103198101A (en) 2013-03-15 2013-03-15 Method and equipment for scanning media file

Publications (1)

Publication Number Publication Date
CN103198101A true CN103198101A (en) 2013-07-10

Family

ID=48720659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310082791 Withdrawn CN103198101A (en) 2013-03-15 2013-03-15 Method and equipment for scanning media file

Country Status (1)

Country Link
CN (1) CN103198101A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593451A (en) * 2013-11-19 2014-02-19 乐视致新电子科技(天津)有限公司 File scanning method and device
CN104268288A (en) * 2014-10-21 2015-01-07 福州瑞芯微电子有限公司 Media library scanning method and device based on NTFS

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593451A (en) * 2013-11-19 2014-02-19 乐视致新电子科技(天津)有限公司 File scanning method and device
CN104268288A (en) * 2014-10-21 2015-01-07 福州瑞芯微电子有限公司 Media library scanning method and device based on NTFS
CN104268288B (en) * 2014-10-21 2018-06-19 福州瑞芯微电子股份有限公司 A kind of media library scan method and device based on NTFS

Similar Documents

Publication Publication Date Title
US20050256967A1 (en) Method for splitting a data stream
CN103927129A (en) Data storage method
CN103198101A (en) Method and equipment for scanning media file
US20070219934A1 (en) Optical Disc with a Generic Logical Format
US20060282794A1 (en) Method of generating summary menu for storage medium
US8279735B1 (en) Reproducing system for mediums and method for identifying digital data of the mediums and reproducing the same
US8014648B2 (en) Information recording apparatus, information recording method, program storage medium, and program
US9443557B2 (en) Recording apparatus, recording method, and reproducing apparatus
US20100061699A1 (en) Method and apparatus for transmitting content and method and apparatus for recording content
CN100559478C (en) Use local storing reproduction to be recorded in the method and apparatus of the data in the recording medium
US8422348B2 (en) Reproducing system for mediums and method for reproducing digital data and identifying the same
US8422862B2 (en) Data recording method, data recording apparatus and data recording medium
US20050286869A1 (en) Information recording medium, information recording apparatus and method, information reproducing apparatus and method, computer program product, and data structure including control signal
TWI464736B (en) Method and apparatus for navigating within a disc and information handling system
US20070130422A1 (en) Removable medium access method and related apparatus in an optical disc drive
US20080095520A1 (en) Mapping Udf and Bdfs Extents
US20120259848A1 (en) System and method for automatically building a search database for digital data of mediums
CN101521784A (en) Method and apparatus for reproducing image
US9349409B1 (en) Video data organization
JP2021128812A (en) Recording/reproducing device and video display device
US20100131576A1 (en) Information reproduction method and information reproduction apparatus
KR20140039504A (en) Blu-ray disc playback device and method thereof
JP2012022727A (en) Data recording method, data recording device and data recording medium
JP2010182384A (en) Recording system and operating method of recording apparatus
JP2009016010A (en) File management method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C04 Withdrawal of patent application after publication (patent law 2001)
WW01 Invention patent application withdrawn after publication

Application publication date: 20130710