CN103744912A - Video file scanning method and electronic device - Google Patents

Video file scanning method and electronic device Download PDF

Info

Publication number
CN103744912A
CN103744912A CN201310733694.5A CN201310733694A CN103744912A CN 103744912 A CN103744912 A CN 103744912A CN 201310733694 A CN201310733694 A CN 201310733694A CN 103744912 A CN103744912 A CN 103744912A
Authority
CN
China
Prior art keywords
directory
video file
target directory
file
item
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310733694.5A
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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201310733694.5A priority Critical patent/CN103744912A/en
Publication of CN103744912A publication Critical patent/CN103744912A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/71Indexing; Data structures therefor; Storage structures

Abstract

An embodiment of the invention provides a video file scanning method and an electronic device and relates to the technical field of electronics. A to-be-scanned target directory assembly can be screened and determined prior to scanning, and scanning of the video files is performed within the target directory assembly to obtain video file information. The method comprises the steps of receiving scanning instructions, determining a target scanning path, obtaining the to-be-scanned target directory assembly by combination with preset screening conditions, obtaining the video file information of every video file in every target directory entry by scanning every target directory entry in the target directory assembly, and adding the video file information to a database. The video file scanning method is used for achieving scanning the video files stored in the device.

Description

A kind of video file scan method and electronic equipment
Technical field
The present invention relates to electronic technology field, relate in particular to a kind of video file scan method and electronic equipment.
Background technology
Along with the development of electronic technology, the multimedia application on intelligent electronic device is highly universal.Electronic equipment based on intelligent operating system is as mobile phone, panel computer, TV box and intelligent television etc., in recent years due to its performance constantly promoting and abundant entertainment resource, had user group very widely, and follow-up user's request is also improving gradually.
At present, these intelligent electronic devices all have the function of scan video file, in order to obtain the video file information in self device storage.But in prior art, scan video file is to realize by the All Files under all catalogues in device storage is scanned, whole scanning process can spend longer sweep time, and takies higher system resource, has caused the reduction of equipment performance.
Summary of the invention
Embodiments of the invention provide a kind of video file scan method and electronic equipment, before scanning starts, target directory set to be scanned is determined in screening, be limited to the scanning of carrying out video file in target directory set and obtain video file information, shorten sweep time, reduce the consumption of system resource, improve the performance of equipment.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, the embodiment of the present invention provides a kind of video file scan method, is applied to a kind of electronic equipment, and described method comprises:
Receive scan instruction, according to described scan instruction, obtain targeted scans path, and obtain target directory set to be scanned in conjunction with default screening conditions;
Each target directory item in described target directory set is scanned, obtain the video file information of each video file in described each target directory item, described video file information comprises file name, file layout and the file path of described each video file;
The each described video file information that scanning is obtained is added into database.
In conjunction with first aspect, in the possible implementation of the first, described reception scan instruction comprises:
The described scan instruction that receiving equipment start-up operation triggers; Or,
Receive the described scan instruction that the operation of external memory storage carry triggers; Or,
Receive the described scan instruction that user operates triggering.
In conjunction with the possible implementation of the first of first aspect or first aspect, in the possible implementation of the second, described according to described scan instruction, obtain targeted scans path and comprise:
If the described scan instruction that receiving equipment start-up operation triggers, the store path of selected device interior storage is as described targeted scans path, to obtain described target directory set; Or,
If receive the described scan instruction that the operation of external memory storage carry triggers, the store path of selected exterior storage is as described targeted scans path, to obtain described target directory set; Or,
If reception user operates the described scan instruction of triggering, the store path that selected described user operates appointment is as described targeted scans path, to obtain described target directory set.
In conjunction with the possible implementation of the second of first aspect, in the third possible implementation, the default screening conditions of described combination are obtained target directory set to be scanned and are comprised:
Obtain the directory listing under described targeted scans path, described directory listing comprises at least one directory entry, and described directory entry is the sub-directory that under root directory under described targeted scans path or described root directory, directories deep is less than predetermined depth value;
Whether directory entry described in each in described directory listing is met to described default screening conditions judges, if meet, assert that described directory entry is described target directory item, described default screening conditions comprise that the type of described directory entry is non-engineering Directory Type;
Obtain described target directory set, described target directory set comprises all described target directory items.
In conjunction with first aspect, in the 4th kind of possible implementation, described each target directory item in described target directory set is scanned, the video file information of obtaining each video file in described each target directory item comprises:
Obtain known video format list, described known video format list has comprised the file layout of video file described at least one;
Described each target directory item is scanned, the file layout of each file item in described each target directory item is contrasted with described known video format list, if the file layout of described file item is identical with the file layout of described video file, assert that described file item is described video file;
Obtain the described video file information of described video file.
Second aspect, provides a kind of electronic equipment, and described electronic equipment comprises:
Object filtering unit, for receiving scan instruction, according to described scan instruction, obtains targeted scans path, and obtains target directory set to be scanned in conjunction with default screening conditions;
Directory scan unit, for each target directory item of described target directory set is scanned, the video file information of obtaining each video file in described each target directory item, described video file information comprises file name, file layout and the file path of described each video file;
Information process unit, is added into database for the each described video file information that scanning is obtained.
In conjunction with second aspect, in the possible implementation of the first, described object filtering unit comprises command reception unit, specifically for:
The described scan instruction that receiving equipment start-up operation triggers; Or,
Receive the described scan instruction that the operation of external memory storage carry triggers; Or,
Receive the described scan instruction that user operates triggering.
In conjunction with the possible implementation of the first of second aspect or second aspect, in the possible implementation of the second, described object filtering unit also comprises path acquiring unit, specifically for:
If the described scan instruction that receiving equipment start-up operation triggers, the store path of selected device interior storage is as described targeted scans path, to obtain described target directory set; Or,
If receive the described scan instruction that the operation of external memory storage carry triggers, the store path of selected exterior storage is as described targeted scans path, to obtain described target directory set; Or,
If reception user operates the described scan instruction of triggering, the store path that selected described user operates appointment is as described targeted scans path, to obtain described target directory set.
In conjunction with the possible implementation of the second of second aspect, in the third possible implementation, described object filtering unit also comprises screening judging unit, specifically for:
Obtain the directory listing under described targeted scans path, described directory listing comprises at least one directory entry, and described directory entry is the sub-directory that under root directory under described targeted scans path or described root directory, directories deep is less than predetermined depth value;
Whether directory entry described in each in described directory listing is met to described default screening conditions judges, if meet, assert that described directory entry is described target directory item, described default screening conditions comprise that the type of described directory entry is non-engineering Directory Type;
Obtain described target directory set, described target directory set comprises all described target directory items.
In conjunction with second aspect, in the 4th kind of possible implementation, described directory scan unit specifically for:
Obtain known video format list, described known video format list has comprised the file layout of video file described at least one;
Described each target directory item is scanned, the file layout of each file item in described each target directory item is contrasted with described known video format list, if the file layout of described file item is identical with the file layout of described video file, assert that described file item is described video file;
Obtain the described video file information of described video file.
Embodiments of the invention provide a kind of video file scan method and electronic equipment, by receiving scan instruction, determine targeted scans path, in conjunction with default screening conditions, obtain target directory set to be scanned again, and by the each target directory item in target directory set is scanned, obtain the video file information of each video file in each target directory item, then video file information is added into database.Like this, shortened video file scanning process sweep time, reduced the consumption of system resource, improved the performance of equipment.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet of a kind of video file scan method that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the another kind of video file scan method that Fig. 2 provides for the embodiment of the present invention;
The structural representation one of a kind of electronic equipment that Fig. 3 provides for the embodiment of the present invention;
The structural representation two of a kind of electronic equipment that Fig. 4 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments of the invention provide a kind of video file scan method, and as shown in Figure 1, the method comprises:
S101, reception scan instruction, according to scan instruction, obtain targeted scans path, and obtain target directory set to be scanned in conjunction with default screening conditions.
S102, the each target directory item in target directory set is scanned, obtain the video file information of each video file in each target directory item, video file information comprises file name, file layout and the file path of each video file.
S103, each video file information that scanning is obtained are added into database.
Embodiments of the invention provide a kind of video file scan method, by receiving scan instruction, determine targeted scans path, in conjunction with default screening conditions, obtain target directory set to be scanned again, and by the each target directory item in target directory set is scanned, obtain the video file information of each video file in each target directory item, then video file information is added into database.Like this, shortened video file scanning process sweep time, reduced the consumption of system resource, improved the performance of equipment.
In order to make those skilled in the art can more clearly understand the technical scheme that the embodiment of the present invention provides, below by specific embodiment, the another kind of video file scan method that the embodiment of the present invention is provided is elaborated, and as shown in Figure 2, the method comprises:
S201, reception scan instruction.
Concrete, by the receiver module in electronic equipment, detect and receive scan instruction.
Wherein, receiver module can be Android(Android) multimedia scanning in equipment under multimedia scan process (Media Scanner Process) system architecture receives class (MediaScannerReceiver).
Exemplary, MediaScannerReceiver detects and receives scan instruction, this scan instruction can be the scan instruction of device start operation triggering, be that MediaScannerReceiver receives the broadcast message that comprises that instruction list exposed installation is " starting complete (Intent.ACTION_BOOT_COMPLETED) " for current action, using this broadcast message as scan instruction, follow up scan operation is carried out in indication;
Or, this scan instruction can be the scan instruction of external memory storage carry operation triggering, be that MediaScannerReceiver receives the broadcast message that comprises that instruction list exposed installation is " carry complete (Intent.ACTION_MEDIA_MOUNTED) " for current action, using this broadcast message as scan instruction, follow up scan operation is carried out in indication;
Or, this scan instruction can operate for user the scan instruction of triggering, be that MediaScannerReceiver receives the broadcast message that comprises that instruction list exposed installation is " request scanning specified file (Intent.ACTION_MEDIA_SCANNER_SCAN_FILE) " for current action, using this broadcast message as scan instruction, follow up scan operation is carried out in indication; And this broadcast message has also comprised the directory path of invisible scanning file.
S202, according to scan instruction, obtain targeted scans path.
Concrete, electronic equipment obtains after scan instruction at receiver module, according to scan instruction, starts scan service module, obtains targeted scans path.
Wherein, scan service module can be the multimedia scan service class (MediaScannerService) under Media Scanner Process system architecture.
Exemplary, if the scan instruction that MediaScannerReceiver receives is the broadcast message that device start operation triggers, the store path of selected device interior storage is as targeted scans path, start MediaScannerService only the interior roll to electronic equipment (INTERNAL_VOLUME) scan, to obtain target directory set to be scanned, the store path of sensing can be (ANDROID_ROOT)/media;
Or, if the scan instruction that MediaScannerReceiver receives is the broadcast message that the operation of external memory storage carry triggers, the store path of selected device external storage is as targeted scans path, start MediaScannerService only the foreign volume to electronic equipment (EXTERNAL_VOLUME) scan, to obtain target directory set to be scanned, the store path of sensing can be (EXTERNAL_STORAGE).
Or, if the scan instruction that MediaScannerReceiver receives is the broadcast message that user operates triggering, the store path that selected this broadcast message is specified is as targeted scans path, starting MediaScannerService only scans the intended target catalogue of electronic equipment, to obtain target directory set to be scanned, the store path of sensing is specifically operated definite by user.
S203, according to targeted scans path, obtain target directory set to be scanned.
Concrete, the scan service module of electronic equipment, according to the targeted scans path obtaining, in conjunction with default screening conditions, scans all directory entries under targeted scans path, through screening, determines target directory set to be scanned.
Exemplary, MediaScannerService, obtaining behind targeted scans path, further obtains the directory listing under targeted scans path, and wherein, this directory listing is the list that comprises at least one directory entry under targeted scans path.
Be worth mentioning, above-mentioned at least one directory entry can be less than the sub-directory of predetermined depth value for directories deep under the root directory under targeted scans path or root directory; Wherein, predetermined depth value can be system default settings, can be also outside given settings, can select according to concrete scanning demand, does not limit herein.
Further, each directory entry in directory listing is judged:
If directory entry meets default screening conditions, assert that this directory entry is target directory item; Or, if directory entry does not meet default screening conditions, among the target directory this directory entry being scanned from needs, get rid of; And by the set of all target directory items, as the target directory set of finally obtaining.
Wherein, default screening conditions comprise: the type of directory entry is non-engineering Directory Type; Exemplary, engineering Directory Type can comprise: .svn type .git type.
Be worth mentioning, the above-mentioned engineering Directory Type of enumerating only, for exemplary, includes but not limited to this.
S204, according to target directory set to be scanned, carry out scan operation, obtain video file information.
Concrete, the scan service module of electronic equipment is called scanner, and each target directory item in target directory set to be scanned is scanned, and obtains the video file information of each video file in each target directory item.
Wherein, the scanner that scan service module is called can be the multimedia scanning class (MediaScanner) under Media Scanner Process system architecture.
Exemplary, MediaScanner obtains the known video format list in equipment, and this known video format list has comprised the file layout of at least one video file; Wherein, the file layout of video file comprises: MP4, AVI, 3GP, WMV etc., and the above-mentioned file layout of enumerating is only for exemplary, includes but not limited to this.
MediaScanner scans the each target directory item in target directory set to be scanned, obtain the file layout of each file item in each target directory item, and contrast with the file layout of the video file recording in known video format list: if the file layout of wherein a kind of video file of the file layout of file item and record is identical, assert that this file item is video file; Or, if the file layout of file item is not identical with the file layout of any video file of record, assert this file item non-video file.
Further, obtain the video file information of this video file, wherein, video file information comprises: file name, file layout and the file path of each video file; And the above-mentioned video file information of enumerating only, for exemplary, includes but not limited to this.
S205, each video file information of obtaining is added into database.
Concrete, the video file information of scan service module being called to each video file that scanner obtains is added into device databases.
Wherein, device databases can be the SQLIte database in Android equipment, this data-base recording the video file information of each video file; In equipment running process, in the time need to obtaining the memory state of video file in equipment, can realize by the each video file information reading in SQLIte database.
Be worth mentioning, by the adjustment to SQLIte data base administration logic, the file layout of the video file that can comprise known video format list is set, and according to user's request, further limits or expands the hunting zone to video file, improves equipment performance.
Embodiments of the invention provide a kind of video file scan method, by receiving scan instruction, determine targeted scans path, in conjunction with default screening conditions, obtain target directory set to be scanned again, and by the each target directory item in target directory set is scanned, obtain the video file information of each video file in each target directory item, then video file information is added into database.Like this, shortened video file scanning process sweep time, reduced the consumption of system resource, improved the performance of equipment.
The embodiment of the present invention also provides a kind of electronic equipment 00, and as shown in Figure 3, this electronic equipment 00 comprises:
Object filtering unit 001, for receiving scan instruction, according to scan instruction, obtains targeted scans path, and obtains target directory set to be scanned in conjunction with default screening conditions;
Directory scan unit 002, for each target directory item of target directory set is scanned, obtain the video file information of each video file in each target directory item, video file information comprises file name, file layout and the file path of each video file;
Information process unit 003, is added into database for each video file information that scanning is obtained.
Optionally, as shown in Figure 4, object filtering unit 001 also comprises: comprise command reception unit 0011, path acquiring unit 0012, screening judging unit 0013.
Command reception unit 0011, can be specifically for:
The scan instruction that receiving equipment start-up operation triggers; Or,
Receive the scan instruction that the operation of external memory storage carry triggers; Or,
Receive the scan instruction that user operates triggering.
Path acquiring unit 0012, can be specifically for:
If the scan instruction that receiving equipment start-up operation triggers, the store path of selected device interior storage is as targeted scans path, to obtain target directory set; Or,
If receive the scan instruction that the operation of external memory storage carry triggers, the store path of selected exterior storage is as targeted scans path, to obtain target directory set; Or,
If reception user operates the scan instruction of triggering, the store path that selected user operates appointment is as targeted scans path, to obtain target directory set.
Screening judging unit 0013, can be specifically for:
Obtain the directory listing under targeted scans path, directory listing comprises at least one directory entry, and directory entry is the sub-directory that under root directory under targeted scans path or root directory, directories deep is less than predetermined depth value;
Whether each directory entry in directory listing is met to default screening conditions and judge, if meet, assert that directory entry is target directory item, default screening conditions comprise that the type of directory entry is non-engineering Directory Type;
Obtain target directory set, target directory set comprises all target directory items.
Optionally, directory scan unit 002 specifically for:
Obtain known video format list, known video format list has comprised the file layout of at least one video file;
Each target directory item is scanned, the file layout of each file item in each target directory item is contrasted with known video format list, if the file layout of file item is identical with the file layout of video file, assert that file item is video file;
Obtain the video file information of video file.
Embodiments of the invention provide a kind of electronic equipment, by receiving scan instruction, determine targeted scans path, in conjunction with default screening conditions, obtain target directory set to be scanned again, and by the each target directory item in target directory set is scanned, obtain the video file information of each video file in each target directory item, then video file information is added into database.Like this, shortened video file scanning process sweep time, reduced the consumption of system resource, improved the performance of equipment.
Through the above description of the embodiments, those skilled in the art can be well understood to, for convenience and simplicity of description, only with the division of above-mentioned each functional module, be illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the inner structure that is about to device be divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that disclosed method and apparatus can be realized by another way.For example, device embodiment described above is only schematic, for example, the division of described module or unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example multiple unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in multiple network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If described integrated unit is realized and during as production marketing independently or use, can be stored in a computer read/write memory medium using the form of SFU software functional unit.Based on such understanding, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) or processor (processor) carry out all or part of step of method described in each embodiment 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 CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of described claim.

