CN103838742A - Method and device for processing compression parameters of multimedia files - Google Patents

Method and device for processing compression parameters of multimedia files Download PDF

Info

Publication number
CN103838742A
CN103838742A CN201210477551.8A CN201210477551A CN103838742A CN 103838742 A CN103838742 A CN 103838742A CN 201210477551 A CN201210477551 A CN 201210477551A CN 103838742 A CN103838742 A CN 103838742A
Authority
CN
China
Prior art keywords
file
configuration files
parameter configuration
compression
index configurations
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.)
Granted
Application number
CN201210477551.8A
Other languages
Chinese (zh)
Other versions
CN103838742B (en
Inventor
王跃东
李庆庄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Newauto Group Co ltd
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN201210477551.8A priority Critical patent/CN103838742B/en
Publication of CN103838742A publication Critical patent/CN103838742A/en
Application granted granted Critical
Publication of CN103838742B publication Critical patent/CN103838742B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion 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/30Compression; 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

The invention provides a method and device for processing compression parameters of multimedia files, and relates to the field of multimedia file processing. The device comprises a compression parameter receiving module, a file generation module and a file conduction module, wherein the compression parameter receiving module is used for receiving various compression parameters and index configuration filenames in terms of compression tasks of different types; the file generation module is used for generating index configuration files according to the index configuration filenames and generating parameter configuration files for storing actual compression parameters according to the compression parameters; the index configuration files correspond to the parameter configuration files in a one-to-one mode; the file conduction module is used for leading out instructions according to the index configuration files and finding and leading out the parameter configuration files to a module used for executing the compression tasks by means of the corresponding relation of the index configuration files and the parameter configuration files; the lead-out instructions of the index configuration files are generated through the module used for executing the compression tasks according to the index configuration files. Accordingly, ordinary users can conveniently obtain the compression parameters visually, and operating steps carried out by the users can be reduced.

Description

A kind of compression parameters disposal route and device of multimedia file
Technical field
The application relates to multimedia file process field, particularly relates to a kind of compression parameters disposal route and device of multimedia file.
Background technology
For TV station, there is a large amount of multimedia files in it, and for these multimedia files, may there is difference in the format of itself, may also there is difference in the final access device of playing this multimedia file, also may there is difference in each access device place network, so in order to make between heterogeneous network, between different access devices and can realize seamless link between different multimedia data layout, for needing so, these multimedia files are packed, transcoding, the operation such as include, and for packing, transcoding, the operation such as include and all relate to the setting of compression parameters (such as file encapsulation format and compressed format parameter).
In prior art, in the time a multimedia file being compressed at every turn, need to be before compression process be carried out one one of the parameter etc. of the basis target multimedia file that will be compressed into be configured, then just can carry out the compression process of essence.And existing video compress instrument often needs user to have deep understanding to the professional knowledge of media, and suitable compression parameters is set, can obtains good compression effectiveness.For common public users, the use threshold of this video compress instrument is too high, therefore need to provide a kind of utility of simple and fast to meet this class compression requirements, and for the compression duty of same type, each configuration that all needs manually to carry out all compression parameters, its operation steps redundancy, complexity, have a strong impact on the efficiency of whole compression process.
Summary of the invention
Technical problems to be solved in this application are to provide a kind of compression parameters disposal route and device of multimedia file, and a kind of compression method of media file and device.
In order to address the above problem, the application discloses a kind of multimedia file compression parameters treating apparatus, comprising:
Compression parameters receiver module, for receiving various compression parameters and the index configurations filename for various types of compression duty;
File generating module, for the parameter configuration files of the storage actual compression parameter that generates according to index configurations filename generating indexes configuration file with according to described compression parameters; And described index configurations file is corresponding one by one with parameter configuration files;
File conduction module, for deriving instruction according to parameter configuration files, utilizes the corresponding relation of index configurations file and parameter configuration files to search also derived parameter configuration file to the module of carrying out compression duty; Described parameter configuration files derive instruction by the module of carrying out compression duty according to index configurations file generated.
Preferably, described file generating module comprises:
Judge module, for judging whether index configurations library exists described index configurations filename;
The first file generating module, be used for if there is no, according to this index configurations filename generating indexes configuration file, generate the unique parameter configuration files of Parameter File name according to described compression parameters, and the index configurations filename of described index configurations file is carried out corresponding one by one with the Parameter File name of parameter configuration files;
Notification module, if for existing, notify first user to upgrade described index configurations filename, rejudges the step that whether has described index configurations filename in index configurations library.
Preferably, described file generating module or the first file generating module comprise:
Modular converter, for by described each compression parameters, is converted to scale-of-two parameter and generates scale-of-two parameter configuration files.
The compressibility that the invention also discloses a kind of multimedia file, comprising:
Compression parameters receiver module, for receiving various compression parameters and the index configurations filename for various types of compression duty;
File generating module, for the parameter configuration files of the storage actual compression parameter that generates according to index configurations filename generating indexes configuration file with according to described compression parameters; And described index configurations file is corresponding one by one with parameter configuration files;
File conduction module, for deriving instruction according to parameter configuration files, utilizes the corresponding relation of index configurations file and parameter configuration files to search also derived parameter configuration file to the module of carrying out compression duty;
File imports module, for receiving the index configurations file of importing; Derive instruction according to index configurations file generated parameter configuration files, and described parameter configuration files derivation instruction is sent to file conduction module;
Read parsing module, for reading described parameter configuration files, and from described parameter configuration files, resolve corresponding compression parameters;
Compression module, for carrying out the compression process for described multimedia file according to described compression parameters.
Preferably, described file generating module comprises:
Modular converter, for by described each compression parameters, is converted to binary data and generates scale-of-two parameter configuration files.
Further, reading parsing module comprises:
Decoder module, for carrying out binary decoded to described scale-of-two parameter configuration files;
Extraction module, for extracting described compression parameters from the decoded parameter configuration files obtaining.
The invention also discloses a kind of multimedia file compression method, comprising:
For the compression duty of a multimedia file, import the index configurations file of respective type from index database according to the affiliated type of compression duty;
According to the corresponding relation of described index configurations file and parameter configuration files, in parameter configuration files storehouse, search and import corresponding parameter configuration files;
Read described parameter configuration files, and resolve corresponding compression parameters from described parameter configuration files;
Carry out the compression process for described multimedia file according to described compression parameters;
Wherein, the corresponding relation of described index configurations file and parameter configuration files obtains as follows:
Receive various compression parameters and index configurations filename for various types of compression duty;
The parameter configuration files of the storage actual compression parameter generating according to index configurations filename generating indexes configuration file with according to described compression parameters; And described index configurations file is corresponding one by one with parameter configuration files.
Preferably, the parameter configuration files of the described storage actual compression parameter generating according to index configurations filename generating indexes configuration file with according to described compression parameters comprises:
Judge and in index configurations library, whether have described index configurations filename;
If there is no, according to this index configurations filename generating indexes configuration file, generate the unique parameter configuration files of Parameter File name according to described compression parameters, and the index configurations filename of described index configurations file is carried out corresponding one by one with the Parameter File name of parameter configuration files;
If existed, notify first user to upgrade described index configurations filename, rejudge the step that whether has described index configurations filename in index configurations library.
Preferably, describedly generate parameter configuration files according to described compression parameters and comprise:
By described each compression parameters, be converted to scale-of-two parameter and generate scale-of-two parameter configuration files.
Preferably, described in read described parameter configuration files, and from described parameter configuration files, resolve corresponding compression parameters and comprise:
Described scale-of-two parameter configuration files is carried out to binary decoded;
From the decoded parameter configuration files obtaining, extract described compression parameters.
Compared with prior art, the application comprises following advantage:
The compression parameters that the application needs for a kind of compression duty, generate the index configurations file of energy brief description parameter corresponding types by compression set, with the parameter configuration files that generates storage actual compression parameter, search described parameter configuration files by index configurations file index, can unify configuration for the compression parameters of the compression duty demand of every type by this kind of mode, and carry out correspondence by index configurations file.Then in the time compressing, only need domestic consumer by importing index, then compression set just can arrive by index search the parameter configuration files of corresponding configuration actual parameter, and from this parameter configuration files, extract corresponding compression parameters and carry out compression process, the professional knowledge that possesses certain degree without the domestic consumer file that can get parms compresses, and for the multinomial compression duty of same type, can adopt and can compress with a set of configuration file, without repeated configuration, save user's number of operations.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of instructions, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Brief description of the drawings
By reading below detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skill in the art.Accompanying drawing is only for the object of preferred implementation is shown, and do not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 is the structural representation of a kind of multimedia file compression parameters of the present invention treating apparatus;
Fig. 2 is the structural representation of the compressibility of a kind of multimedia file of the present invention;
Fig. 3 is the schematic flow sheet of a kind of multimedia file compression method of the present invention.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, but should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can be by the those skilled in the art that conveys to complete the scope of the present disclosure.
With reference to Fig. 1, show the structural representation of a kind of multimedia file compression parameters of the application treating apparatus, specifically can comprise:
Compression parameters receiver module 110, for receiving various compression parameters and the index configurations filename for various types of compression duty;
In the time that multimedia file is compressed, need to various compression parameters (being also transcoding parameter) be set according to the type of compression duty, wherein said transcoding parameter comprises video code conversion parameter and audio conversion code parameters, wherein, described video code conversion parameter comprises: target video encoder type, target video encoder bit rate, target video coding frame per second, target video resolution etc.; Described audio conversion code parameters comprises: target audio encoder type, target audio encoder bit rate, target audio port number, target audio sampling rate etc.And this is for concerning the few domestic consumer of the relevant professional knowledge of multimedia file compression, configuration that substantially cannot be correct and complete.
So in the embodiment of the present invention, build a multimedia file compression parameters treating apparatus, compression requirements by technician for different programs, is configured to index configurations document form simple to operation by corresponding compression parameters, and domestic consumer can conveniently be operated.
Also, the various compression parameters for various types of compression duty and index configurations filename are inputted compression parameters receiver module of the present invention by technician.Such as the video and audio file of recording for certain video camera, there are A program and B program need to use this video and audio file, but A program is different with the compression parameters of the compression duty that B program needs, can input compression parameters receiver module for compression parameters and the index configurations filename of A program by technician so, then generate parameter configuration files A and index configurations file A* by subsequent module; For compression parameters and the index configurations filename input compression parameters receiver module of A program, then generate parameter configuration files B and index configurations file B* by subsequent module.
File generating module 120, for the parameter configuration files of the storage actual compression parameter that generates according to index configurations filename generating indexes configuration file with according to described compression parameters; And described index configurations file is corresponding one by one with parameter configuration files;
Receive after the various compression parameters and index configurations filename for various types of compression duty the parameter configuration files of the storage actual compression parameter that file generating module can generate according to index configurations filename generating indexes configuration file with according to described compression parameters at compression parameters receiver module; And described index configurations file is corresponding one by one with parameter configuration files.
In embodiments of the present invention, the compression parameters of the compression duty of appointing for a type and index configurations filename, (.ini file is the abbreviation of Initialization File to two ini files of a configuration integrate, be initialization files), one is index configurations ini file, one is parameter configuration ini file, and index configurations ini file is used for searching parameter configuration ini file, and parameter configuration ini file is stored actual compression parameters.
Wherein, ini file by saving, key, value form:
Joint
[section]
Parameter (key=value)
name=value
Explain
Explain use branch represent (; ).Word after branch, until this line endings is all to explain.
; The example (content of configuration file) of the data layout of comment textINI file
[Section1?Name]
KeyName1=value1
KeyName2=value2
...
[Section2?Name]
KeyName21=value21
KeyName22=value22
Wherein:
[Section1 Name] is used for representing a paragraph.
Because ini file may be to share in project, so use [Section Name] section name to distinguish the parameter region of different purposes.KeyName1=value1 is used for representing a parameter name and value.
In embodiments of the present invention, such as the compression parameters of the compression duty for aforementioned program A, can be first according to the index file name A receiving, in compression duty file directory, generate A.ini file, wherein in A.ini file
[Section1?Name]
KeyName1=value1
Generate parameter configuration files name A* and the memory location m of the ini file for storing actual compression task parameters; Then generate the parameter configuration files A*.ini for storing actual compression parameter according to parameter configuration files name A* and memory location m, wherein each
[Sectioni?Name]
KeyNamei=valuei
For storing various compression parameters.
Wherein, optional, described file generating module comprises:
Judge module, for judging whether index configurations library exists described index configurations filename;
In embodiments of the present invention, for the name of index file, may there is repetition, repeat if existed, may there is conflict wrong correspondence in other words in the correspondence of index configurations file and actual parameter configuration files so, so for fear of the problems referred to above, need to judge in index configurations library, whether have described index configurations filename.Index configurations library can be file in the present invention, can be also other forms of library.
The first file generating module, be used for if there is no, according to this index configurations filename generating indexes configuration file, generate the unique parameter configuration files of Parameter File name according to described compression parameters, and the index configurations filename of described index configurations file is carried out corresponding one by one with the Parameter File name of parameter configuration files;
If there is not described index configurations filename in configuration file storehouse, such as front index configuration filename A, if not having the ini file of index file A by name in all configuration files storehouse is A.ini, generate A.ini, then in A.ini, generate a parameter configuration files name A* and store path m; In the time generating parameter configuration files name, the parameter configuration files name A* of generation can be mated with the configuration filename in parameter configuration files storehouse, if there is no described parameter configuration files name, confirm this parameter configuration files name, if exist, automatically generate another parameter configuration files name until parameter configuration files name is unique.Then parameter configuration files name A* and the store path m based on confirming, generates parameter configuration files A*.ini in conjunction with the various compression parameters that receive, and wherein stores actual compression parameters.
Notification module, if for existing, notify first user to upgrade described index configurations filename, rejudges the step that whether has described index configurations filename in index configurations library.
If there is described index configurations filename in configuration file storehouse, notify first user (being also technician) to re-enter index configurations filename, whether uniquely then rejudge described configuration filename.
Wherein, preferred, described file generating module or the first file generating module comprise:
Modular converter, for by described each compression parameters, is converted to scale-of-two parameter and generates scale-of-two parameter configuration files.
In embodiments of the present invention, be shown in parameter configuration files with readable state for fear of parameter, the compression parameters of various plaintexts can be converted to non-readable content, such as various compression parameters are converted to scale-of-two parameter, and then generate scale-of-two parameter configuration files.
Certainly, also can be exchanged in embodiments of the present invention the parameter of the type of scale-of-eight, sexadecimal etc., also can be encrypted storage.
File conduction module 130, for derive according to parameter configuration files that instruction is searched and derived parameter configuration file to the module of carrying out compression duty; Described parameter configuration files derive instruction by the module of carrying out compression duty according to index configurations file generated.
After generating indexes configuration file and relevant parameter configuration file, in order to facilitate the second user (also to operate the user of concrete compression duty, comprise domestic consumer) use, be provided with file conduction module, in the time that the second user compresses, can from index file storehouse, select the index configurations file of corresponding compression duty to import the module of carrying out compression duty, the module of rear execution compression duty derives instruction according to described index configurations file generated parameter configuration files and is sent to file conduction module, circular document conduction module searches derived parameter configuration file are to the module of carrying out compression duty, wherein to utilize the corresponding relation of index configurations file and parameter configuration files to search searching.
With reference to Fig. 2, the structural representation that it shows the compressibility of a kind of multimedia file of the present invention, comprising:
Compression parameters receiver module 210, for receiving various compression parameters and the index configurations filename for various types of compression duty;
File generating module 220, for the parameter configuration files of the storage actual compression parameter that generates according to index configurations filename generating indexes configuration file with according to described compression parameters; And described index configurations file is corresponding one by one with parameter configuration files;
Optionally, described file generating module comprises:
Modular converter, for by described each compression parameters, is converted to binary data and generates scale-of-two parameter configuration files.
File conduction module 230, for deriving instruction according to parameter configuration files, utilizes the corresponding relation of index configurations file and parameter configuration files to search also derived parameter configuration file to the module of carrying out compression duty;
Module 210 to 230 is similar with the principle of the similar module of Fig. 1 embodiment, is not described in detail in this.
File imports module 240, for receiving the index configurations file of importing; Derive instruction according to index configurations file generated parameter configuration files, and described parameter configuration files derivation instruction is sent to file conduction module;
Carry out the user of concrete compression duty, can be according to own business demand compression type, configure library is selected corresponding index configurations file, then imports file and imports module; File imports module and derives instruction according to index configurations file generated Parameter File, and described Parameter File derivation instruction is sent to file conduction module, file conduction module receives parameter configuration files and derives after instruction, utilize the corresponding relation of described index configurations file parameters configuration file, search also derived parameter configuration file to file and import module;
Read parsing module 250, for reading described parameter configuration files, and from described parameter configuration files, resolve corresponding compression parameters;
Import module at file and obtain after parameter configuration files, from described parameter configuration files, resolve by reading parsing module the compression parameters that compression duty is used.
Aforementioned comprise modular converter in the situation that, further,
Further, reading parsing module comprises:
Decoder module, for carrying out binary decoded to described scale-of-two parameter configuration files;
Extraction module, for extracting described compression parameters from the decoded parameter configuration files obtaining.
For the scale-of-two parameter configuration files of aforementioned modular converter conversion, in order to make compression module can read concrete compression parameters, need scale-of-two parameter configuration files to carry out binary decoded, obtain the readable compression parameters of compression module.
Compression module 260, for carrying out the compression process for described multimedia file according to described compression parameters.
Obtaining after various compression parameters, compression module can be carried out the compression process for described multimedia file according to each compression parameters.
With reference to Fig. 3, the schematic flow sheet that it shows a kind of multimedia file compression method, comprising:
Step 310, for the compression duty of a multimedia file, imports the index configurations file of respective type from index database according to the affiliated type of compression duty;
Carry out the user of concrete compression duty, for the compression duty of a multimedia file, import the index configurations file of respective type from index database according to the affiliated type of compression duty.Such as for program A, the video and audio compressing file that need to broadcast at program A be the video and audio file of program A demand, select so program A for index configurations file A.ini import.
This step can import module execution by file in practice, i.e. the user of the concrete compression duty of aforementioned execution, can be according to own business demand compression type, and configure library is selected corresponding index configurations file, then imports file and imports module; File imports module and derives instruction according to index configurations file generated Parameter File, and described Parameter File derivation instruction is sent to file conduction module.
Step 320 according to the corresponding relation of described index configurations file and parameter configuration files, searches and imports corresponding parameter configuration files in parameter configuration files storehouse;
Obtaining after index configurations file, can in parameter configuration files storehouse, search and import corresponding parameter configuration files with the corresponding relation of parameter configuration files according to pre-configured index configurations file.
In reality, this step can be conducted module execution by file.File conduction module receives parameter configuration files and derives after instruction, utilizes the corresponding relation of described index configurations file parameters configuration file, searches also derived parameter configuration file to file and imports module.
Step 330, reads described parameter configuration files, and resolves corresponding compression parameters from described parameter configuration files;
In practice, this step can be carried out by reading parsing module.
Step 340, carries out the compression process for described multimedia file according to described compression parameters;
Wherein, the corresponding relation of described index configurations file and parameter configuration files obtains as follows:
Step 350, receives various compression parameters and index configurations filename for various types of compression duty;
Step 360, the parameter configuration files of the storage actual compression parameter generating according to index configurations filename generating indexes configuration file with according to described compression parameters; And described index configurations file is corresponding one by one with parameter configuration files.
Optionally, the parameter configuration files of the described storage actual compression parameter generating according to index configurations filename generating indexes configuration file with according to described compression parameters comprises:
Step S11, judges in index configurations library, whether there is described index configurations filename;
In embodiments of the present invention, for the name of index file, may there is repetition, repeat if existed, may there is conflict wrong correspondence in other words in the correspondence of index configurations file and actual parameter configuration files so, so for fear of the problems referred to above, need to judge in index configurations library, whether have described index configurations filename.Index configurations library can be file in the present invention, can be also other forms of library.
Step S12, if there is no, according to this index configurations filename generating indexes configuration file, generate the unique parameter configuration files of Parameter File name according to described compression parameters, and the index configurations filename of described index configurations file is carried out corresponding one by one with the Parameter File name of parameter configuration files;
If there is not described index configurations filename in configuration file storehouse, such as front index configuration filename A, if not having the ini file of index file A by name in all configuration files storehouse is A.ini, generate A.ini, then in A.ini, generate a parameter configuration files name A* and store path m; In the time generating parameter configuration files name, the parameter configuration files name A* of generation can be mated with the configuration filename in parameter configuration files storehouse, if there is no described parameter configuration files name, confirm this parameter configuration files name, if exist, automatically generate another parameter configuration files name until parameter configuration files name is unique.Then parameter configuration files name A* and the store path m based on confirming, generates parameter configuration files A*.ini in conjunction with the various compression parameters that receive, and wherein stores actual compression parameters.
Step S13, if existed, notifies first user to upgrade described index configurations filename, rejudges the step that whether has described index configurations filename in index configurations library.
If there is described index configurations filename in configuration file storehouse, notify first user (being also technician) to re-enter index configurations filename, whether uniquely then rejudge described configuration filename.
Optionally, describedly generate parameter configuration files according to described compression parameters and comprise:
Step S21, by described each compression parameters, is converted to scale-of-two parameter and generates scale-of-two parameter configuration files;
Further, described in read described parameter configuration files, and from described parameter configuration files, resolve corresponding compression parameters and comprise:
Step S22, carries out binary decoded to described scale-of-two parameter configuration files;
Step S23 extracts described compression parameters from the decoded parameter configuration files obtaining.In the present invention, application program is by the task such as reading binary profile file and can complete packing, transcoding or include, and do not need every subtask all will configure first compression parameter.Said apparatus be simple and easy to, once configure nonexpondable characteristic and greatly improve user's work efficiency, accomplished that Complicated Flow simplification and technology and use are separated.
It should be noted that, for said method embodiment, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the application is not subject to the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and related action and module might not be that the application is necessary.
For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and 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 computingasystem environment or configuration.For example: personal computer, server computer, handheld device or portable set, laptop device, multicomputer system, system based on microprocessor, network PC, small-size computer, mainframe computer, the distributed computing environment that comprises above any system or equipment etc.
The present invention can describe in the general context of computer executable instructions, for example program module.Usually, program module comprises and carries out particular task or realize routine, program, object, assembly, data structure of particular abstract data type etc.Also can in distributed computing environment, put into practice the present invention, in these distributed computing environment, be executed the task by the teleprocessing equipment being connected by communication network.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium including memory device.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.
Although described the application's preferred embodiment, once those skilled in the art obtain the basic creative concept of cicada, can make other change and amendment to these embodiment.So claims are intended to be interpreted as comprising preferred embodiment and fall into all changes and the amendment of the application's scope.
Compression parameters disposal route and the device of a kind of multimedia file above the application being provided, and a kind of compression method of media file and device, be described in detail, applied principle and the embodiment of specific case to the application herein and set forth, the explanation of above embodiment is just for helping to understand the application's method and core concept thereof; , for one of ordinary skill in the art, according to the application's thought, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application meanwhile.

Claims (9)

1. a multimedia file compression parameters treating apparatus, is characterized in that, comprising:
Compression parameters receiver module, for receiving various compression parameters and the index configurations filename for various types of compression duty;
File generating module, for the parameter configuration files of the storage actual compression parameter that generates according to index configurations filename generating indexes configuration file with according to described compression parameters; And described index configurations file is corresponding one by one with parameter configuration files;
File conduction module, for deriving instruction according to parameter configuration files, utilizes the corresponding relation of index configurations file and parameter configuration files to search also derived parameter configuration file to the module of carrying out compression duty; Described parameter configuration files derive instruction by the module of carrying out compression duty according to index configurations file generated.
2. device according to claim 1, is characterized in that, described file generating module comprises:
Judge module, for judging whether index configurations library exists described index configurations filename;
The first file generating module, be used for if there is no, according to this index configurations filename generating indexes configuration file, generate the unique parameter configuration files of Parameter File name according to described compression parameters, and the index configurations filename of described index configurations file is carried out corresponding one by one with the Parameter File name of parameter configuration files;
Notification module, if for existing, notify first user to upgrade described index configurations filename, rejudges the step that whether has described index configurations filename in index configurations library.
3. device according to claim 1 and 2, is characterized in that, described file generating module or the first file generating module comprise:
Modular converter, for by described each compression parameters, is converted to scale-of-two parameter and generates scale-of-two parameter configuration files.
4. a compressibility for multimedia file, is characterized in that, comprising:
Compression parameters receiver module, for receiving various compression parameters and the index configurations filename for various types of compression duty;
File generating module, for the parameter configuration files of the storage actual compression parameter that generates according to index configurations filename generating indexes configuration file with according to described compression parameters; And described index configurations file is corresponding one by one with parameter configuration files;
File conduction module, for deriving instruction according to parameter configuration files, utilizes the corresponding relation of index configurations file and parameter configuration files to search also derived parameter configuration file to the module of carrying out compression duty;
File imports module, for receiving the index configurations file of importing; Derive instruction according to index configurations file generated parameter configuration files, and described parameter configuration files derivation instruction is sent to file conduction module;
Read parsing module, for reading described parameter configuration files, and from described parameter configuration files, resolve corresponding compression parameters;
Compression module, for carrying out the compression process for described multimedia file according to described compression parameters.
5. system according to claim 4, is characterized in that,
Described file generating module comprises:
Modular converter, for by described each compression parameters, is converted to binary data and generates scale-of-two parameter configuration files.
Further, reading parsing module comprises:
Decoder module, for carrying out binary decoded to described scale-of-two parameter configuration files;
Extraction module, for extracting described compression parameters from the decoded parameter configuration files obtaining.
6. a multimedia file compression method, is characterized in that, comprising:
For the compression duty of a multimedia file, import the index configurations file of respective type from index database according to the affiliated type of compression duty;
According to the corresponding relation of described index configurations file and parameter configuration files, in parameter configuration files storehouse, search and import corresponding parameter configuration files;
Read described parameter configuration files, and resolve corresponding compression parameters from described parameter configuration files;
Carry out the compression process for described multimedia file according to described compression parameters;
Wherein, the corresponding relation of described index configurations file and parameter configuration files obtains as follows:
Receive various compression parameters and index configurations filename for various types of compression duty;
The parameter configuration files of the storage actual compression parameter generating according to index configurations filename generating indexes configuration file with according to described compression parameters; And described index configurations file is corresponding one by one with parameter configuration files.
7. method according to claim 6, is characterized in that, the parameter configuration files of the described storage actual compression parameter generating according to index configurations filename generating indexes configuration file with according to described compression parameters comprises:
Judge and in index configurations library, whether have described index configurations filename;
If there is no, according to this index configurations filename generating indexes configuration file, generate the unique parameter configuration files of Parameter File name according to described compression parameters, and the index configurations filename of described index configurations file is carried out corresponding one by one with the Parameter File name of parameter configuration files;
If existed, notify first user to upgrade described index configurations filename, rejudge the step that whether has described index configurations filename in index configurations library.
8. according to the method described in claim 6 or 7, it is characterized in that, describedly generate parameter configuration files according to described compression parameters and comprise:
By described each compression parameters, be converted to scale-of-two parameter and generate scale-of-two parameter configuration files.
9. method according to claim 8, is characterized in that,
Describedly read described parameter configuration files, and from described parameter configuration files, resolve corresponding compression parameters and comprise:
Described scale-of-two parameter configuration files is carried out to binary decoded;
From the decoded parameter configuration files obtaining, extract described compression parameters.
CN201210477551.8A 2012-11-21 2012-11-21 A kind of compression parameters treating method and apparatus of multimedia file Expired - Fee Related CN103838742B (en)

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 true CN103838742A (en) 2014-06-04
CN103838742B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009190A (en) * 2017-08-17 2018-05-08 北京车和家信息技术有限责任公司 A kind of data export method, data guiding system and computer installation
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 (5)

* Cited by examiner, † Cited by third party
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
CN1210151C (en) * 2001-08-02 2005-07-13 三菱重工业株式会社 Multicolor press module, printing unit, press and mfg. method thereof
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1210151C (en) * 2001-08-02 2005-07-13 三菱重工业株式会社 Multicolor press module, printing unit, press and mfg. method thereof
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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108009190A (en) * 2017-08-17 2018-05-08 北京车和家信息技术有限责任公司 A kind of data export method, data guiding system and computer installation
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

Also Published As

Publication number Publication date
CN103838742B (en) 2017-11-10

Similar Documents

Publication Publication Date Title
US9483533B2 (en) Method and apparatus for processing time series data
CN101661391B (en) Object serializing method, object deserializing method, device and system
CN111209004B (en) Code conversion method and device
CN108733317B (en) Data storage method and device
CN107888197B (en) Data compression method and device
CN109947431B (en) Code generation method, device, equipment and storage medium
CN103699548A (en) Method and equipment for recovering database data by using logs
US20180041224A1 (en) Data value suffix bit level compression
CN103631845A (en) Method, apparatus and system for auto-synchronization of compressed content files
CN104267988A (en) System and method for packing mobile applications
CN103838742A (en) Method and device for processing compression parameters of multimedia files
CN110888862A (en) Data storage method, data query method, data storage device, data query device, server and storage medium
CN102682017A (en) Information retrieval method and system
CN104361040A (en) Method and device for customized query
CN106126299B (en) Service plug-in processing method and device
CN109241498B (en) XML file processing method, device and storage medium
CN108153896B (en) Processing method and device for input data and output data
CN112632568A (en) Temperature data storage and acquisition method, system, electronic equipment and storage medium
CN103747284A (en) Video pushing method and server
KR101719926B1 (en) Transform system and method for heterogeneous data through data collection api
CN105472406A (en) Powerpoint display method and system
CN112328257A (en) Code conversion method and device
CN112948247A (en) Processing method, system, device and medium for operation playback of application program
CN103124273A (en) Method and system for building and matching path inverted list based on user behavior analysis
US11797277B2 (en) Neural network model conversion method server, and storage medium

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