A kind of processing method and video file processing system of video file
Technical field
The present invention relates to cluster file systems and non-volume software environment, are specifically non-volume software and bottom cluster-based storage pair
In the collaboration processing method and video file processing system of video file.
Background technique
In recent years, cluster file system has become the new trend of technical development of computer.Cluster file system pass through by
Multiple single independent hosts organically combine and are connected into a systematic entirety, and rely on storage area network, externally mention
For the shared storage application of a large capacity file system, online non-volume environmental applications in storage area network are realized.
Even so, when non-volume software reads a large amount of video file in cluster-based storage, it still will cause non-volume software
Middle video preview loaded slow problem.How to guarantee that non-volume software in video file on a large amount of lines of loading processing, is protected simultaneously
Fluency is demonstrate,proved, the consumption to cluster resource is reduced, is all urgent problem.
Summary of the invention
One of purpose of the invention is to propose the processing method and video file processing system of a kind of video file,
It solves the prior art and loaded slow technical problem there are video preview.It is preferred in many technical solutions provided by the invention
Many technical effects elaboration as detailed below that technical solution can be generated.
To achieve the above object, the present invention provides following technical schemes:
The present invention provides a kind of processing method of video file, the processing method of the video file includes:
S1, identification are stored in the video file of cluster file system, judge whether the video file is to be treated
Video file;If the video file is not required to the video file of processing, this document is not handled;If the video
File is video file to be treated, then it is handled as follows;
S2, the first frame for extracting video file to be treated, and be saved in cluster file system.
Preferably, the processing method of the video file further include:
S3, non-volume software transfer video file;
S4, the video file address according to request, video file processing system return video file address and preservation
First frame file address.
Preferably, the processing method of the video file further include:
Before the first frame file address that video file processing system returns to video file address and preservation, judge that non-volume is soft
The first frame file for the video file whether part requests, if not compiling software requests the first frame file of video file, then video file
Processing system returns to the first frame file address of video file address and preservation, if not compile the head that software does not request video file
Frame file is then returned only to video file address.
Preferably, the processing method of the video file further include:
Specified folder in cluster file system is monitored, monitors whether new video file write-in cluster text
Part system starts to carry out step S1 if monitoring new file write-in cluster file system.
Preferably, the processing method of the video file further include:
Specified folder in cluster file system is monitored, whether the video file in monitoring cluster file system
Variation occurred, if variation occurred for the video file monitored in cluster file system, starts to carry out step S1, in step
In S2, the first frame of the video file after variation is saved in cluster file system and replaces the first frame for changing preceding video file.
Preferably, the step S1 of the processing method of the video file includes:
Whether the suffix name that video file is identified by way of poll is video file to be treated.
Preferably, the step S2 of the processing method of the video file includes:
According to the storage of format needed for non-volume software head frame preview into first frame memory module.
The present invention also provides a kind of video file processing system, the video file processing system uses above-mentioned video text
The processing method of part, the video file processing system include:
Cluster file system, for storing video file;
Identification module is stored in the video file of cluster file system for identification, judge the video file whether be
Video file to be treated;
Processing module, for handling video file to be treated;
First frame extraction module, for extracting the first frame of video file to be treated;
Non- volume software transfer interface, for non-volume software transfer video file and the first frame of video file.
Preferably, the video file processing system further include:
Monitoring module monitors whether new video for being monitored to the specified folder in cluster file system
Whether file write-in cluster file system and/or the video file monitored in cluster file system occurred variation.
Preferably, the cluster file system includes:
Metadata storage module, for storing video file;
First frame memory module, for storing the first frame of video file, the head frame memory module is hidden module.
Based on the above-mentioned technical proposal, the embodiment of the present invention at least can produce following technical effect: improving non-volume software and exists
Fluency in video file treatment process.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the processing method of video file provided by the embodiment of the present invention;
Fig. 2 is the flow chart of the processing method of video file provided by first embodiment of the invention;
Fig. 3 is the flow chart of the processing method of video file provided by second embodiment of the invention;
Fig. 4 is the schematic diagram of the video file processing system of video file provided by the embodiment of the present invention.
Appended drawing reference:
1- cluster file system;11- metadata storage module;12- head frame memory module;2- identification module;3- handles mould
Block;4- head frame extraction module;The non-volume software transfer interface of 5-;6- monitoring module.
Specific embodiment
Be referred to attached drawing FIG. 1 to FIG. 4 below and word content understand the contents of the present invention and the present invention with it is existing
Distinctive points between technology.Hereafter attached drawing and by way of enumerating some alternative embodiments of the invention, to of the invention
Technical solution (including optimal technical scheme) is described in further detail.It should be understood that any skill in the present embodiment
Art feature, any technical solution are the technical characteristic or one or more of optional technical solution of plurality of optional, in order to
Description it is succinct need all alternative technical characteristics of the invention impossible to exhaust and alternative technical side in this document
Case, the embodiment for being also not easy to each technical characteristic emphasize it for one of optional numerous embodiments, so this field
Technical staff should know: any technological means provided by the invention can be replaced or by provided by the invention any two
A or more technical means or technical features, which are combined with each other, obtains new technical solution.Any skill in the present embodiment
Art feature and any technical solution do not limit the scope of the invention, and protection scope of the present invention should include this field
Technical staff does not make the creative labor the thinkable any alternate embodiments of institute and those skilled in the art will be of the invention
Any two or more technical means or technical features of offer technical solution new obtained from being combined with each other.
The embodiment of the invention provides a kind of processing method of video file and video file processing systems, can improve
The non-fluency for compiling software in video file treatment process.
Technical solution provided by the invention is illustrated in more detail below with reference to FIG. 1 to FIG. 4.
As shown in Figure 1, a kind of processing method of video file, the place of the video file provided by the embodiment of the present invention
Reason method includes:
S1, identification are stored in the video file of cluster file system 1, judge whether the video file is to be treated
Video file;If the video file is not required to the video file of processing, this document is not handled;If the video
File is video file to be treated, then it is handled as follows;
S2, the first frame for extracting video file to be treated, and be saved in cluster file system.
The processing method of above-mentioned video file is mentioned by pre-processing the video file being stored in cluster file system 1
The first frame of video file is taken, such processing mode can to directly acquire view when non-software for editing calls video file
The first frame of frequency file changes to be effectively prevented from using slow problem was loaded for the first time when non-volume software editing video file
It is apt to fluency of the non-volume software in video file treatment process.Wherein, the video text of cluster file system 1 is stored in identification
When part, can identify whether the suffix name of video file is video file to be treated by way of poll.It is being saved in
It, can be according to the first frame of format storage needed for non-volume software head frame preview to cluster file system 1 when in cluster file system
In memory module 12.
Preferably, the processing method of the video file further include:
S3, non-volume software transfer video file;
S4, the video file address according to request, video file processing system return video file address and preservation
First frame file address.
Preferably, before the first frame file address that video file processing system returns to video file address and preservation, sentence
Break the non-first frame file for compiling the video file whether software requests, if not the first frame file that software requests video file is compiled, then
Video file processing system returns to the first frame file address of video file address and preservation, if not compiling software does not request video
The first frame file of file, then be returned only to video file address.
As shown in Fig. 2, the processing method of the video file further include:
Specified folder in cluster file system is monitored, monitors whether new video file write-in cluster text
Part system starts to carry out step S1, by cluster file system if monitoring new file write-in cluster file system
In specified folder be monitored, the identification movement such as video file can be started when in need, reduce operation
Pressure.
As shown in figure 3, the processing method of the video file further include:
Specified folder in cluster file system is monitored, whether the video file in monitoring cluster file system
Variation occurred, if variation occurred for the video file monitored in cluster file system, starts to carry out step S1, in step
In S2, the first frame of the video file after variation is saved in cluster file system and replaces the first frame for changing preceding video file.Together
The reason of sample can start identification by being monitored to the specified folder in cluster file system when in need
The movement such as video file, reduces the pressure of operation.That is the specified folder in cluster file system is monitored
On the one hand it can monitor whether new video file write-in cluster file system, on the other hand can also monitor group document system
Whether the video file in system occurred variation, the two aspects can reach starting identification video text when in need
The movement such as part, reduces the purpose of operating pressure.
As shown in figure 4, the video file processing system uses the present invention also provides a kind of video file processing system
The processing method of above-mentioned video file, the video file processing system include:
Cluster file system 1, for storing video file;
Identification module 2 is stored in the video file of cluster file system 1 for identification, whether judges the video file
For video file to be treated;
Processing module 3, for handling video file to be treated;
First frame extraction module 4, for extracting the first frame of video file to be treated;
Non- volume software transfer interface 5, for non-volume software transfer video file and the first frame of video file.
The video file processing system identifies the video text for being stored in cluster file system 1 by identification module 2 first
Part judges whether the video file is video file to be treated, and is stored in cluster by the pre-processing of processing module 3
Video file in file system 1, the first frame of video file is extracted by first frame extraction module 4, and such processing mode can be with
So that the first frame of video file is directly acquired when non-software for editing calls video file using non-volume software transfer interface 5, from
And be effectively prevented from using slow problem was loaded when non-volume software editing video file for the first time, improve non-volume software in video
Fluency in file handling procedure.
Wherein, when the video file of cluster file system 1 is stored in identification, video can be identified by way of poll
Whether the suffix name of file is video file to be treated.It, can be soft according to non-volume when being saved in cluster file system
Format needed for part head frame preview stores the first frame of video file into the first frame memory module 12 of cluster file system 1, will
Video file is stored into metadata storage module 11.
Preferably, video file processing system further include: monitoring module 6, for the specified text in cluster file system 1
Part folder is monitored, which can monitor whether new video file write-in cluster file system, can also be monitored
Whether the video file in cluster file system occurred variation.It can achieve starting identification video file when in need
Deng movement, the purpose of operating pressure is reduced.
Any technical solution disclosed in aforementioned present invention unless otherwise stated, if it discloses numberical range,
Disclosed numberical range is preferred numberical range, and any it should be appreciated by those skilled in the art preferred numberical ranges
The only obvious or representative numerical value of technical effect in many enforceable numerical value.It, can not since numerical value is more
Exhaustion, so the present invention just discloses technical solution of the component values to illustrate the present invention, also, the above-mentioned numerical value enumerated is not
The limitation to the invention protection scope should be constituted.
If the words such as " first ", " second " are used herein come if limiting components, those skilled in the art are answered
This knows: the use of " first ", " second " is intended merely to facilitate in description and is distinguished components as not having Stated otherwise
Outside, above-mentioned word has no special meaning.
Meanwhile if aforementioned present invention discloses or relates to the components or structural member of connection fastened to each other, except another
There is statement outer, is fixedly connected it is to be understood that connection (such as using bolt or screw connection) can be removedly fixed, it can also be with
Understand are as follows: non-removable to be fixedly connected with (such as riveting, welding), certainly, connection fastened to each other or integral structure
(such as manufacturing using casting technique is integrally formed) is replaced (obviously can not be using except integrally formed technique).
In addition, for indicating the art of positional relationship or shape applied in any technical solution disclosed in aforementioned present invention
Its meaning includes approximate with its, similar or close state or shape to language unless otherwise stated.Either component provided by the invention
Either being assembled by multiple individual component parts, or the separate part that integrally formed technique manufactures.
Finally it should be noted that: the above embodiments are merely illustrative of the technical scheme of the present invention and are not intended to be limiting thereof;To the greatest extent
The present invention is described in detail with reference to preferred embodiments for pipe, it should be understood by those ordinary skilled in the art that: still
It can modify to a specific embodiment of the invention or some technical features can be equivalently replaced;Without departing from this hair
The spirit of bright technical solution should all cover within the scope of the technical scheme claimed by the invention.