Claims (10)

1. a video file scan method, is characterized in that, described method comprises:
Receive scan instruction, according to described scan instruction, obtain targeted scans path, and obtain target directory set to be scanned in conjunction with default screening conditions;
Each target directory item in described target directory set is scanned, obtain the video file information of each video file in described each target directory item, described video file information comprises file name, file layout and the file path of described each video file;
The each described video file information that scanning is obtained is added into database.
2. method according to claim 1, is characterized in that, described reception scan instruction comprises:
The described scan instruction that receiving equipment start-up operation triggers; Or,
Receive the described scan instruction that the operation of external memory storage carry triggers; Or,
Receive the described scan instruction that user operates triggering.
3. method according to claim 1 and 2, is characterized in that, described according to described scan instruction, obtains targeted scans path and comprises:
If the described scan instruction that receiving equipment start-up operation triggers, the store path of selected device interior storage is as described targeted scans path, to obtain described target directory set; Or,
If receive the described scan instruction that the operation of external memory storage carry triggers, the store path of selected exterior storage is as described targeted scans path, to obtain described target directory set; Or,
If reception user operates the described scan instruction of triggering, the store path that selected described user operates appointment is as described targeted scans path, to obtain described target directory set.
4. method according to claim 3, is characterized in that, the default screening conditions of described combination are obtained target directory set to be scanned and comprised:
Obtain the directory listing under described targeted scans path, described directory listing comprises at least one directory entry, and described directory entry is the sub-directory that under root directory under described targeted scans path or described root directory, directories deep is less than predetermined depth value;
Whether directory entry described in each in described directory listing is met to described default screening conditions judges, if meet, assert that described directory entry is described target directory item, described default screening conditions comprise that the type of described directory entry is non-engineering Directory Type;
Obtain described target directory set, described target directory set comprises all described target directory items.
5. method according to claim 1, is characterized in that, described each target directory item in described target directory set is scanned, and the video file information of obtaining each video file in described each target directory item comprises:
Obtain known video format list, described known video format list has comprised the file layout of video file described at least one;
Described each target directory item is scanned, the file layout of each file item in described each target directory item is contrasted with described known video format list, if the file layout of described file item is identical with the file layout of described video file, assert that described file item is described video file;
Obtain the described video file information of described video file.
6. an electronic equipment, is characterized in that, described electronic equipment comprises:
Object filtering unit, for receiving scan instruction, according to described scan instruction, obtains targeted scans path, and obtains target directory set to be scanned in conjunction with default screening conditions;
Directory scan unit, for each target directory item of described target directory set is scanned, the video file information of obtaining each video file in described each target directory item, described video file information comprises file name, file layout and the file path of described each video file;
Information process unit, is added into database for the each described video file information that scanning is obtained.
7. electronic equipment according to claim 6, is characterized in that, described object filtering unit comprises command reception unit, specifically for:
The described scan instruction that receiving equipment start-up operation triggers; Or,
Receive the described scan instruction that the operation of external memory storage carry triggers; Or,
Receive the described scan instruction that user operates triggering.
8. according to the electronic equipment described in claim 6 or 7, it is characterized in that, described object filtering unit also comprises path acquiring unit, specifically for:
If the described scan instruction that receiving equipment start-up operation triggers, the store path of selected device interior storage is as described targeted scans path, to obtain described target directory set; Or,
If receive the described scan instruction that the operation of external memory storage carry triggers, the store path of selected exterior storage is as described targeted scans path, to obtain described target directory set; Or,
If reception user operates the described scan instruction of triggering, the store path that selected described user operates appointment is as described targeted scans path, to obtain described target directory set.
9. electronic equipment according to claim 8, is characterized in that, described object filtering unit also comprises screening judging unit, specifically for:
Obtain the directory listing under described targeted scans path, described directory listing comprises at least one directory entry, and described directory entry is the sub-directory that under root directory under described targeted scans path or described root directory, directories deep is less than predetermined depth value;
Whether directory entry described in each in described directory listing is met to described default screening conditions judges, if meet, assert that described directory entry is described target directory item, described default screening conditions comprise that the type of described directory entry is non-engineering Directory Type;
Obtain described target directory set, described target directory set comprises all described target directory items.
10. electronic equipment according to claim 6, is characterized in that, described directory scan unit specifically for:
Obtain known video format list, described known video format list has comprised the file layout of video file described at least one;
Described each target directory item is scanned, the file layout of each file item in described each target directory item is contrasted with described known video format list, if the file layout of described file item is identical with the file layout of described video file, assert that described file item is described video file;
Obtain the described video file information of described video file.
CN201310733694.5A 2013-12-23 2013-12-23 Video file scanning method and electronic device Pending CN103744912A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310733694.5A CN103744912A (en) 2013-12-23 2013-12-23 Video file scanning method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310733694.5A CN103744912A (en) 2013-12-23 2013-12-23 Video file scanning method and electronic device

