CN103838742B - A kind of compression parameters treating method and apparatus of multimedia file - Google Patents
A kind of compression parameters treating method and apparatus of multimedia file Download PDFInfo
- Publication number
- CN103838742B CN103838742B CN201210477551.8A CN201210477551A CN103838742B CN 103838742 B CN103838742 B CN 103838742B CN 201210477551 A CN201210477551 A CN 201210477551A CN 103838742 B CN103838742 B CN 103838742B
- Authority
- CN
- China
- Prior art keywords
- file
- compression
- parameter configuration
- index configurations
- configuration files
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M7/00—Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
- H03M7/30—Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
This application provides a kind of compression parameters treating method and apparatus of multimedia file, it is related to multimedia file process field.Described device includes:Compression parameters receiving module, for receiving various compression parameters and index configurations filename for various types of compression duties;File generating module, for generating the parameter configuration files of index configurations file and the storage actual compression parameter generated according to the compression parameters according to index configurations filename;And the index configurations file and parameter configuration files are corresponded;File conduction module, is instructed for being exported according to parameter configuration files, and the module of compression duty is extremely performed using index configurations file and the lookup of the corresponding relation of parameter configuration files and derived parameter configuration file;The parameter configuration files export instruction is by the module of execution compression duty according to index configurations file generated.The application facilitates domestic consumer intuitively to carry out acquisition compression parameters, can save the operating procedure of user.
Description
Technical field
The application is related to multimedia file process field, more particularly to a kind of compression parameters processing side of multimedia file
Method and device.
Background technology
For TV station, there is substantial amounts of multimedia file in it, and for these multimedia files, itself
Format there may be difference, finally play the multimedia file access device may there is also difference, each access device
Place network also likely to be present difference, then in order that between heterogeneous network, between different access devices and different multimedia
Seamless connection can be realized between data format, for so needing to pack to these multimedia files, transcoding, is included
Operation, and for packing, transcoding, the operation such as include and be directed to compression parameters (such as Document encapsulation form and compressed format ginseng
Number) setting.
In the prior art, when being compressed every time to a multimedia file, it is necessary to which basis will before compression process performs
Parameter of destination multimedia file being compressed into etc. one one is configured, and then could carry out substantive compression process.And
Existing video compress instrument, which generally requires user, deep understanding to the professional knowledge of media, and sets suitable compression ginseng
Number, can just access preferable compression effectiveness.For common public users, this video compress instrument uses threshold
It is too high, it is therefore desirable to provide a kind of utility of simple and fast to meet this kind of compression requirements, and for same type
Compression duty, it is required for carrying out the configuration of all compression parameters every time manually, its operating procedure redundancy, complexity, has a strong impact on whole
The efficiency of individual compression process.
The content of the invention
Technical problems to be solved in this application are to provide a kind of compression parameters treating method and apparatus of multimedia file,
And the compression method and device of a kind of media file.
In order to solve the above problems, this application discloses a kind of multimedia file compression parameters processing unit, including:
Compression parameters receiving module, various compression parameters and index for receiving for various types of compression duties are matched somebody with somebody
Put filename;
File generating module, for generating index configurations file and according to the compression parameters according to index configurations filename
The parameter configuration files of the storage actual compression parameter of generation;And by a pair of the index configurations file and parameter configuration files 1
Should;
File conducts module, is instructed for being exported according to parameter configuration files, utilizes index configurations file and parameter configuration
The corresponding relation of file is searched and derived parameter configuration file extremely performs the module of compression duty;The parameter configuration files export
Instruction is by the module of execution compression duty according to index configurations file generated.
Preferably, the file generating module includes:
Judge module, for judging to whether there is the index configurations filename in index configurations library;
First file generating module, for if it does not exist, then generating index configurations text according to the index configurations filename
Part, the unique parameter configuration files of Parameter File name are generated according to the compression parameters, and by the rope of the index configurations file
The Parameter File name for drawing configuration filename and parameter configuration files is corresponded;
Notification module, for if it is present notify the first user to update the index configurations filename, rejudging rope
Draw the step of whether there is the index configurations filename in configuration file storehouse.
Preferably, the file generating module or the first file generating module include:
Modular converter, for by each compression parameters, being converted to binary parameters generation binary parameters configuration file.
The invention also discloses a kind of compressibility of multimedia file, including:
Compression parameters receiving module, various compression parameters and index for receiving for various types of compression duties are matched somebody with somebody
Put filename;
File generating module, for generating index configurations file and according to the compression parameters according to index configurations filename
The parameter configuration files of the storage actual compression parameter of generation;And by a pair of the index configurations file and parameter configuration files 1
Should;
File conducts module, is instructed for being exported according to parameter configuration files, utilizes index configurations file and parameter configuration
The corresponding relation of file is searched and derived parameter configuration file extremely performs the module of compression duty;
File import modul, for receiving the index configurations file imported;According to index configurations file generated parameter configuration
File export instruction, and the parameter configuration files are exported instruction and sent to file and conduct module;
Parsing module is read, for reading the parameter configuration files, and is parsed accordingly from the parameter configuration files
Compression parameters;
Compression module, for performing the compression process for the multimedia file according to the compression parameters.
Preferably, the file generating module includes:
Modular converter, for by each compression parameters, being converted to binary data generation binary parameters configuration file.
The further reading parsing module includes:
Decoder module, for carrying out binary decoded to the binary parameters configuration file;
Extraction module, for extracting the compression parameters from decoded obtained parameter configuration files.
The invention also discloses a kind of multimedia file compression method, including:
For the compression duty of a multimedia file, respective type is imported from index database according to the affiliated type of compression duty
Index configurations file;
According to the index configurations file and the corresponding relation of parameter configuration files, searched simultaneously in parameter configuration files storehouse
Parameter configuration files corresponding to importing;
The parameter configuration files are read, and corresponding compression parameters are parsed from the parameter configuration files;
The compression process for the multimedia file is performed according to the compression parameters;
Wherein, the index configurations file and the corresponding relation of parameter configuration files obtain as follows:
Receive the various compression parameters and index configurations filename for various types of compression duties;
Index configurations file and the actual pressure of storage generated according to the compression parameters are generated according to index configurations filename
The parameter configuration files of contracting parameter;And the index configurations file and parameter configuration files are corresponded.
Preferably, it is described that index configurations file is generated and according to compression parameters generation according to index configurations filename
The parameter configuration files of storage actual compression parameter include:
Judge to whether there is the index configurations filename in index configurations library;
If it does not exist, then generating index configurations file according to the index configurations filename, given birth to according to the compression parameters
Into the unique parameter configuration files of Parameter File name, and by the index configurations filename and parameter configuration of the index configurations file
The Parameter File name of file is corresponded;
If it is present notifying the first user to update the index configurations filename, index configurations library is rejudged
In the step of whether there is the index configurations filename.
Preferably, it is described to be included according to compression parameters generation parameter configuration files:
By each compression parameters, binary parameters generation binary parameters configuration file is converted to.
Preferably, it is described to read the parameter configuration files, and corresponding compression ginseng is parsed from the parameter configuration files
Number includes:
Binary decoded is carried out to the binary parameters configuration file;
The compression parameters are extracted from decoded obtained parameter configuration files.
Compared with prior art, the application includes advantages below:
The application is directed to the compression parameters that a kind of compression duty needs, and parameter pair can be briefly explained by compression set generation
The index configurations file of type is answered, with the parameter configuration files of generation storage actual compression parameter, passes through index configurations file rope
Draw and search the parameter configuration files, the compression parameters that each type of compression duty demand can be then directed to by this kind of mode enter
The unified configuration of row, and carried out correspondingly by index configurations file.Then when being compressed, it is only necessary to which domestic consumer passes through importing
Index, the parameter configuration files that then compression set can be by index search to corresponding configuration actual parameter, and from the parameter
Corresponding compression parameters are extracted in configuration file and are compressed process, possess considerable degree of professional knowledge without domestic consumer
The file that gets parms is compressed, and is directed to same type of multinomial compression duty, can be used with a set of configuration file
It is compressed, without repeating to configure, saves the number of operations of user.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 is a kind of structural representation of multimedia file compression parameters processing unit of the present invention;
Fig. 2 is a kind of structural representation of the compressibility of multimedia file of the present invention;
Fig. 3 is a kind of schematic flow sheet of multimedia file compression method of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
Reference picture 1, a kind of structural representation of multimedia file compression parameters processing unit of the application is shown, specifically may be used
With including:
Compression parameters receiving module 110, for receiving various compression parameters and rope for various types of compression duties
Draw configuration filename;
When being compressed to multimedia file, it is necessary to according to the type of compression duty set various compression parameters (namely
Transcoding parameter), wherein the transcoding parameter includes video code conversion parameter and audio transcoding parameter, wherein, the video code conversion ginseng
Number includes:Target video encoder type, target video encoder bit rate, target video coding frame per second, target video resolution ratio etc.
Deng;The audio transcoding parameter includes:Target audio encoder type, target audio encoder bit rate, target audio port number, mesh
Mark audio sample rate etc..And this for the few domestic consumer of the related professional knowledge compressed to multimedia file for,
Basically can not correctly and completely it configure.
So in the embodiment of the present invention, then a multimedia file compression parameters processing unit is built, by technical staff's pin
To the compression requirements of different programs, corresponding compression parameters are configured to index configurations document form simple to operation, made general
General family can conveniently be operated.
That is, technical staff will be defeated for the various compression parameters of various types of compression duties and index configurations filename
Enter the compression parameters receiving module of the present invention.For example for the video and audio file that some video camera is recorded, there are A programs and B programs
Need to use the video and audio file, but the compression parameters of compression duty that A programs need with B programs are different, then can be by skill
Art personnel input compression parameters receiving module for the compression parameters and index configurations filename of A programs, then by subsequent module
Generate parameter configuration files A and index configurations file A*;Compression parameters and the input compression of index configurations filename for A programs
Parameter receiving module, parameter configuration files B and index configurations file B* is then generated by subsequent module.
File generating module 120, for generating index configurations file and according to the compression according to index configurations filename
The parameter configuration files of the storage actual compression parameter of parameter generation;And by the index configurations file and parameter configuration files one
One correspondence;
Match somebody with somebody in the various compression parameters and index that compression parameters receiving module is received for various types of compression duties
After putting filename, file generating module then can generate index configurations file according to index configurations filename and be joined according to the compression
The parameter configuration files of the storage actual compression parameter of number generation;And by the index configurations file and parameter configuration files one by one
It is corresponding.
In embodiments of the present invention, the compression parameters and index configurations filename for the compression duty appointed for a type, one
Two ini files (.ini files are Initialization File abbreviation, i.e. initialization files) of secondary configuration generation, one
For index configurations ini file, one is parameter configuration ini file, and index configurations ini file is used to search parameter configuration ini texts
Part, the actual compression parameters of parameter configuration ini file storage.
Wherein, ini file is made up of section, key, value:
Section
[section]
Parameter (key=value)
Name=value
Explain
Explain using branch represent (;).Word behind branch, until all notes of the line endings.
;The example (content of configuration file) of the data format of comment textINI files
[Section1 Name]
KeyName1=value1
KeyName2=value2
[Section2 Name]
KeyName21=value21
KeyName22=value22
Wherein:
[Section1 Name] is used for representing a paragraph.
Because ini file is probably to be shared in project, different use are distinguished using [Section Name] section name
The parameter region on way.KeyName1=value1 is used for representing a parameter name and value.
In embodiments of the present invention, such as aforementioned program A compression duty compression parameters, can be first according to reception
Index file name A, in compression duty file directory generate A.ini files, wherein in A.ini files
[Section1 Name]
KeyName1=value1
Then generate the parameter configuration files name A* and storage location m of the ini file for storing actual compression task parameters;
Then the parameter configuration files for storing actual compression parameter are then generated according to parameter configuration files name A* and storage location m
A*.ini, it is therein each
[Sectioni Name]
KeyNamei=valuei
Then it is used to store various compression parameters.
Wherein, optionally, the file generating module includes:
Judge module, for judging to whether there is the index configurations filename in index configurations library;
In embodiments of the present invention, for the name of index file, it is understood that there may be repeat, if there is repetition, then rope
The correspondence for drawing configuration file and actual parameter configuration files then there may be conflict correspondence wrong in other words, then in order to keep away
Exempt from above mentioned problem, then need to judge to whether there is the index configurations filename in index configurations library.Rope in the present invention
It can be file or the library of other forms to draw configuration file storehouse.
First file generating module, for if it does not exist, then generating index configurations text according to the index configurations filename
Part, the unique parameter configuration files of Parameter File name are generated according to the compression parameters, and by the rope of the index configurations file
The Parameter File name for drawing configuration filename and parameter configuration files is corresponded;
If the index configurations filename is not present in configuration file storehouse, such as preceding index configuration filename A, if institute
There is the ini file i.e. A.ini that the entitled A of index file is not present in configuration file storehouse, then generate A.ini, it is then raw in A.ini
Into a parameter configuration files name A* and store path m;, can be by the parameter configuration text of generation when generating parameter configuration files name
Part name A* is matched with the configuration filename in parameter configuration files storehouse, if there is no the parameter configuration files name, then
The parameter configuration files name is confirmed, if it is present automatically generating another parameter configuration files name until parameter configuration files
Name is unique.The parameter configuration files name A* and store path m confirmed is then based on, ginseng is generated with reference to the various compression parameters of reception
Number configuration file A*.ini, wherein storing actual compression parameters.
Notification module, for if it is present notify the first user to update the index configurations filename, rejudging rope
Draw the step of whether there is the index configurations filename in configuration file storehouse.
If the index configurations filename in configuration file storehouse be present, the first user (namely technical staff) weight is notified
Whether unique new input index configurations filename, then rejudge the configuration filename.
Wherein, it is preferred that the file generating module or the first file generating module include:
Modular converter, for by each compression parameters, being converted to binary parameters generation binary parameters configuration file.
In embodiments of the present invention, can will be various in order to avoid parameter is shown in parameter configuration files with readable state
The compression parameters of plaintext are converted into non-readable content, for example various compression parameters are converted into binary parameters, and then generate
Binary parameters configuration file.
Certainly, the parameter of the type of octal system, hexadecimal etc. is also can be exchanged into embodiments of the present invention, can also be entered
Row encryption storage.
File conduct module 130, for according to parameter configuration files export instruction search and derived parameter configuration file extremely
Perform the module of compression duty;The parameter configuration files export instruction is by the module of execution compression duty according to index configurations text
Part generates.
After generation index configurations file and relevant parameter configuration file, in order to facilitate second user, (namely operation is specific
The user of compression duty, including domestic consumer) use, then there is provided file to conduct module, when second user is compressed, then
The index configurations file of corresponding compression duty can be selected to import the module for performing compression duty from index file storehouse, perform pressure afterwards
The module of contracting task exports to instruct and send to file according to the index configurations file generated parameter configuration files conducts module,
Circular document conduction module is searched and derived parameter configuration file is to the module for performing compression duty, wherein being to utilize rope in lookup
The corresponding relation for drawing configuration file and parameter configuration files is searched.
Reference picture 2, it illustrates a kind of structural representation of the compressibility of multimedia file of the present invention, including:
Compression parameters receiving module 210, for receiving various compression parameters and rope for various types of compression duties
Draw configuration filename;
File generating module 220, for generating index configurations file and according to the compression according to index configurations filename
The parameter configuration files of the storage actual compression parameter of parameter generation;And by the index configurations file and parameter configuration files one
One correspondence;
Optionally, the file generating module includes:
Modular converter, for by each compression parameters, being converted to binary data generation binary parameters configuration file.
File conducts module 230, instructs for being exported according to parameter configuration files, is matched somebody with somebody using index configurations file with parameter
The corresponding relation for putting file searches the module that simultaneously derived parameter configuration file extremely performs compression duty;
The principle of the similar module with Fig. 1 embodiments of module 210 to 230 is similar, will not be described in detail herein.
File import modul 240, for receiving the index configurations file imported;Matched somebody with somebody according to index configurations file generated parameter
File export instruction is put, and the parameter configuration files are exported instruction and sent to file and conduct module;
The user of specific compression duty is performed, can be gone to configure library selection phase according to oneself business demand compression type
The index configurations file answered, is then introduced into file import modul;File import modul is according to index configurations file generated parameter text
Part export instruction, and the Parameter File is exported instruction and sent to file and conducts module, file conduction module receives parameter
After configuration file export instruction, using the corresponding relation of the index configurations file parameters configuration file, simultaneously derived parameter is searched
Configuration file is to file import modul;
Parsing module 250 is read, for reading the parameter configuration files, and phase separation is solved from the parameter configuration files
Answer compression parameters;
After file import modul obtains parameter configuration files, then by reading parsing module from the parameter configuration files
The compression parameters that parsing compression duty is used.
It is foregoing including modular converter in the case of, further,
The further reading parsing module includes:
Decoder module, for carrying out binary decoded to the binary parameters configuration file;
Extraction module, for extracting the compression parameters from decoded obtained parameter configuration files.
For the binary parameters configuration file of foregoing modular converter conversion, in order that compression module can be read specifically
Compression parameters, then need binary parameters configuration file carrying out binary decoded, obtain the readable compression parameters of compression module.
Compression module 260, for performing the compression process for the multimedia file according to the compression parameters.
After various compression parameters are obtained, compression module can perform according to each compression parameters and be directed to the multimedia file
Compression process.
Reference picture 3, it illustrates a kind of schematic flow sheet of multimedia file compression method, including:
Step 310, for the compression duty of a multimedia file, imported according to the affiliated type of compression duty from index database
The index configurations file of respective type;
The user of specific compression duty is performed, for the compression duty of a multimedia file, according to belonging to compression duty
Type imports the index configurations file of respective type from index database.Such as program A, it is necessary to regard sound by what is broadcasted in program A
The video and audio file of frequency file boil down to program A demands, then selection program A for index configurations file A.ini import.
The step can be performed by file import modul in practice, i.e., the foregoing user for performing specific compression duty, can root
According to oneself business demand compression type, go to configure the corresponding index configurations file of library selection, be then introduced into file and import mould
Block;File import modul is exported according to index configurations file generated Parameter File and instructed, and the Parameter File is exported and instructed
Send to file and conduct module.
Step 320, according to the index configurations file and the corresponding relation of parameter configuration files, in parameter configuration files storehouse
It is middle to search and import corresponding parameter configuration files;
After index configurations file is obtained, you can according to pre-configured index configurations file and parameter configuration files
Corresponding relation is searched in parameter configuration files storehouse and imports corresponding parameter configuration files.
In practice, this step can conduct module by file and perform.File conduction module receives parameter configuration files export
After instruction, using the corresponding relation of the index configurations file parameters configuration file, search and derived parameter configuration file is to text
Part import modul.
Step 330, the parameter configuration files are read, and corresponding compression parameters are parsed from the parameter configuration files;
In practice, this step can be performed by reading parsing module.
Step 340, the compression process for the multimedia file is performed according to the compression parameters;
Wherein, the index configurations file and the corresponding relation of parameter configuration files obtain as follows:
Step 350, the various compression parameters and index configurations filename for various types of compression duties are received;
Step 360, index configurations file is generated according to index configurations filename and deposited according to what the compression parameters generated
Store up the parameter configuration files of actual compression parameter;And the index configurations file and parameter configuration files are corresponded.
Optionally, it is described that index configurations file is generated and according to compression parameters generation according to index configurations filename
The parameter configuration files of storage actual compression parameter include:
Step S11, judge to whether there is the index configurations filename in index configurations library;
In embodiments of the present invention, for the name of index file, it is understood that there may be repeat, if there is repetition, then rope
The correspondence for drawing configuration file and actual parameter configuration files then there may be conflict correspondence wrong in other words, then in order to keep away
Exempt from above mentioned problem, then need to judge to whether there is the index configurations filename in index configurations library.Rope in the present invention
It can be file or the library of other forms to draw configuration file storehouse.
Step S12, if it does not exist, then index configurations file is generated according to the index configurations filename, according to the pressure
Contracting parameter generate the unique parameter configuration files of Parameter File name, and by the index configurations filename of the index configurations file with
The Parameter File name of parameter configuration files is corresponded;
If the index configurations filename is not present in configuration file storehouse, such as preceding index configuration filename A, if institute
There is the ini file i.e. A.ini that the entitled A of index file is not present in configuration file storehouse, then generate A.ini, it is then raw in A.ini
Into a parameter configuration files name A* and store path m;, can be by the parameter configuration text of generation when generating parameter configuration files name
Part name A* is matched with the configuration filename in parameter configuration files storehouse, if there is no the parameter configuration files name, then
The parameter configuration files name is confirmed, if it is present automatically generating another parameter configuration files name until parameter configuration files
Name is unique.The parameter configuration files name A* and store path m confirmed is then based on, ginseng is generated with reference to the various compression parameters of reception
Number configuration file A*.ini, wherein storing actual compression parameters.
Step S13, if it is present notifying the first user to update the index configurations filename, rejudge index and match somebody with somebody
Put the step of whether there is the index configurations filename in library.
If the index configurations filename in configuration file storehouse be present, the first user (namely technical staff) weight is notified
Whether unique new input index configurations filename, then rejudge the configuration filename.
Optionally, it is described to be included according to compression parameters generation parameter configuration files:
Step S21, by each compression parameters, be converted to binary parameters generation binary parameters configuration file;
Further, it is described to read the parameter configuration files, and corresponding compression is parsed from the parameter configuration files
Parameter includes:
Step S22, binary decoded is carried out to the binary parameters configuration file;
Step S23, the compression parameters are extracted from decoded obtained parameter configuration files.In the present invention, should
Packing, transcoding can be completed by reading binary profile file with program or the task such as includes, without every subtask all
Configure first compression parameter.Said apparatus is easy to use, once configures the work that nonexpondable characteristic greatly improves user
Efficiency, accomplish that Complicated Flow is simplified and technology is separated with using.
It should be noted that for above method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the application is not limited by described sequence of movement because
According to the application, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily the application
It is necessary.
For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with
The difference of other embodiment, between each embodiment identical similar part mutually referring to.
The present invention can be used in numerous general or special purpose computing system environments or configuration.Such as:Personal computer, service
Device computer, handheld device or portable set, laptop device, multicomputer system, the system based on microprocessor, network
PC, minicom, the DCE etc. of mainframe computer including any of the above system or equipment.
The present invention can be described in the general context of computer executable instructions, such as program
Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type
Part, data structure etc..The present invention can also be put into practice in a distributed computing environment, in these DCEs, by
Task is performed and connected remote processing devices by communication network.In a distributed computing environment, program module can be with
In the local and remote computer-readable storage medium including storage device.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between any this actual relation or order be present.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation
Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into having altered and changing for the application scope.
Above to a kind of compression parameters treating method and apparatus of multimedia file provided herein, and a kind of matchmaker
The compression method and device of body file, are described in detail, used herein principle and reality of the specific case to the application
The mode of applying is set forth, and the explanation of above example is only intended to help and understands the present processes and its core concept;Together
When, for those of ordinary skill in the art, according to the thought of the application, have in specific embodiments and applications
Change part, in summary, this specification content should not be construed as the limitation to the application.
Claims (9)
- A kind of 1. multimedia file compression parameters processing unit, it is characterised in that including:Compression parameters receiving module, for receiving various compression parameters and the index configurations text for various types of compression duties Part name;File generating module, for generating index configurations file according to index configurations filename and being generated according to the compression parameters Storage actual compression parameter parameter configuration files;And the index configurations file and parameter configuration files are corresponded;File conducts module, is instructed for being exported according to parameter configuration files, utilizes index configurations file and parameter configuration files Corresponding relation search and derived parameter configuration file to perform compression duty module;The parameter configuration files export instruction By the module of execution compression duty according to index configurations file generated.
- 2. device according to claim 1, it is characterised in that the file generating module includes:Judge module, for judging to whether there is the index configurations filename in index configurations library;First file generating module, for if it does not exist, then generating index configurations file, root according to the index configurations filename The unique parameter configuration files of Parameter File name are generated according to the compression parameters, and by the index configurations of the index configurations file The Parameter File name of filename and parameter configuration files is corresponded;Notification module, for if it is present notify the first user to update the index configurations filename, rejudging index and matching somebody with somebody Put the step of whether there is the index configurations filename in library.
- 3. device according to claim 1 or 2, it is characterised in that the file generating module or the first file generated Module includes:Modular converter, for by each compression parameters, being converted to binary parameters generation binary parameters configuration file.
- A kind of 4. compressibility of multimedia file, it is characterised in that including:Compression parameters receiving module, for receiving various compression parameters and the index configurations text for various types of compression duties Part name;File generating module, for generating index configurations file according to index configurations filename and being generated according to the compression parameters Storage actual compression parameter parameter configuration files;And the index configurations file and parameter configuration files are corresponded;File conducts module, is instructed for being exported according to parameter configuration files, utilizes index configurations file and parameter configuration files Corresponding relation search and derived parameter configuration file to perform compression duty module;File import modul, for receiving the index configurations file imported;According to index configurations file generated parameter configuration files Export instruction, and the parameter configuration files are exported instruction and sent to file and conduct module;Parsing module is read, for reading the parameter configuration files, and corresponding compression is parsed from the parameter configuration files Parameter;Compression module, for performing the compression process for the multimedia file according to the compression parameters.
- 5. system according to claim 4, it is characterised in thatThe file generating module includes:Modular converter, for by each compression parameters, being converted to binary data generation binary parameters configuration file;The further reading parsing module includes:Decoder module, for carrying out binary decoded to the binary parameters configuration file;Extraction module, for extracting the compression parameters from decoded obtained parameter configuration files.
- A kind of 6. multimedia file compression method, it is characterised in that including:For the compression duty of a multimedia file, the rope according to the affiliated type of compression duty from index database importing respective type Draw configuration file;According to the index configurations file and the corresponding relation of parameter configuration files, search and import in parameter configuration files storehouse Corresponding parameter configuration files;The parameter configuration files are read, and corresponding compression parameters are parsed from the parameter configuration files;The compression process for the multimedia file is performed according to the compression parameters;Wherein, the index configurations file and the corresponding relation of parameter configuration files obtain as follows:Receive the various compression parameters and index configurations filename for various types of compression duties;The storage actual compression for generating index configurations file according to index configurations filename and being generated according to the compression parameters is joined Several parameter configuration files;And the index configurations file and parameter configuration files are corresponded.
- 7. according to the method for claim 6, it is characterised in that described that index configurations text is generated according to index configurations filename The parameter configuration files of part and the storage actual compression parameter generated according to the compression parameters include:Judge to whether there is the index configurations filename in index configurations library;If it does not exist, then generating index configurations file according to the index configurations filename, generated and joined according to the compression parameters Number filename unique parameter configuration files, and by the index configurations filename and parameter configuration files of the index configurations file Parameter File name corresponded;If it is present notifying the first user to update the index configurations filename, rejudging in index configurations library is It is no the step of index configurations filename to be present.
- 8. the method according to claim 6 or 7, it is characterised in that described to generate parameter configuration according to the compression parameters File includes:By each compression parameters, binary parameters generation binary parameters configuration file is converted to.
- 9. according to the method for claim 8, it is characterised in thatIt is described to read the parameter configuration files, and parse corresponding compression parameters from the parameter configuration files and include:Binary decoded is carried out to the binary parameters configuration file;The compression parameters are extracted from decoded obtained parameter configuration files.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210477551.8A CN103838742B (en) | 2012-11-21 | 2012-11-21 | A kind of compression parameters treating method and apparatus of multimedia file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210477551.8A CN103838742B (en) | 2012-11-21 | 2012-11-21 | A kind of compression parameters treating method and apparatus of multimedia file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103838742A CN103838742A (en) | 2014-06-04 |
CN103838742B true CN103838742B (en) | 2017-11-10 |
Family
ID=50802256
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210477551.8A Expired - Fee Related CN103838742B (en) | 2012-11-21 | 2012-11-21 | A kind of compression parameters treating method and apparatus of multimedia file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103838742B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108009190B (en) * | 2017-08-17 | 2020-09-29 | 北京车和家信息技术有限责任公司 | Data export method, data export system and computer device |
CN109828955A (en) * | 2019-01-10 | 2019-05-31 | 浙江数链科技有限公司 | Document processing method, device, computer equipment and storage medium |
CN113992937A (en) * | 2021-10-09 | 2022-01-28 | 华夏文化传媒集团股份有限公司 | Culture and science and technology integrated digital propaganda system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1584875A (en) * | 2004-06-01 | 2005-02-23 | 北京九州计算机网络有限公司 | Ergodic compressing and decompressing method for batched computer document |
CN1612252A (en) * | 2003-10-31 | 2005-05-04 | 浙江中控技术股份有限公司 | Real-time data on-line compression and decompression method |
CN101770367A (en) * | 2009-12-30 | 2010-07-07 | 北京飞天诚信科技有限公司 | Compressing method and compressing device of .NET file |
CN102761339A (en) * | 2012-05-30 | 2012-10-31 | 北京奇虎科技有限公司 | Data compression method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4776113B2 (en) * | 2001-08-02 | 2011-09-21 | 三菱重工印刷紙工機械株式会社 | Printing unit for sheet-fed double-sided multicolor printing machine, sheet-fed double-sided multicolor printing machine, and manufacturing method |
-
2012
- 2012-11-21 CN CN201210477551.8A patent/CN103838742B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1612252A (en) * | 2003-10-31 | 2005-05-04 | 浙江中控技术股份有限公司 | Real-time data on-line compression and decompression method |
CN1584875A (en) * | 2004-06-01 | 2005-02-23 | 北京九州计算机网络有限公司 | Ergodic compressing and decompressing method for batched computer document |
CN101770367A (en) * | 2009-12-30 | 2010-07-07 | 北京飞天诚信科技有限公司 | Compressing method and compressing device of .NET file |
CN102761339A (en) * | 2012-05-30 | 2012-10-31 | 北京奇虎科技有限公司 | Data compression method and device |
Also Published As
Publication number | Publication date |
---|---|
CN103838742A (en) | 2014-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103838742B (en) | A kind of compression parameters treating method and apparatus of multimedia file | |
CN105391811A (en) | DNS (domain name resolution) method, access method for application server, and terminal | |
CN103636273A (en) | Method and apparatus for improving reception availability on multi-subscriber identity module devices | |
CN110445860A (en) | A kind of file transmitting method, device, terminal device and storage medium | |
CN105900400A (en) | Broadcast signal transmission method, broadcast signal transmission device, broadcast signal reception method, and broadcast signal reception device | |
CN105553934B (en) | Based on SAAS layers of omnipotent decoding methods of EAB of cloud platform | |
US10003669B2 (en) | Methods and apparatus to create and transmit a condensed logging data file | |
CN110381093A (en) | Method, apparatus, the system and electronic equipment of data transmission of data protocol conversion | |
CN102801723A (en) | Access device and method for Internet of things | |
CN107666483A (en) | A kind of conversion equipment for the multi-protocols for supporting multiple interfaces | |
CN103473913B (en) | Wireless data transmission method used for intelligent oil production system | |
IN2013MU03236A (en) | ||
CN108989422A (en) | A kind of message and document handling method and system | |
US20110055200A1 (en) | Method and apparatus for utilizing existing hash identifiers of decision diagrams | |
CN103763325B (en) | Method for building IP security product development environment | |
CN105516106A (en) | Packet packing method and device of message, and unpacking method and device of message | |
CN104866404B (en) | A kind of general data monitoring method | |
CN104021121B (en) | A kind of text data compression method, apparatus and server | |
CN109743643B (en) | Processing method and device for building intercom system | |
CN107172013A (en) | A kind of data transmission method and system | |
RU2014146752A (en) | METHOD FOR SYNTACTIC SERVICE ANALYSIS, FLEXIBLE ADAPTED TO IMS SYSTEM TAG | |
CN103078857A (en) | VoIP (Voice over Internet Protocol) Internet protocol component-based development method | |
CN109542953A (en) | Data processing method and device based on presto | |
US20160050298A1 (en) | Ontology-based waveform reconfiguration | |
Braa et al. | Sustainable mobile information infrastructures in low resource settings |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20180428 Address after: 100195 Beijing Haidian District West Fourth Ring Road North 131 new six layer Patentee after: Beijing Newauto Group Co.,Ltd. Address before: 100195 Haidian District Wukesong 49 new science and technology building, Beijing Patentee before: China Digital Video (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171110 Termination date: 20211121 |
|
CF01 | Termination of patent right due to non-payment of annual fee |