Publications (1)

Publication Number Publication Date
CN103744912A true CN103744912A (en) 2014-04-23

Family

ID=50501930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310733694.5A Pending CN103744912A (en) 2013-12-23 2013-12-23 Video file scanning method and electronic device

Country Status (1)

Country Link
CN (1) CN103744912A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104036017A (en) * 2014-06-24 2014-09-10 广州金山网络科技有限公司 Method and device for generating video file lists
CN104317802A (en) * 2014-09-22 2015-01-28 四川长虹电器股份有限公司 Media file displaying method
CN105744343A (en) * 2016-01-26 2016-07-06 珠海迈科智能科技股份有限公司 Method for rapidly scanning media files and set top box
CN107040819A (en) * 2017-05-03 2017-08-11 深圳市恒科电子科技有限公司 The method and device of video is played in start from opening
WO2018094813A1 (en) * 2016-11-22 2018-05-31 深圳Tcl数字技术有限公司 Media scanning and playing control method and apparatus, and intelligent device
CN109189981A (en) * 2018-09-14 2019-01-11 Oppo广东移动通信有限公司 Audio data scan method, device, storage medium and terminal
CN111596961A (en) * 2019-02-20 2020-08-28 青岛海信移动通信技术股份有限公司 Media scanning method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289484A (en) * 2011-08-03 2011-12-21 Tcl集团股份有限公司 Method for scanning multimedia files of storage equipment based on android system
US20120088551A1 (en) * 2010-07-29 2012-04-12 Myriad Group Ag Android mobile telephone comprising a content supply chain
CN103106369A (en) * 2013-01-22 2013-05-15 西安Tcl软件开发有限公司 File sharing method and device based on media server
CN103246483A (en) * 2013-04-24 2013-08-14 Tcl集团股份有限公司 Method, system and intelligent terminal for scanning files
CN103336925A (en) * 2013-07-29 2013-10-02 腾讯科技(深圳)有限公司 Scanning acceleration method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120088551A1 (en) * 2010-07-29 2012-04-12 Myriad Group Ag Android mobile telephone comprising a content supply chain
CN102289484A (en) * 2011-08-03 2011-12-21 Tcl集团股份有限公司 Method for scanning multimedia files of storage equipment based on android system
CN103106369A (en) * 2013-01-22 2013-05-15 西安Tcl软件开发有限公司 File sharing method and device based on media server
CN103246483A (en) * 2013-04-24 2013-08-14 Tcl集团股份有限公司 Method, system and intelligent terminal for scanning files
CN103336925A (en) * 2013-07-29 2013-10-02 腾讯科技(深圳)有限公司 Scanning acceleration method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104036017A (en) * 2014-06-24 2014-09-10 广州金山网络科技有限公司 Method and device for generating video file lists
WO2015196977A1 (en) * 2014-06-24 2015-12-30 广州金山网络科技有限公司 Method and device for generating video file list
CN104036017B (en) * 2014-06-24 2018-07-13 广州猎豹网络科技有限公司 A kind of method and device generating video file list
US10552481B2 (en) 2014-06-24 2020-02-04 Guangzhou Cheetah Network Technology Co., Ltd. Method and device for generating a list of video files
CN104317802A (en) * 2014-09-22 2015-01-28 四川长虹电器股份有限公司 Media file displaying method
CN105744343A (en) * 2016-01-26 2016-07-06 珠海迈科智能科技股份有限公司 Method for rapidly scanning media files and set top box
WO2018094813A1 (en) * 2016-11-22 2018-05-31 深圳Tcl数字技术有限公司 Media scanning and playing control method and apparatus, and intelligent device
CN107040819A (en) * 2017-05-03 2017-08-11 深圳市恒科电子科技有限公司 The method and device of video is played in start from opening
CN109189981A (en) * 2018-09-14 2019-01-11 Oppo广东移动通信有限公司 Audio data scan method, device, storage medium and terminal
CN111596961A (en) * 2019-02-20 2020-08-28 青岛海信移动通信技术股份有限公司 Media scanning method and electronic equipment
CN111596961B (en) * 2019-02-20 2023-09-19 青岛海信移动通信技术有限公司 Media scanning method and electronic equipment

Similar Documents

Publication Publication Date Title
CN103744912A (en) Video file scanning method and electronic device
CN111614988B (en) System and method for presenting home screen shortcuts
CN103246483A (en) Method, system and intelligent terminal for scanning files
CN108363817B (en) File processing method and device, mobile terminal and computer readable storage medium
CN103945259A (en) Online video playing method and device
CN102289481A (en) Method and device for acquiring media information of media files in peripheral equipment, and multimedia equipment
CN103500212A (en) Multi-media file recommending method and electronic device
CN104298523A (en) Component loading method and device and terminal
CN103702177A (en) Method for storing video file and player
CN103841464A (en) Video information pushing method and device
CN102346737A (en) Sharing method and device for hardware equipment driving program
CN103442299A (en) Display method for playing records and electronic equipment
CN103049708A (en) Audit configuration method and audit configuration system for database
CN104199913A (en) Terminal resource cleaning method and device and terminal
CN103440295A (en) Method for uploading multimedia files and electronic terminal
CN103731737A (en) Video information updating method and electronic device
CN103530024A (en) Update information indicating method and electronic equipment
CN111142997A (en) Application display method, vehicle machine and computer storage medium
CN102111677A (en) Method and system for playing specification and electronic equipment terminal
CN103763575A (en) Program scheduling method and device
CN103747284A (en) Video pushing method and server
CN105100384B (en) The default storage device selection method and device of mobile terminal, mobile terminal
CN101710918A (en) Automatic software installation method for mobile memory card and mobile memory card
CN103488784A (en) Method for recommending multimedia files and electronic device
CN103747342A (en) Program list arranging method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140423