WO2013149374A1 - Medium processing system and method for processing medium service - Google Patents

Medium processing system and method for processing medium service Download PDF

Info

Publication number
WO2013149374A1
WO2013149374A1 PCT/CN2012/073472 CN2012073472W WO2013149374A1 WO 2013149374 A1 WO2013149374 A1 WO 2013149374A1 CN 2012073472 W CN2012073472 W CN 2012073472W WO 2013149374 A1 WO2013149374 A1 WO 2013149374A1
Authority
WO
WIPO (PCT)
Prior art keywords
media
module
service
processing system
media service
Prior art date
Application number
PCT/CN2012/073472
Other languages
French (fr)
Chinese (zh)
Inventor
李勇
施有铸
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201280001093.9A priority Critical patent/CN102972011B/en
Priority to PCT/CN2012/073472 priority patent/WO2013149374A1/en
Publication of WO2013149374A1 publication Critical patent/WO2013149374A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications

Definitions

  • the present invention relates to the field of information technology, and in particular, to a media processing system and a method for processing a media service in the field of information technology. Background technique
  • the media processing system only has a fixed one or several media service processing capabilities, and thus can only complete one or several fixed media services, or can only complete a partial media sub-service of a media service, and the media processing system.
  • the business processing capabilities are single and limited. For example, some media processing systems can only perform transcoding operations on media files, or can only perform rendering operations on media files; for example, some media processing systems can only perform media file fragmentation and merging operations.
  • a media processing system can meet the processing needs of the media service; but for a slightly complex media service, multiple media processing systems may be required to meet the processing requirements of the media service.
  • One possible solution is to concentrate as much of the media service processing power as possible on a media processing system so that for a complex media service, only one of the above media processing systems is required for processing.
  • the business processing capabilities of the media processing system are relatively fixed and limited. When the requirements of the media service change, multiple media processing systems may be required to perform the processing together, and the user experience is poor. Moreover, for the media service of the single ticket, the resources of the above media processing system are wasted seriously, and the resource utilization rate is low.
  • the embodiments of the present invention provide a media processing system and a method for processing a media service, which can improve service processing capability and flexibility of the media processing system.
  • the embodiment of the present invention provides a media processing system, where the media processing system includes a media management module and a media loading module, where the media loading module is configured to load or uninstall a media service module for processing a media service;
  • the media management module includes: a first acquiring unit, configured to acquire first service information of the first media service to be processed by the media processing system; a first media service module that is required to be added by the media processing system according to the first service information that is obtained by the first acquiring unit, where the first media service module has a service processing capability that the media processing system does not have; a first sending unit, configured to send a first loading notification to the media loading module, where the first loading notification is used to indicate loading the first media service module determined by the first determining unit, so that the media loading module is loaded for Processing the first media service module of the first media service.
  • an embodiment of the present invention provides a method for processing a media service, where the method includes: acquiring first service information of a first media service to be processed by a media processing system; determining, according to the first service information, the media processing The system needs to add the first media service module, where the first media service module has the service processing capability that the media processing system does not have; acquiring the first media service module; loading the first media service module into the media processing system, In order for the media processing system to process the first media service.
  • the media processing system and the method for processing the media service determine, by the service information of the media service to be processed, a media service module that needs to be added by the media processing system, where the media service module has the media processing
  • FIG. 1 is a schematic block diagram of a media processing system in accordance with an embodiment of the present invention.
  • FIG. 2 is a schematic block diagram of a media loading module in accordance with an embodiment of the present invention.
  • FIG. 3A is another schematic block diagram of a media management module according to an embodiment of the present invention.
  • FIG. 3B is another schematic block diagram of a media loading module according to an embodiment of the present invention.
  • FIG. 4 is still another schematic block diagram of a media management module according to an embodiment of the present invention.
  • FIG. 5 is another schematic block diagram of a media processing system in accordance with an embodiment of the present invention.
  • FIG. 6 is still another schematic block diagram of a media processing system in accordance with an embodiment of the present invention.
  • FIG. 7 is still another schematic block diagram of a media loading module according to an embodiment of the present invention.
  • FIG. 8 is still another schematic block diagram of a media processing system in accordance with an embodiment of the present invention.
  • FIG. 9 is a schematic flowchart of a method for processing a media service according to an embodiment of the present invention.
  • FIG. 10 is another schematic flowchart of a method for processing a media service according to an embodiment of the present invention.
  • FIG. 11 is still another schematic flowchart of a method for processing a media service according to an embodiment of the present invention.
  • FIG. 12 is still another schematic flowchart of a method for processing a media service according to an embodiment of the present invention.
  • FIG. 13 is still another schematic flowchart of a method for processing media services according to an embodiment of the present invention.
  • the media processing system 100 includes a media management module 200 and a media loading module 300.
  • the media loading module 300 is configured to load or unload a media service module for processing media services.
  • the media management module 200 includes:
  • the first obtaining unit 210 is configured to acquire first service information of the first media service to be processed by the media processing system 100.
  • the first determining unit 220 is configured to determine, according to the first service information that is obtained by the first acquiring unit 210, the first media service module 410 that the media processing system 100 needs to add, where the first media service module 410 has the media processing The business processing capability that the system 100 does not have;
  • the first sending unit 230 is configured to send a first loading notification to the media loading module 300, where the first loading notification is used to indicate loading the first media service module determined by the first determining unit 220, to facilitate the media loading module. 300 loads the first media service module 410 for processing the first media service.
  • the media processing system 100 includes a media management module 200 and a media loading module 300 for managing the media processing system 100, such as allocating or releasing resources of a computer system.
  • a media management module 200 for managing the media processing system 100, such as allocating or releasing resources of a computer system.
  • the media service module or the like that is loaded or unloaded is determined; the media loading module 300 is configured to load or uninstall a media service module that has service processing capability and is used to process media services.
  • the media management module 200 The first media service module that needs to be added by the media processing system 100 to process the first media service is determined according to the first service information of the first media service to be processed by the media processing system 100, that is, the media processing system 100 is determined to process the first The first media service module 410 that is not available in the media service, and determines the first media service module 410 that has the service processing capability.
  • the media management module 200 can notify the media loading module 300 to dynamically load the first media service module 410.
  • the service processing capabilities of the media processing system 100 are increased such that the media processing system 100 can process the first media service.
  • the media processing system of the embodiment of the present invention determines, according to the service information of the media service to be processed, a media service module that needs to be added by the media processing system, where the media service module has a service processing capability that the media processing system does not have, This can dynamically load different media service modules according to the needs of processing the media service, thereby improving the service processing capability of the media processing system, improving the versatility, flexibility, and resource utilization of the media processing system, and increasing the user experience and reducing cost.
  • the first obtaining unit 210 may obtain the first service information of the first media service to be processed by the media processing system 100 according to the received media service request.
  • the media processing system 100 can provide a media service request interface to receive an external device or a media service request submitted by the user, and the media service request is used to the media processing system.
  • the media service request interface needs to carry some parameters in the received media service request to indicate the service information of the media service requested to be processed.
  • the external device or user submits the media service request to the media processing system 100 by using the media service request interface
  • the content of the media service request interface needs to be met, and relevant parameters are carried to indicate the service information of the media service. Therefore, the media processing system 100 can obtain the service information of the media service requested for processing according to the received media service request.
  • the external device or user sends a media service request to the media processing system 100 to process a transcoding or rendering service, and the media processing system 100 can obtain service information such as the service type of the media service to be processed according to the media service request.
  • the first obtaining unit 210 may obtain the first service information of the first media service according to the media service request for requesting processing of the first media service.
  • the first service information of the first media service may include information such as an identifier or a service type of the first media service, and the first service information may further include any information related to the first media service.
  • the first service information may include a priority of the first media service. Level, type and number of media service modules required for processing the first media service, and the like.
  • the first determining unit 220 may determine, according to the first service information, a first media service module 410 that needs to be added, where the first media service module 410 has a service processing capability that the media processing system 100 does not have. Specifically, for example, the first determining unit 220 may first determine that the media processing system 100 processes the service processing capability that the first media service does not have, and then determine the first media service module 410 that has the service processing capability.
  • the first obtaining unit 210 obtains the service information including the media service type or the identifier of the first media service according to the received media service request.
  • the first determining unit 220 may first determine the media processing system 100 according to the media service type or identifier. Whether there is a service processing capability corresponding to the media service type or identifier, that is, determining whether the media processing system 100 has the service processing capability for processing the first media service; determining that the media processing system 100 does not currently have the service for processing the first media service When the processing capability is available, the first determining unit 220 can thereby determine the first media service module that the media processing system 100 needs to add, and the first media service module 410 has a service processing capability corresponding to the media service type or identifier.
  • the first sending unit 230 may send a first loading notification to the media loading module 300 to instruct the media loading module 300 to load the first media service module 410. It should be understood that the first sending unit 230 may also indicate by other methods. Embodiments of the invention are not limited thereto.
  • the first loading notification includes, for example, an identifier of the first media service module, and a loading type, where the loading type includes loading or unloading; the first loading notification may also include a service type or identifier of the first media service, and includes a loading type. .
  • the media loading module can acquire and load the first media service module according to the first loading notification.
  • the media management module 200 may determine, when determining the first media service module that needs to be added, the address of the first media service module, for example, by searching or prompting the user to determine, The address of the first media service module, and the like. Therefore, the media loading module 300 directly acquires and loads the first media service module 410 according to the address information.
  • the address of the first media service module 410 may include, for example, a link address of the first media service module 410 on the third party server, and may also include a storage path of the first media service module 410 on the local server.
  • the first loading notification may also include the address of the first media service module.
  • the first loading notification may also include the first media service module.
  • the embodiment of the present invention is not limited thereto. It should be understood that, in the embodiment of the present invention, in order to process the first media service, the media processing system
  • 100 needs to load one or more media service modules that the media processing system 100 itself has or has loaded to process the first media together with the first service module. business.
  • the service processing capabilities of these one or more other media service modules include, but are not limited to, file input/output capabilities, file fragmentation/merge capabilities, media transcoding/rendering/watermarking capabilities, and the like.
  • the media business module is for example an application and can be loaded and run independently.
  • the media service module can be operated in a single process, and can also be operated in a multi-process manner.
  • the embodiment of the present invention is not limited thereto. For example, for different media service modules with transcoding processing capability, it can be operated in a single process or in the form of one main process and one or more secondary processes.
  • the uninstalling the media service module means that the media service module is in a non-operation state, instead of completely deleting the media loading module from the media processing system 100, that is, the media loading module is used for processing.
  • the media processing system 100 After the media service module of the media service is uninstalled, the media processing system 100 still has the unloaded media service module and has the service processing capability of the media service module. In the subsequent media service processing, the media processing system 100 can The media service module of the media processing system 100 is loaded again to process the media service.
  • uninstalling the media service module may also refer to completely removing the media loading module from the media processing system 100.
  • the loading when the media service module that the media processing system 100 does not have is loaded, the loading not only means adding the media service module to the media processing system 100, but also means that the media processing module is in operation. State; When loading the media service module that the media processing system 100 has, loading means that the media processing module is in an operational state.
  • the media loading module 300 loads the first media service module 410 according to the received first loading notification, for example, to increase The media processing system's business processing capabilities enable the processing of the first media service.
  • the media loading module 300 includes: a first receiving unit 310 , configured to receive a first loading notification sent by the media management module, and a second acquiring unit 320, configured to receive, according to the first receiving The first loading notification received by the unit 310, acquiring the first media service module;
  • the first loading unit 330 is configured to load the first media service module acquired by the second obtaining unit 320 into the media processing system 100, so that the first media service module 410 processes the first A media business.
  • the first receiving unit 310 may receive the first loading notification, where the first loading notification includes, for example, an identifier of the first media service module, and a loading type, where the loading type includes loading or uninstalling; the first loading notification
  • the first media service module may be directly included in the first media service module, and the embodiment of the present invention is not limited thereto.
  • the second obtaining unit 320 may obtain the first media service module in multiple manners according to the first loading notification received by the first receiving unit 310. For example, when the first loading notification includes the identifier of the first media service module, the second obtaining unit 320 acquires the address of the first media service module by searching or prompting the user, for example, according to the identifier, thereby acquiring the first Media business module. For another example, when the first loading notification includes the link address or the local storage path of the first media service module, the second obtaining unit 320 may use the link address included in the first loading notification, from the third-party server indicated by the link address. The first media service module is downloaded to the local device to obtain the first media service module.
  • the second obtaining unit 320 may also download or copy the first media service module locally according to the local storage path included in the first loading notification. For example, when the first loading notification includes the first media service module, the second obtaining unit 320 may directly obtain the first media service module by using the first loading notification.
  • the second obtaining unit 320 may also acquire the first media service module 410 by other methods, and the embodiment of the present invention is not limited thereto. It should also be understood that the second obtaining unit 320 obtains the first media service module, which means that the first media service module is saved in the media processing system 100, but the embodiment of the present invention is not limited thereto.
  • the first loading unit 330 can load the first media service module acquired by the second obtaining unit 320 to the media processing system 100.
  • the first loading unit 330 invokes an interface of a computer system or server in which the media processing system 100 is located, such as by invoking a command line interface, to run the first media service module 410 in the media processing system 100.
  • the media loading module may load other media service modules of the media processing system 100 as needed, in addition to loading the first media service module.
  • the media loading module may also have the following number of media service modules configured by default, for example, the installation default configuration loading has the following Media processing module for business processing capability: media file input capability, media file output capability, media file fragmentation capability, Media file merging capabilities, etc.
  • one piece of media service may require one or more media service modules to process, and the service processing capability of the one or more media service modules may be completely different or partially the same. It may also be identical, that is, a piece of media service may be processed by one or more media service modules with the same business processing capabilities. For example, for a rendering service, it can be processed by two or more media service modules for processing rendering services to improve the processing efficiency of the rendering service and improve resource utilization.
  • the media management module 200 further includes:
  • the third obtaining unit 240 is configured to obtain media service module information of the media processing system 100 and/or second service information of the second media service currently processed by the media processing system 100;
  • the second determining unit 250 is configured to determine, according to the media service module information and/or the second service information acquired by the third acquiring unit 240, a module of the second media service module of the media processing system 100 that needs to be loaded or uninstalled. Type and number of modules;
  • the second sending unit 260 is configured to send a second loading notification to the media loading module 300, where the second loading notification is used to indicate the module type, the number of modules, and the loading type determined by the second determining unit 250, the loading type. Including loading or unloading;
  • the media loading module 300 further includes:
  • the second receiving unit 340 is configured to receive the second loading notification sent by the media management module 200.
  • the second loading unit 350 is configured to load or unload the second media service module according to the module type, the number of modules, and the loading type indicated by the second loading notification received by the second receiving unit 340.
  • the first media service refers to the media service to be processed by the media processing system 100
  • the second media service refers to the media service currently processed by the media processing system 100.
  • the rendering service is in a pending state, so the rendering service belongs to the first media service; and when the media processing system 100 starts processing the rendering service, the rendering The business belongs to the second media business.
  • the first media service module 410 refers to one or more modules that process the first media service, and the first media service module 410 has the service processing capability that the media processing system 100 does not have. Requires media processing system 100 to load modules; and second media industry The service module refers to one or more modules that process the second media service.
  • the media processing system 100 has the service processing capability of the second media service module, and is a module that needs to be loaded or unloaded by the media processing system 100.
  • the media service module information may include various information related to various types of media service modules currently running in the media processing system 100.
  • the media service module information includes the media processing system. At least one of a load of the currently running media service module, a number of online operations, a number of tasks to be processed, and a number of processed tasks; the second service information may include various media services currently processed by the media processing system 100
  • the second service information includes: a priority of the second media service currently processed by the media processing system 100, and a type and quantity of media service modules required to process the second media service. At least one of them.
  • the second determining unit 250 may determine, according to the media service module information, the second service information, or the media service module information and the second service information, to determine whether loading or uninstalling is required.
  • the module type and number of modules of the second media service module of the media processing system 100 The following description will be respectively made in conjunction with specific examples. It should be understood that the second media service module can include one or more media service modules having different or the same module type.
  • the second media service module that needs to be loaded or uninstalled may be determined.
  • the media management module may determine to load a second media service module corresponding to the priority according to the priority of the media service processed by the media processing system 100 to process the media service. Generally, the higher the priority of the media service, the greater the number of second media service modules loaded.
  • the media management module may determine the type and quantity of the required media service modules as the module type and the number of modules of the second media service module, respectively, according to the type and quantity of the media service modules required for processing the media service.
  • the second media service module that needs to be loaded or uninstalled may be determined.
  • the media management module can determine a second media service module that needs to be loaded or unloaded according to the load of the media service module running in the media processing system 100. For example, when the load of a certain type of media service module running online exceeds or Below the preset threshold, the preset number can be determined as the number of modules that need to be loaded or unloaded. For example, when the load of the transcoded media service module exceeds the threshold, a media service module of one transcoding type may be added. When the load of the transcoded media service module is lower than the threshold, the media service module of one transcoding type may be reduced.
  • the load of the media service module may be represented by parameters such as the occupancy rate of a central processing unit ("CPU").
  • the media management module can determine the second media service module that needs to be loaded or unloaded according to the number of tasks to be processed or the number of processed tasks of the media service module. For example, if the media management module determines that the number of pending tasks of a certain type of media service module increases or decreases and reaches a preset condition, respectively, it may determine that the number of media service modules of the type is loaded or unloaded, for example, loading or unloading pre- Set the number of second media service modules.
  • the preset condition is, for example, a rate at which the number of tasks is increased or decreased, and the rate of the rate of increase or decrease may be the number of tasks per second.
  • the media management module determines that the number of processed tasks of a certain type of media service module is reduced or increased and reaches a preset condition, respectively, it may be determined to uninstall or load the number of media service modules of the type.
  • the second media service module that needs to be loaded or uninstalled may be determined.
  • the media management module determines the second media that needs to be loaded or uninstalled according to the number of certain types of media service modules running online and the number of media service modules of the type required for processing the media service.
  • Business module Specifically, for example, when the number of media service modules running online is less than required, the difference between the number of required media service modules and the number of media service modules running online is determined as the second media that needs to be loaded.
  • the number of modules of the service module similarly, when the number of media service modules running online is greater than required, the difference between the number of media service modules running online and the number of required media service modules is determined to be uninstalled.
  • the number of modules of the second media service module is determined to be uninstalled.
  • the media management module may also determine, according to the indication of the third-party system, the second media service module that needs to be loaded or uninstalled, which is not limited thereto.
  • the media processing system of the embodiment of the present invention can dynamically determine to load or unload different types of media service modules according to the second service information and/or the media service module information, thereby improving the processing efficiency of the media service and improving the efficiency of the media service.
  • Resource utilization increasing user experience.
  • the second determining unit 250 is further configured to: according to the third acquiring unit
  • the media service module information and/or the second service information obtained by the media service module The program is granular or the granularity of the media service module determines the number of modules.
  • the number of modules of the second media service module may be calculated by using the media service module itself, that is, whether the media service module runs in a single process or in a multi-process format; The number can also be calculated according to the process of the media service module. That is, in the case that the media service module runs in a multi-process format, the number of processes can be converted into the number of media service modules.
  • the number of modules of the second media service module is the number of processes of the media service module of the transcode type that is finally run; for having one main process and several secondary processes
  • the number of modules of the second media service module may be determined according to the M main process or the N sub-processes corresponding to one media service module, where M and N are natural numbers.
  • the term “particle size” may mean the meaning of "unit”, for example, “particle size with A”, that is, “in unit of A”, and for example, in the embodiment of the present invention,
  • the second determining unit 250 determines the number of modules in units of processes of the media service module or in units of media service modules.
  • the media management module 200 further includes: a fourth obtaining unit 270, configured to acquire media service module information, resource information, and the media processing system 100 At least one of the second service information of the second media service currently processed by the media processing system 100;
  • the third determining unit 280 is configured to: according to the at least one of the media service module information, the second service information, and the resource information acquired by the fourth acquiring unit 270, and the quantity between the media service module and the system resource a proportional relationship that determines the resource type and number of resources of the first system resource that needs to be allocated or released;
  • the allocating unit 290 is configured to allocate or release the first system resource according to the resource type determined by the third determining unit 280 and the resource quantity.
  • the resource information may include various information related to resources of the media processing system.
  • the resource information includes information about a second system resource that has been currently allocated in the media processing system, information about a third system resource currently available in the media processing system, and total system resources of the media processing system. At least one of the information.
  • the total system resource of the media processing system 100 is the sum of the currently allocated second system resource and the currently available third system resource.
  • the first system resource refers to the media management module 200 determining system resources that need to be allocated or released, when the first When the system resource refers to the system resource that needs to be allocated, the first system resource belongs to the second system resource; when the first system resource refers to the system resource that needs to be released, the first system resource belongs to the third system resource.
  • system resources of the media processing system include, but are not limited to, computing resources (such as CPU), storage resources (such as memory, hard disk space), network resources (such as IP address, bandwidth), and the like.
  • the resource type includes a computing resource, a storage resource, or a network resource.
  • the media management module may also determine the number of modules of the second media service module that need to be increased or decreased according to the resource information and the quantitative relationship between the media service module and the system resources.
  • the media management module may determine the number of system resources that need to be increased or decreased, such as increasing or decreasing the preset number of systems. Resources; and may further determine the number of modules of the second media service module that need to be increased or decreased according to the quantity proportional relationship.
  • the quantitative relationship may be empirical data or a pre-configured value, and the media management module may also dynamically adjust the quantitative relationship.
  • the media management module can further calculate the number of media service modules that need to be increased or decreased according to preset policies.
  • the number calculated by the above is calculated according to a preset ratio to calculate the number of media service modules that need to be increased or decreased, or randomly calculated to calculate the number of media service modules that need to be increased or decreased, or only for a certain type or Certain types of media service modules determine the number that needs to be increased or decreased, but embodiments of the present invention are not limited thereto.
  • the third determining unit 280 may be based on at least one of the media service module information, the second service information, and the resource information acquired by the fourth obtaining unit 270, and according to a quantity ratio between the media service module and the system resource. Relationship, determining the resource type and number of resources of the first system resource that needs to be allocated or released.
  • the resource management module may first determine the number of media service modules that need to be increased or decreased, and then determine the corresponding first system resources that need to be allocated or released according to the quantitative relationship. For example, the resource management module may first determine that four media service modules need to be added. Assuming that the quantitative relationship between the media service module and the system resources is 2, the resource management module may determine that the number of system resources to be allocated is 2. The media management module can then determine the resources that need to be allocated or released according to the total number of resources required by the media processing system and the number of currently allocated resources.
  • the resource management module can also be based on current resource information (eg, information of the second system resource, The change of the information of the three system resources and the information of the total system resources automatically allocates and releases the resources. For example, if the number of second system resources that can be allocated is greater than 0, or the total number of allowed resources is greater than the number of allocated resources, it is always allocated according to the number of resources that can be allocated; if the total number of resources allowed is less than The number of allocated resources, the corresponding resources are released.
  • current resource information eg, information of the second system resource, The change of the information of the three system resources and the information of the total system resources automatically allocates and releases the resources. For example, if the number of second system resources that can be allocated is greater than 0, or the total number of allowed resources is greater than the number of allocated resources, it is always allocated according to the number of resources that can be allocated; if the total number of resources allowed is less than The number of allocated resources, the corresponding resources are released.
  • the media management module may also perform resource allocation and release according to the indication of the third-party system, and the embodiment of the present invention is not limited thereto.
  • the third determining unit 280 is further configured to: at least one of the media service module information, the second service information, and the resource information acquired by the fourth acquiring unit 270
  • the information, and the quantity proportional relationship between the media service module and the system resource is determined by using at least one of the computing resource, the storage resource, and the network resource as a granularity or a virtual machine as a granularity.
  • the media management module may determine the quantity of resources according to the granularity of the virtual machine, where the virtual machine may be a group of resources including computing resources, storage resources, and network resources; the media management module may also according to the resource requirements of the media service module. Degree, calculated according to the granularity of a certain type of resource, for example, the number of resources is determined by the computing resource as the granularity.
  • the media processing system of the embodiment of the present invention can dynamically load different media service modules according to the needs of processing the media service, thereby improving the service processing capability of the media processing system and improving the versatility and flexibility of the media processing system.
  • resource utilization and can increase user experience and reduce cost; on the other hand, dynamically allocate or release system resources according to at least one of media service module information, second service information, and resource information, thereby enabling Improve resource utilization, improve the processing efficiency of media services, and further increase the user experience.
  • the media processing system 100 further includes a parallel computing module 500, where the parallel computing module 500 includes:
  • the splitting unit 510 is configured to split the third media service into at least two media sub-services according to the scheduling processing logic corresponding to the third media service processed by the media processing system;
  • the first invoking unit 520 is configured to invoke the third media service module 430 of the media processing system, and the third media service module 430 and each of the at least two media sub-services split by the splitting unit 510
  • the business corresponds to each of the respective media sub-services.
  • the splitting unit 510 can split the third media service into media sub-services such as media file input, media file output, media file allocation, media file merge, media file transcoding, and the like. Then the first calling unit 520 is called to process each medium separately.
  • the third media service module 430 of the body service separately processes each media sub-service.
  • the third media service module 430 may be a plurality of media service modules of the same class for processing each media sub-service.
  • the third media service module 430 may include at least two identical service modules, each The service module can process the media sub-services.
  • the third media service module 430 can also be used to process multiple media service modules of different types of media sub-services.
  • the third media service module 430 can include at least two. Different types of business modules, each type of business module can be used to process one of the media sub-services.
  • the third media service module 430 includes at least two media service sub-modules; it should also be understood that the third media service module 430 corresponds to each of the at least two media sub-services, and refers to the third The at least two media service sub-modules included in the media service module 430 can be used to process each media sub-service, or can be used to separately process each media sub-service.
  • the third media service may represent any media service currently processed by the media processing system, for example, the third media service may also be the second media service.
  • the third media service module can include one or more media service modules for processing each media sub-service.
  • the terms "first”, “second”, and “third” are merely used to distinguish contents in different situations, and should not be construed as limiting the embodiments of the present invention.
  • B corresponding to A means that B is associated with A, and B can be determined based on A.
  • determining B according to A does not mean that B is determined only on the basis of A, and that B can also be determined based on A and/or other information.
  • the "media service module corresponding to the media service” indicates that the media service module is used to process the media service; "the scheduling processing logic corresponding to the media service” indicates a schedule for processing the media service. Processing logic.
  • each media sub-service can be completed by a plurality of corresponding media service modules, and each media service module is independent of each other in service processing. It should also be understood that each media sub-service may be represented by a number of parameters including, but not limited to, sub-service identification, sub-service type (eg, fragmentation, transcoding, etc.), input and output parameters of sub-services, processing parameters of sub-services, The assigned task identifier, etc.
  • the scheduling processing logic corresponding to the media service may be pre-configured.
  • different media services may have different scheduling processing logic. Therefore, the parallel computing module may use corresponding scheduling processing logic according to different media services.
  • the scheduling processing logic of the media service may be: first scheduling a media file to input a sub-service to complete uploading of the source media file to be transcoded; and then scheduling the media file
  • the slice service is used to complete the fragmentation of the source media file, and the source file is split into several fragment files; after each fragment sub-service is completed, the media transcoding sub-service can be scheduled to transcode the generated fragment file.
  • the media merge sub-service can be scheduled to merge all the transcoded fragment files into one file; finally, the media file is output to the sub-service to merge the media files.
  • the media processing system 100 further includes a parallel computing module 500, where the parallel computing module 500 includes:
  • the second invoking unit 530 is configured to: when receiving the at least two fourth media services to be processed, scheduling, according to the preset scheduling policy, the fourth media service module 440 corresponding to the at least two fourth media services, to The at least two fourth media services are processed separately.
  • the scheduling policy can be pre-configured, and the scheduling policy includes, but is not limited to, the priority of the media service. For example, high-priority tasks can be prioritized for processing, and even when resources are insufficient, preemptive resources can be prioritized.
  • the system can process multiple media transcoding services and other application type services, such as media services such as rendering and watermarking, according to a preset scheduling policy.
  • the media processing system of the embodiment of the present invention can dynamically load different media service modules according to the needs of processing the media service, thereby improving the service processing capability of the media processing system and improving the versatility and flexibility of the media processing system. And resource utilization, and can increase the user experience and reduce costs; on the other hand, it can improve the parallel computing power of the media processing system, improve the efficiency of business processing, and increase the user experience.
  • the fourth media service module refers to a module for processing at least two fourth media services in parallel; and the fourth media service refers to a media service to be processed simultaneously in the media processing system.
  • the media loading module 300 further includes: a third receiving unit 360, configured to receive loading information sent by the user to indicate loading the fifth media service module, where The fifth media service module has a service processing capability that the media processing system does not have;
  • the fifth obtaining unit 370 is configured to acquire the fifth media service module according to the loading information received by the third receiving unit 360.
  • the third loading unit 380 is configured to load the fifth media service module acquired by the fifth obtaining unit 370 into the media processing system.
  • the media loading module may receive the loading information sent by the user through a human-machine interface such as a web portal, and acquire a fifth media service module according to the loading information, and load the media processing system into the media processing system to increase media processing.
  • a human-machine interface such as a web portal
  • FIG. 8 shows an application scenario of a media processing system according to an embodiment of the present invention.
  • the computer system includes a media processing system and a power supply module according to an embodiment of the present invention, wherein the power supply module is configured to supply power to a computer system and a media processing system, for example, 220V AC power or 24V DC power supply; the media management module 200 included in the media processing system can obtain resource information from a system resource, such as a computing resource or a storage resource provided by a computer system, and a parallel computing module.
  • a system resource such as a computing resource or a storage resource provided by a computer system, and a parallel computing module.
  • the second service information is obtained at 500 , and the media service module information is obtained from the media service module 400, so that the loading notification can be sent to the media loading module 300 according to the foregoing information, and the system resource can also be allocated or released; the media loading module can be from the media.
  • the service loading interface receives the media service module provided by the user or the third-party system, and loads the media service module to increase the service processing capability of the media service processing system; the parallel computing module can obtain the media service, and can obtain the media provided by the media management module.
  • industry Module information, and calls the media service module, the media service module may receive media data, and outputs the processed media data, it should be appreciated that the media data includes media files, but not limited to, a video stream, audio stream.
  • the computer system may be a personal computer, a server, a virtual machine, or the like, and the embodiment of the present invention is not limited thereto.
  • the media processing system of the embodiment of the present invention determines, according to the service information of the media service to be processed, a media service module that the media processing system needs to add, and the media service module has a service processing capability that the media processing system does not have, thereby Dynamically loading different media service modules according to the needs of processing media services, thereby improving the service processing capability of the media processing system, improving the versatility, flexibility, and resource utilization of the media processing system, and increasing the user experience and reducing costs.
  • FIG. 9 shows a schematic flow diagram of a method 800 of processing media traffic in accordance with an embodiment of the present invention. As shown in Figure 9, the method 800 includes:
  • S820 Determine, according to the first service information, a first media that needs to be added by the media processing system.
  • a service module the first media service module has a service processing capability that the media processing system does not have;
  • the media processing system may obtain the first service information of the processed first media service, and determine, according to the first service information, the first media service module that the media processing system needs to add, and the service processing capability of the first media service module
  • the media processing system processes the service processing capability that the first media service does not have, so that the first media service module can be acquired and loaded to process the first media service.
  • the method for processing a media service determines, by the service information of the media service to be processed, a media service module that the media processing system needs to add, and the media service module has a service processing capability that the media processing system does not have. Therefore, different media service modules can be dynamically loaded according to the needs of processing the media service, thereby improving the service processing capability of the media processing system, improving the versatility, flexibility, and resource utilization of the media processing system, and increasing the user experience. , cut costs.
  • the media processing system may obtain the first media service module according to the identifier of the first media service module, and the media processing system may obtain the first media service module according to the storage address of the first media service module. Wait.
  • the media processing system may download the first media service module from the third-party server to the local device according to the link address of the first media service module on the third-party server to obtain the first media service module; the media processing system also The first media service module may be obtained according to a storage path of the first media service module on the local server.
  • Embodiments of the invention are not limited thereto.
  • the method 800 further includes: S850, acquiring media service module information of the media processing system, and/or a second media service currently processed by the media processing system. Second business information;
  • the media service module information may include various information related to various types of media service modules currently running in the media processing system, and optionally, the media service mode.
  • the block information includes at least one of a load of a media service module currently running in the media processing system, a number of online runs, a number of tasks to be processed, and a number of processed tasks.
  • the second service information may include various information related to various media services processed by the media processing system.
  • the second service information includes: a priority of the media service processed by the media processing system, and processing the media. At least one of the type and number of media service modules required for the service.
  • the media processing system may determine the number of modules according to the media service module information, with the granularity of the process of the media service module or the granularity of the media service module.
  • the media processing system may also determine, according to the media service module information and/or the second service information, a module type of the second media service module that needs to be loaded or uninstalled. The number of modules, for the sake of cleanliness, will not be repeated here.
  • the method for processing a media service can dynamically determine to load or unload different types of media service modules according to the second service information and/or the media service module information, thereby improving the processing efficiency of the media service, and Improve resource utilization and increase user experience.
  • the method 800 further includes: S880, acquiring media service module information, resource information, and a second media service currently processed by the media processing system. At least one of the second business information;
  • the resource information may include various information related to resources of the media processing system.
  • the resource information includes information about a second system resource that has been currently allocated in the media processing system, information about a third system resource currently available in the media processing system, and total system resources of the media processing system. At least one of the information.
  • resources of the media processing system include but are not limited to computing resources (for example,
  • the resource type includes a computing resource, a storage resource, or a network resource.
  • the media service module information may include various information related to various types of media service modules currently running in the media processing system.
  • the media service module information includes at least one of a load of the media service module running in the media processing system, a number of online operations, a number of tasks to be processed, and a number of processed tasks.
  • the second service information may include any information related to the second media service, and optionally, the second service information includes a priority of the second media service, and is used to process the second At least one of the type and number of media service modules required for the media service.
  • the media processing system may also determine the number of modules of the second media service module that need to be increased or decreased according to the resource information and the quantitative relationship between the media service module and the system resources. It should be understood that, in the embodiment of the present invention, the media processing system may also perform resource allocation and release according to the indication of the third party system, and the embodiment of the present invention is not limited thereto.
  • the media processing system may be based on at least one of the media service module information, the second service information, and the resource information, and the media service module and the system resource.
  • the quantity proportional relationship between the computing resources, the storage resources, and the network resources is determined by the granularity or the virtual machine as the granularity, and the number of the resources is determined.
  • the method for processing a media service can dynamically determine the allocated or released system resources according to at least one of the media service module information, the second service information, and the resource information, thereby improving resource utilization. Improve the processing efficiency of media services and increase the user experience.
  • the method 800 further includes:
  • S920 Call a third media service module corresponding to each of the at least two media sub-services to process each media sub-service separately.
  • the method 800 further includes:
  • each media sub-service can be completed by a plurality of corresponding media service modules, and each media service module is independent of each other in service processing. It should also be understood that each media sub-service may be represented by a number of parameters including, but not limited to, sub-service identification, sub-service type (eg, fragmentation, transcoding, etc.), input and output parameters of sub-services, processing parameters of sub-services, The assigned task identifier, etc.
  • the scheduling processing logic corresponding to the media service may be pre-configured.
  • different media services can have different scheduling processing logic, therefore, parallel computing modules
  • the corresponding scheduling processing logic can be used.
  • the method for processing media services in the embodiments of the present invention can improve parallel computing capabilities of the media processing system, improve service processing efficiency, and increase user experience.
  • the method 800 further includes: S940, receiving, by the user, loading information, configured to load a fifth media service module, where the fifth media service module has the Service processing capabilities not available in the media processing system;
  • the media loading module may receive the loading information sent by the user through a human-machine interface such as a web portal, and acquire a fifth media service module according to the loading information, and load the media processing system into the media processing system to increase media processing.
  • a human-machine interface such as a web portal
  • the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • B corresponding to A means that B is associated with A, and B can be determined based on A.
  • determining B according to A does not mean that B is determined only on the basis of A, but also based on A and/or other information.
  • the method for processing a media service determines, by the service information of the media service to be processed, a media service module that the media processing system needs to add, and the media service module has a service processing capability that the media processing system does not have. Therefore, different media service modules can be dynamically loaded according to the needs of processing the media service, thereby improving the service processing capability of the media processing system, improving the versatility, flexibility, and resource utilization of the media processing system, and increasing the user experience. , cut costs.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
  • the components displayed for the unit may or may not be physical units, ie may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .

Abstract

Disclosed are a medium processing system and a method for processing a medium service. The medium processing system comprises a medium management module and a medium loading module. The medium loading module is used for loading or unloading a medium service module for processing a medium service; the medium management module comprises a first obtaining unit, a first determining unit, and a first sending unit. According to the medium processing system and the method for processing a medium service in the embodiments of the present invention, by determining the medium service module required to be added to the medium processing system based on service information of the medium service to be processed, the medium service module has a service processing ability which the medium processing system does not have, so different medium service modules can be dynamically loaded based on a requirement of processing a medium service, thereby lifting the service processing ability of the medium processing system, raising the universality, flexibility, and resource utilization rate of the medium processing system, improving user experience, and reducing cost.

Description

媒体处理系统和处理媒体业务的方法 技术领域  Media processing system and method for processing media business
本发明涉及信息技术领域, 尤其涉及信息技术领域中的媒体处理系统和 处理媒体业务的方法。 背景技术  The present invention relates to the field of information technology, and in particular, to a media processing system and a method for processing a media service in the field of information technology. Background technique
目前, 媒体处理系统仅具有固定的一种或几种媒体业务处理能力, 因而 只能完成固定的一种或几种媒体业务, 或只能完成一种媒体业务的部分媒体 子业务, 媒体处理系统的业务处理能力筒单且有限。 例如, 有些媒体处理系 统只能进行媒体文件的转码操作,或只能进行媒体文件的渲染操作;又例如, 有些媒体处理系统只能进行媒体文件的分片和合并操作等。  At present, the media processing system only has a fixed one or several media service processing capabilities, and thus can only complete one or several fixed media services, or can only complete a partial media sub-service of a media service, and the media processing system. The business processing capabilities are single and limited. For example, some media processing systems can only perform transcoding operations on media files, or can only perform rendering operations on media files; for example, some media processing systems can only perform media file fragmentation and merging operations.
因此, 对于筒单的媒体业务, 一个媒体处理系统就可以满足媒体业务的 处理需求; 但对于稍加复杂的媒体业务, 可能需要多个媒体处理系统才能满 足该媒体业务的处理需求。  Therefore, for a single media service, a media processing system can meet the processing needs of the media service; but for a slightly complex media service, multiple media processing systems may be required to meet the processing requirements of the media service.
一种可能的解决方案是将尽可能多的媒体业务处理能力集中于一个媒 体处理系统, 从而对于复杂的媒体业务, 仅需要一个上述媒体处理系统就可 以进行处理。 但该媒体处理系统的业务处理能力还是相对固定的并且有限。 当媒体业务的要求发生变化时, 又可能需要多个媒体处理系统共同进行处 理, 用户体验较差。 并且, 对于筒单的媒体业务, 上述媒体处理系统的资源 浪费严重, 资源利用率较低。  One possible solution is to concentrate as much of the media service processing power as possible on a media processing system so that for a complex media service, only one of the above media processing systems is required for processing. However, the business processing capabilities of the media processing system are relatively fixed and limited. When the requirements of the media service change, multiple media processing systems may be required to perform the processing together, and the user experience is poor. Moreover, for the media service of the single ticket, the resources of the above media processing system are wasted seriously, and the resource utilization rate is low.
因此, 目前的媒体处理系统的业务处理能力固定且有限, 由此导致用户 体马 较差。 发明内容  Therefore, the current media processing system has a fixed and limited service processing capability, which results in a poor user experience. Summary of the invention
本发明实施例提供了一种媒体处理系统和处理媒体业务的方法, 能够提 升媒体处理系统的业务处理能力和灵活性。  The embodiments of the present invention provide a media processing system and a method for processing a media service, which can improve service processing capability and flexibility of the media processing system.
一方面, 本发明实施例提供了一种媒体处理系统, 该媒体处理系统包括 媒体管理模块和媒体加载模块; 其中, 该媒体加载模块用于加载或卸载用于 处理媒体业务的媒体业务模块; 该媒体管理模块包括: 第一获取单元, 用于 获取该媒体处理系统待处理的第一媒体业务的第一业务信息; 第一确定单 元, 用于根据该第一获取单元获取的该第一业务信息, 确定该媒体处理系统 需要增加的第一媒体业务模块, 该第一媒体业务模块具有该媒体处理系统不 具有的业务处理能力; 第一发送单元, 用于向该媒体加载模块发送第一加载 通知, 该第一加载通知用于指示加载该第一确定单元确定的该第一媒体业务 模块, 以便于该媒体加载模块加载用于处理该第一媒体业务的该第一媒体业 务模块。 In one aspect, the embodiment of the present invention provides a media processing system, where the media processing system includes a media management module and a media loading module, where the media loading module is configured to load or uninstall a media service module for processing a media service; The media management module includes: a first acquiring unit, configured to acquire first service information of the first media service to be processed by the media processing system; a first media service module that is required to be added by the media processing system according to the first service information that is obtained by the first acquiring unit, where the first media service module has a service processing capability that the media processing system does not have; a first sending unit, configured to send a first loading notification to the media loading module, where the first loading notification is used to indicate loading the first media service module determined by the first determining unit, so that the media loading module is loaded for Processing the first media service module of the first media service.
另一方面,本发明实施例提供了一种处理媒体业务的方法,该方法包括: 获取媒体处理系统待处理的第一媒体业务的第一业务信息; 根据该第一业务 信息, 确定该媒体处理系统需要增加的第一媒体业务模块, 该第一媒体业务 模块具有该媒体处理系统不具有的业务处理能力; 获取该第一媒体业务模 块; 将该第一媒体业务模块加载到该媒体处理系统, 以便于该媒体处理系统 处理该第一媒体业务。  On the other hand, an embodiment of the present invention provides a method for processing a media service, where the method includes: acquiring first service information of a first media service to be processed by a media processing system; determining, according to the first service information, the media processing The system needs to add the first media service module, where the first media service module has the service processing capability that the media processing system does not have; acquiring the first media service module; loading the first media service module into the media processing system, In order for the media processing system to process the first media service.
基于上述技术方案, 本发明实施例的媒体处理系统和处理媒体业务的方 法, 通过根据待处理的媒体业务的业务信息, 确定媒体处理系统需要增加的 媒体业务模块, 该媒体业务模块具有该媒体处理系统不具有的业务处理能 力, 由此能够根据处理媒体业务的需要而动态加载不同的媒体业务模块, 从 而能够提升媒体处理系统的业务处理能力, 提高媒体处理系统的通用性、 灵 活性以及资源利用率, 并能够增加用户体验, 降低成本。 附图说明  Based on the foregoing technical solution, the media processing system and the method for processing the media service according to the embodiment of the present invention determine, by the service information of the media service to be processed, a media service module that needs to be added by the media processing system, where the media service module has the media processing The service processing capability that the system does not have, so that different media service modules can be dynamically loaded according to the needs of processing the media service, thereby improving the service processing capability of the media processing system, improving the versatility, flexibility, and resource utilization of the media processing system. Rate, and can increase user experience and reduce costs. DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对本发明实施例中 所需要使用的附图作筒单地介绍, 显而易见地, 下面所描述的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings to be used in the embodiments of the present invention will be briefly described below. Obviously, the drawings described below are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图 1是根据本发明实施例的媒体处理系统的示意性框图。  1 is a schematic block diagram of a media processing system in accordance with an embodiment of the present invention.
图 2是根据本发明实施例的媒体加载模块的示意性框图。  2 is a schematic block diagram of a media loading module in accordance with an embodiment of the present invention.
图 3A是根据本发明实施例的媒体管理模块的另一示意性框图。  FIG. 3A is another schematic block diagram of a media management module according to an embodiment of the present invention.
图 3B是根据本发明实施例的媒体加载模块的另一示意性框图。  FIG. 3B is another schematic block diagram of a media loading module according to an embodiment of the present invention.
图 4是根据本发明实施例的媒体管理模块的再一示意性框图。  4 is still another schematic block diagram of a media management module according to an embodiment of the present invention.
图 5是根据本发明实施例的媒体处理系统的另一示意性框图。  FIG. 5 is another schematic block diagram of a media processing system in accordance with an embodiment of the present invention.
图 6是根据本发明实施例的媒体处理系统的再一示意性框图。 图 7是根据本发明实施例的媒体加载模块的再一示意性框图。 6 is still another schematic block diagram of a media processing system in accordance with an embodiment of the present invention. FIG. 7 is still another schematic block diagram of a media loading module according to an embodiment of the present invention.
图 8是根据本发明实施例的媒体处理系统的再一示意性框图。  FIG. 8 is still another schematic block diagram of a media processing system in accordance with an embodiment of the present invention.
图 9是根据本发明实施例的处理媒体业务的方法的示意性流程图。  FIG. 9 is a schematic flowchart of a method for processing a media service according to an embodiment of the present invention.
图 10是根据本发明实施例的处理媒体业务的方法的另一示意性流程图。 图 11是根据本发明实施例的处理媒体业务的方法的再一示意性流程图。 图 12是根据本发明实施例的处理媒体业务的方法的再一示意性流程图。 图 13是根据本发明实施例的处理媒体业务的方法的再一示意性流程图。 具体实施方式  FIG. 10 is another schematic flowchart of a method for processing a media service according to an embodiment of the present invention. FIG. 11 is still another schematic flowchart of a method for processing a media service according to an embodiment of the present invention. FIG. 12 is still another schematic flowchart of a method for processing a media service according to an embodiment of the present invention. FIG. 13 is still another schematic flowchart of a method for processing media services according to an embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例是本发明的一部分实施例, 而不 是全部实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创 造性劳动的前提下所获得的所有其他实施例, 都应属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without making creative labor are within the scope of the present invention.
图 1是根据本发明实施例的媒体处理系统 100的示意性框图。如图 1所 示, 该媒体处理系统 100包括媒体管理模块 200和媒体加载模块 300; 该媒 体加载模块 300用于加载或卸载用于处理媒体业务的媒体业务模块; 该媒体 管理模块 200包括:  1 is a schematic block diagram of a media processing system 100 in accordance with an embodiment of the present invention. As shown in FIG. 1, the media processing system 100 includes a media management module 200 and a media loading module 300. The media loading module 300 is configured to load or unload a media service module for processing media services. The media management module 200 includes:
第一获取单元 210, 用于获取该媒体处理系统 100待处理的第一媒体业 务的第一业务信息;  The first obtaining unit 210 is configured to acquire first service information of the first media service to be processed by the media processing system 100.
第一确定单元 220, 用于根据该第一获取单元 210获取的该第一业务信 息, 确定该媒体处理系统 100需要增加的第一媒体业务模块 410, 该第一媒 体业务模块 410具有该媒体处理系统 100不具有的业务处理能力;  The first determining unit 220 is configured to determine, according to the first service information that is obtained by the first acquiring unit 210, the first media service module 410 that the media processing system 100 needs to add, where the first media service module 410 has the media processing The business processing capability that the system 100 does not have;
第一发送单元 230, 用于向该媒体加载模块 300发送第一加载通知, 该 第一加载通知用于指示加载该第一确定单元 220确定的该第一媒体业务模 块, 以便于该媒体加载模块 300加载用于处理该第一媒体业务的该第一媒体 业务模块 410。  The first sending unit 230 is configured to send a first loading notification to the media loading module 300, where the first loading notification is used to indicate loading the first media service module determined by the first determining unit 220, to facilitate the media loading module. 300 loads the first media service module 410 for processing the first media service.
在本发明实施例的媒体处理系统 100中,媒体处理系统 100包括媒体管 理模块 200和媒体加载模块 300, 该媒体管理模块 200用于管理该媒体处理 系统 100, 例如分配或释放计算机系统的资源, 又例如确定加载或卸载的媒 体业务模块等; 该媒体加载模块 300用于加载或卸载具有业务处理能力并用 于处理媒体业务的媒体业务模块。 在本发明实施例中, 该媒体管理模块 200 可以根据媒体处理系统 100待处理的第一媒体业务的第一业务信息,确定媒 体处理系统 100处理该第一媒体业务所需要增加的第一媒体业务模块, 即确 定媒体处理系统 100处理该第一媒体业务所不具备的业务处理能力, 并确定 具有该业务处理能力的第一媒体业务模块 410; 由此, 该媒体管理模块 200 可以通知媒体加载模块 300动态加载该第一媒体业务模块 410, 以增加媒体 处理系统 100的业务处理能力,从而使得媒体处理系统 100能够处理该第一 媒体业务。 In the media processing system 100 of the embodiment of the present invention, the media processing system 100 includes a media management module 200 and a media loading module 300 for managing the media processing system 100, such as allocating or releasing resources of a computer system. For another example, the media service module or the like that is loaded or unloaded is determined; the media loading module 300 is configured to load or uninstall a media service module that has service processing capability and is used to process media services. In the embodiment of the present invention, the media management module 200 The first media service module that needs to be added by the media processing system 100 to process the first media service is determined according to the first service information of the first media service to be processed by the media processing system 100, that is, the media processing system 100 is determined to process the first The first media service module 410 that is not available in the media service, and determines the first media service module 410 that has the service processing capability. The media management module 200 can notify the media loading module 300 to dynamically load the first media service module 410. The service processing capabilities of the media processing system 100 are increased such that the media processing system 100 can process the first media service.
因此, 本发明实施例的媒体处理系统, 通过根据待处理的媒体业务的业 务信息, 确定媒体处理系统需要增加的媒体业务模块, 该媒体业务模块具有 该媒体处理系统不具有的业务处理能力, 由此能够根据处理媒体业务的需要 而动态加载不同的媒体业务模块,从而能够提升媒体处理系统的业务处理能 力, 提高媒体处理系统的通用性、 灵活性以及资源利用率, 并能够增加用户 体验, 降低成本。  Therefore, the media processing system of the embodiment of the present invention determines, according to the service information of the media service to be processed, a media service module that needs to be added by the media processing system, where the media service module has a service processing capability that the media processing system does not have, This can dynamically load different media service modules according to the needs of processing the media service, thereby improving the service processing capability of the media processing system, improving the versatility, flexibility, and resource utilization of the media processing system, and increasing the user experience and reducing cost.
具体而言, 第一获取单元 210可以根据接收的媒体业务请求, 获取该媒 体处理系统 100待处理的第一媒体业务的第一业务信息。  Specifically, the first obtaining unit 210 may obtain the first service information of the first media service to be processed by the media processing system 100 according to the received media service request.
例如, 媒体处理系统 100可以对外提供媒体业务请求接口, 以接收外部 设备或用户提交的媒体业务请求, 该媒体业务请求用于向该媒体处理系统 For example, the media processing system 100 can provide a media service request interface to receive an external device or a media service request submitted by the user, and the media service request is used to the media processing system.
100请求处理媒体业务。 该媒体业务请求接口要求接收到的媒体业务请求中 需要携带一些参数, 以指明请求处理的媒体业务的业务信息。 外部设备或用 户在使用该媒体业务请求接口向该媒体处理系统 100提交媒体业务请求时, 就需要满足该媒体业务请求接口的要求,携带相关参数以指明媒体业务的业 务信息。 因此, 媒体处理系统 100根据接收的媒体业务请求, 就能够获取请 求处理的媒体业务的业务信息。 100 requests to process media services. The media service request interface needs to carry some parameters in the received media service request to indicate the service information of the media service requested to be processed. When the external device or user submits the media service request to the media processing system 100 by using the media service request interface, the content of the media service request interface needs to be met, and relevant parameters are carried to indicate the service information of the media service. Therefore, the media processing system 100 can obtain the service information of the media service requested for processing according to the received media service request.
例如, 外部设备或用户向媒体处理系统 100发送处理一项转码或渲染业 务的媒体业务请求, 媒体处理系统 100根据该媒体业务请求, 就可以获知需 要处理的媒体业务的业务类型等业务信息。  For example, the external device or user sends a media service request to the media processing system 100 to process a transcoding or rendering service, and the media processing system 100 can obtain service information such as the service type of the media service to be processed according to the media service request.
因此, 第一获取单元 210可以根据用于请求处理该第一媒体业务的媒体 业务请求, 获取该第一媒体业务的第一业务信息。  Therefore, the first obtaining unit 210 may obtain the first service information of the first media service according to the media service request for requesting processing of the first media service.
在本发明实施例中 , 第一媒体业务的第一业务信息可以包括该第一媒体 业务的标识或业务类型等信息; 该第一业务信息还可以包括与该第一媒体业 务相关的任何信息, 例如该第一业务信息可以包括该第一媒体业务的优先 级、 用于处理该第一媒体业务所需的媒体业务模块的类型和数量等。 In the embodiment of the present invention, the first service information of the first media service may include information such as an identifier or a service type of the first media service, and the first service information may further include any information related to the first media service. For example, the first service information may include a priority of the first media service. Level, type and number of media service modules required for processing the first media service, and the like.
第一确定单元 220可以根据该第一业务信息,确定需要增加的第一媒体 业务模块 410, 该第一媒体业务模块 410具有该媒体处理系统 100不具有的 业务处理能力。 具体而言, 例如, 第一确定单元 220可以首先确定媒体处理 系统 100处理该第一媒体业务所不具备的业务处理能力,再确定具有该业务 处理能力的第一媒体业务模块 410。  The first determining unit 220 may determine, according to the first service information, a first media service module 410 that needs to be added, where the first media service module 410 has a service processing capability that the media processing system 100 does not have. Specifically, for example, the first determining unit 220 may first determine that the media processing system 100 processes the service processing capability that the first media service does not have, and then determine the first media service module 410 that has the service processing capability.
例如, 第一获取单元 210根据接收的媒体业务请求, 获取第一媒体业务 的包括媒体业务类型或标识的业务信息; 第一确定单元 220根据该媒体业务 类型或标识, 可以首先确定媒体处理系统 100是否具有与该媒体业务类型或 标识相应的业务处理能力, 即确定媒体处理系统 100是否具有处理该第一媒 体业务的业务处理能力; 在确定媒体处理系统 100当前不具有处理第一媒体 业务的业务处理能力时, 第一确定单元 220由此可以确定媒体处理系统 100 需要增加的第一媒体业务模块, 该第一媒体业务模块 410具有与该媒体业务 类型或标识相应的业务处理能力。  For example, the first obtaining unit 210 obtains the service information including the media service type or the identifier of the first media service according to the received media service request. The first determining unit 220 may first determine the media processing system 100 according to the media service type or identifier. Whether there is a service processing capability corresponding to the media service type or identifier, that is, determining whether the media processing system 100 has the service processing capability for processing the first media service; determining that the media processing system 100 does not currently have the service for processing the first media service When the processing capability is available, the first determining unit 220 can thereby determine the first media service module that the media processing system 100 needs to add, and the first media service module 410 has a service processing capability corresponding to the media service type or identifier.
第一发送单元 230可以向该媒体加载模块 300发送第一加载通知, 以指 示媒体加载模块 300加载该第一媒体业务模块 410, 应理解, 第一发送单元 230也可以通过其它方法进行指示, 本发明实施例并不限于此。  The first sending unit 230 may send a first loading notification to the media loading module 300 to instruct the media loading module 300 to load the first media service module 410. It should be understood that the first sending unit 230 may also indicate by other methods. Embodiments of the invention are not limited thereto.
该第一加载通知例如包括该第一媒体业务模块的标识, 以及加载类型, 该加载类型包括加载或卸载; 该第一加载通知也可以包括第一媒体业务的业 务类型或标识, 并包括加载类型。 从而使得媒体加载模块能够根据第一加载 通知, 获取并加载第一媒体业务模块。  The first loading notification includes, for example, an identifier of the first media service module, and a loading type, where the loading type includes loading or unloading; the first loading notification may also include a service type or identifier of the first media service, and includes a loading type. . Thereby, the media loading module can acquire and load the first media service module according to the first loading notification.
应理解, 在本发明实施例中, 媒体管理模块 200在确定需要增加的第一 媒体业务模块的同时, 也可以确定存储该第一媒体业务模块的地址, 例如通 过搜索或提示用户指示, 确定该第一媒体业务模块的地址等。 从而使得媒体 加载模块 300直接根据该地址信息, 获取并加载第一媒体业务模块 410。 第 一媒体业务模块 410的地址例如可以包括第一媒体业务模块 410在第三方服 务器上的链接地址,也可以包括第一媒体业务模块 410在本地服务器上的存 储路径。  It should be understood that, in the embodiment of the present invention, the media management module 200 may determine, when determining the first media service module that needs to be added, the address of the first media service module, for example, by searching or prompting the user to determine, The address of the first media service module, and the like. Therefore, the media loading module 300 directly acquires and loads the first media service module 410 according to the address information. The address of the first media service module 410 may include, for example, a link address of the first media service module 410 on the third party server, and may also include a storage path of the first media service module 410 on the local server.
此时, 该第一加载通知也可以包括该第一媒体业务模块的地址; 当然, 该第一加载通知也可以直接包括该第一媒体业务模块, 本发明实施例并不限 于此。 应理解, 在本发明实施例中, 为了处理该第一媒体业务, 媒体处理系统In this case, the first loading notification may also include the address of the first media service module. The first loading notification may also include the first media service module. The embodiment of the present invention is not limited thereto. It should be understood that, in the embodiment of the present invention, in order to process the first media service, the media processing system
100除需要具有新加载的该第一媒体业务模块之外, 还需要加载媒体处理系 统 100本身已经具有或已经加载的一个或多个媒体业务模块, 以与第一业务 模块一起处理该第一媒体业务。 In addition to the first media service module that needs to be newly loaded, 100 needs to load one or more media service modules that the media processing system 100 itself has or has loaded to process the first media together with the first service module. business.
这些一个或多个其它媒体业务模块具有的业务处理能力包括但不限于 文件输入 /输出能力、 文件分片 /合并能力、 媒体转码 /渲染 /水印能力等。 媒体 业务模块例如为应用程序, 并且可以独立加载和运行。 媒体业务模块能够以 单进程形式运行, 也能够以多进程形式运行, 本发明实施例并不以此为限。 例如, 对于不同的具有转码处理能力的媒体业务模块, 能够以单进程形式运 行, 也能够以一个主进程和一个或多个副进程的形式运行。  The service processing capabilities of these one or more other media service modules include, but are not limited to, file input/output capabilities, file fragmentation/merge capabilities, media transcoding/rendering/watermarking capabilities, and the like. The media business module is for example an application and can be loaded and run independently. The media service module can be operated in a single process, and can also be operated in a multi-process manner. The embodiment of the present invention is not limited thereto. For example, for different media service modules with transcoding processing capability, it can be operated in a single process or in the form of one main process and one or more secondary processes.
还应理解, 在本发明实施例中, 卸载媒体业务模块是指使得媒体业务模 块处于非运行状态, 而不是指从媒体处理系统 100中彻底删除该媒体加载模 块, 即媒体加载模块将用于处理媒体业务的媒体业务模块卸载之后, 该媒体 处理系统 100仍具有被卸载的媒体业务模块, 并具有该媒体业务模块的业务 处理能力; 在后续的媒体业务处理中, 根据需要该媒体处理系统 100可以再 次加载该媒体处理系统 100具有的媒体业务模块, 以处理媒体业务。 当然, 卸载媒体业务模块也可以指从媒体处理系统 100 中彻底删除该媒体加载模 块,  It should also be understood that, in the embodiment of the present invention, the uninstalling the media service module means that the media service module is in a non-operation state, instead of completely deleting the media loading module from the media processing system 100, that is, the media loading module is used for processing. After the media service module of the media service is uninstalled, the media processing system 100 still has the unloaded media service module and has the service processing capability of the media service module. In the subsequent media service processing, the media processing system 100 can The media service module of the media processing system 100 is loaded again to process the media service. Of course, uninstalling the media service module may also refer to completely removing the media loading module from the media processing system 100.
在本发明实施例中,当加载媒体处理系统 100不具有的媒体业务模块时, 该加载不仅意味着将该媒体业务模块添加到该媒体处理系统 100中,还意味 着使得该媒体处理模块处于运行状态; 当加载媒体处理系统 100具有的媒体 业务模块时, 加载意味着使得媒体处理模块处于运行状态。  In the embodiment of the present invention, when the media service module that the media processing system 100 does not have is loaded, the loading not only means adding the media service module to the media processing system 100, but also means that the media processing module is in operation. State; When loading the media service module that the media processing system 100 has, loading means that the media processing module is in an operational state.
在本发明实施例中,媒体管理模块 200通知媒体加载模块 300加载该第 一媒体业务模块 410之后,媒体加载模块 300例如根据接收的第一加载通知, 加载该第一媒体业务模块 410, 以增加媒体处理系统的业务处理能力, 从而 能够处理该第一媒体业务。可选地,如图 2所示,该媒体加载模块 300包括: 第一接收单元 310, 用于接收该媒体管理模块发送的第一加载通知; 第二获取单元 320, 用于根据该第一接收单元 310接收的该第一加载通 知, 获取该第一媒体业务模块; In the embodiment of the present invention, after the media management module 200 notifies the media loading module 300 to load the first media service module 410, the media loading module 300 loads the first media service module 410 according to the received first loading notification, for example, to increase The media processing system's business processing capabilities enable the processing of the first media service. Optionally, as shown in FIG. 2, the media loading module 300 includes: a first receiving unit 310 , configured to receive a first loading notification sent by the media management module, and a second acquiring unit 320, configured to receive, according to the first receiving The first loading notification received by the unit 310, acquiring the first media service module;
第一加载单元 330, 用于将该第二获取单元 320获取的该第一媒体业务 模块加载到该媒体处理系统 100, 以便于该第一媒体业务模块 410处理该第 一媒体业务。 The first loading unit 330 is configured to load the first media service module acquired by the second obtaining unit 320 into the media processing system 100, so that the first media service module 410 processes the first A media business.
具体而言, 第一接收单元 310可以接收该第一加载通知, 该第一加载通 知例如包括该第一媒体业务模块的标识, 以及加载类型, 该加载类型包括加 载或卸载; 该第一加载通知也可以包括获取该第一媒体业务模块的地址; 当 然, 该第一加载通知也可以直接包括该第一媒体业务模块, 本发明实施例并 不限于此。  Specifically, the first receiving unit 310 may receive the first loading notification, where the first loading notification includes, for example, an identifier of the first media service module, and a loading type, where the loading type includes loading or uninstalling; the first loading notification The first media service module may be directly included in the first media service module, and the embodiment of the present invention is not limited thereto.
第二获取单元 320根据第一接收单元 310接收的该第一加载通知, 可以 采用多种方式获取该第一媒体业务模块。 例如, 当第一加载通知包括第一媒 体业务模块的标识时, 第二获取单元 320例如根据该标识, 通过搜索或提示 用户指示, 以获取该第一媒体业务模块的地址, 从而获取该第一媒体业务模 块。 又例如, 当第一加载通知包括第一媒体业务模块的链接地址或本地存储 路径时, 第二获取单元 320可以根据第一加载通知包括的链接地址, 从该链 接地址表示的第三方服务器上将该第一媒体业务模块下载到本地 , 以获取该 第一媒体业务模块; 第二获取单元 320也可以根据第一加载通知包括的本地 存储路径, 从本地下载或拷贝该第一媒体业务模块。 再例如, 当第一加载通 知包括第一媒体业务模块时,第二获取单元 320可以直接由该第一加载通知 , 获取该第一媒体业务模块。  The second obtaining unit 320 may obtain the first media service module in multiple manners according to the first loading notification received by the first receiving unit 310. For example, when the first loading notification includes the identifier of the first media service module, the second obtaining unit 320 acquires the address of the first media service module by searching or prompting the user, for example, according to the identifier, thereby acquiring the first Media business module. For another example, when the first loading notification includes the link address or the local storage path of the first media service module, the second obtaining unit 320 may use the link address included in the first loading notification, from the third-party server indicated by the link address. The first media service module is downloaded to the local device to obtain the first media service module. The second obtaining unit 320 may also download or copy the first media service module locally according to the local storage path included in the first loading notification. For example, when the first loading notification includes the first media service module, the second obtaining unit 320 may directly obtain the first media service module by using the first loading notification.
应理解, 第二获取单元 320也可以通过其它方法获取该第一媒体业务模 块 410, 本发明实施例并不限于此。 还应理解, 第二获取单元 320获取该第 一媒体业务模块还意味着将该第一媒体业务模块保存在媒体处理系统 100 中, 但本发明实施例并不以此为限。  It should be understood that the second obtaining unit 320 may also acquire the first media service module 410 by other methods, and the embodiment of the present invention is not limited thereto. It should also be understood that the second obtaining unit 320 obtains the first media service module, which means that the first media service module is saved in the media processing system 100, but the embodiment of the present invention is not limited thereto.
第一加载单元 330可以将第二获取单元 320获取的该第一媒体业务模块 加载到该媒体处理系统 100。 例如, 第一加载单元 330调用该媒体处理系统 100所在的计算机系统或服务器的接口, 例如通过调用命令行接口, 运行保 存在媒体处理系统 100中的该第一媒体业务模块 410。  The first loading unit 330 can load the first media service module acquired by the second obtaining unit 320 to the media processing system 100. For example, the first loading unit 330 invokes an interface of a computer system or server in which the media processing system 100 is located, such as by invoking a command line interface, to run the first media service module 410 in the media processing system 100.
应理解, 在本发明实施例中, 为了处理该第一媒体业务, 媒体加载模块 除了加载该第一媒体业务模块之外, 还可以根据需要加载媒体处理系统 100 具有的其它媒体业务模块。 以媒体业务为媒体文件的转码应用为例, 除了具 有转码处理能力的第一媒体业务模块之外,媒体加载模块还可能按照缺省配 置的媒体业务模块数量, 例如安装默认配置加载具有以下业务处理能力的媒 体业务模块: 媒体文件输入能力、 媒体文件输出能力、 媒体文件分片能力、 媒体文件合并能力等。 It should be understood that, in the embodiment of the present invention, in order to process the first media service, the media loading module may load other media service modules of the media processing system 100 as needed, in addition to loading the first media service module. Taking the media service as a transcoding application of the media file as an example, in addition to the first media service module having the transcoding processing capability, the media loading module may also have the following number of media service modules configured by default, for example, the installation default configuration loading has the following Media processing module for business processing capability: media file input capability, media file output capability, media file fragmentation capability, Media file merging capabilities, etc.
还应理解, 在本发明实施例中, 一件媒体业务可能需要一个或多个媒体 业务模块进行处理, 并且该一个或多个媒体业务模块具有的业务处理能力可 能完全不相同, 也可能部分相同, 也可能完全相同, 即一件媒体业务可能由 一个或多个具有相同业务处理能力的媒体业务模块进行处理。 例如, 对于渲 染业务, 可以由两个或更多的用于处理渲染业务的媒体业务模块来处理, 以 提高渲染业务的处理效率, 并可以提高资源的利用率。  It should also be understood that, in the embodiment of the present invention, one piece of media service may require one or more media service modules to process, and the service processing capability of the one or more media service modules may be completely different or partially the same. It may also be identical, that is, a piece of media service may be processed by one or more media service modules with the same business processing capabilities. For example, for a rendering service, it can be processed by two or more media service modules for processing rendering services to improve the processing efficiency of the rendering service and improve resource utilization.
在本发明实施例中, 可选地, 如图 3A和 3B所示, 该媒体管理模块 200 还包括:  In the embodiment of the present invention, optionally, as shown in FIG. 3A and FIG. 3B, the media management module 200 further includes:
第三获取单元 240, 用于获取该媒体处理系统 100的媒体业务模块信息 和 /或该媒体处理系统 100当前处理的第二媒体业务的第二业务信息;  The third obtaining unit 240 is configured to obtain media service module information of the media processing system 100 and/or second service information of the second media service currently processed by the media processing system 100;
第二确定单元 250, 用于根据该第三获取单元 240获取的该媒体业务模 块信息和 /或该第二业务信息, 确定需要加载或卸载的该媒体处理系统 100 的第二媒体业务模块的模块类型和模块数量;  The second determining unit 250 is configured to determine, according to the media service module information and/or the second service information acquired by the third acquiring unit 240, a module of the second media service module of the media processing system 100 that needs to be loaded or uninstalled. Type and number of modules;
第二发送单元 260, 用于向该媒体加载模块 300发送第二加载通知, 该 第二加载通知用于指示该第二确定单元 250确定的该模块类型、该模块数量 和加载类型, 该加载类型包括加载或卸载;  The second sending unit 260 is configured to send a second loading notification to the media loading module 300, where the second loading notification is used to indicate the module type, the number of modules, and the loading type determined by the second determining unit 250, the loading type. Including loading or unloading;
该媒体加载模块 300还包括:  The media loading module 300 further includes:
第二接收单元 340, 用于接收该媒体管理模块 200发送的该第二加载通 知;  The second receiving unit 340 is configured to receive the second loading notification sent by the media management module 200.
第二加载单元 350, 用于根据该第二接收单元 340接收的该第二加载通 知指示的该模块类型、 该模块数量和该加载类型, 加载或卸载该第二媒体业 务模块。  The second loading unit 350 is configured to load or unload the second media service module according to the module type, the number of modules, and the loading type indicated by the second loading notification received by the second receiving unit 340.
应理解, 在本发明实施例中, 第一媒体业务指媒体处理系统 100的待处 理的媒体业务; 第二媒体业务指媒体处理系统 100的当前处理的媒体业务。 例如, 当外部设备或用户请求媒体处理系统 100处理渲染业务时, 该渲染业 务处于待处理状态, 因此该渲染业务属于第一媒体业务; 而当媒体处理系统 100开始处理该渲染业务时, 该渲染业务属于第二媒体业务。  It should be understood that, in the embodiment of the present invention, the first media service refers to the media service to be processed by the media processing system 100; the second media service refers to the media service currently processed by the media processing system 100. For example, when the external device or the user requests the media processing system 100 to process the rendering service, the rendering service is in a pending state, so the rendering service belongs to the first media service; and when the media processing system 100 starts processing the rendering service, the rendering The business belongs to the second media business.
还应理解, 在本发明实施例中, 第一媒体业务模块 410指处理第一媒体 业务的一个或多个模块, 该第一媒体业务模块 410具有媒体处理系统 100不 具有的业务处理能力, 是需要媒体处理系统 100加载的模块; 而第二媒体业 务模块指处理第二媒体业务的一个或多个模块,媒体处理系统 100具有该第 二媒体业务模块所具有的业务处理能力,是需要媒体处理系统 100加载或卸 载的模块。 It should also be understood that, in the embodiment of the present invention, the first media service module 410 refers to one or more modules that process the first media service, and the first media service module 410 has the service processing capability that the media processing system 100 does not have. Requires media processing system 100 to load modules; and second media industry The service module refers to one or more modules that process the second media service. The media processing system 100 has the service processing capability of the second media service module, and is a module that needs to be loaded or unloaded by the media processing system 100.
应理解, 本文中术语"和 /或", 仅仅是一种描述关联对象的关联关系, 表 示可以存在三种关系, 例如, A和 /或 B, 可以表示: 单独存在 A, 同时存在 A和 B, 单独存在 B这三种情况。 另外, 本文中字符 " , —般表示前后关 联对象是一种 "或" 的关系。  It should be understood that the term "and/or" in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may represent: A exists separately, and A and B exist simultaneously There are three cases of B alone. In addition, the character " in this article" generally means that the contextual object is an "or" relationship.
在本发明实施例中, 该媒体业务模块信息可以包括与该媒体处理系统 100中当前运行的各种类型媒体业务模块相关的各种信息, 可选地, 该媒体 业务模块信息包括该媒体处理系统 100内当前运行的媒体业务模块的负荷、 在线运行数量、 待处理任务数量和已处理任务数量中的至少一种; 该第二业 务信息可以包括与该媒体处理系统 100当前处理的各种媒体业务相关的各种 信息, 可选地, 该第二业务信息包括: 该媒体处理系统 100当前处理的第二 媒体业务的优先级、处理该第二媒体业务所需的媒体业务模块的类型和数量 中的至少一种。  In the embodiment of the present invention, the media service module information may include various information related to various types of media service modules currently running in the media processing system 100. Optionally, the media service module information includes the media processing system. At least one of a load of the currently running media service module, a number of online operations, a number of tasks to be processed, and a number of processed tasks; the second service information may include various media services currently processed by the media processing system 100 Optionally, the second service information includes: a priority of the second media service currently processed by the media processing system 100, and a type and quantity of media service modules required to process the second media service. At least one of them.
在本发明实施例中, 第二确定单元 250可以根据该媒体业务模块信息, 也可以根据该第二业务信息,也可以根据该媒体业务模块信息和该第二业务 信息,确定需要加载或卸载的该媒体处理系统 100的第二媒体业务模块的模 块类型和模块数量。 下面将结合具体例子分别进行描述。 应理解, 该第二媒 体业务模块可以包括具有不同或相同模块类型的一个或多个媒体业务模块。  In the embodiment of the present invention, the second determining unit 250 may determine, according to the media service module information, the second service information, or the media service module information and the second service information, to determine whether loading or uninstalling is required. The module type and number of modules of the second media service module of the media processing system 100. The following description will be respectively made in conjunction with specific examples. It should be understood that the second media service module can include one or more media service modules having different or the same module type.
在本发明实施例中, 根据第二业务信息, 可以确定需要加载或卸载的第 二媒体业务模块。 例如, 媒体管理模块根据媒体处理系统 100处理的媒体业 务的优先级, 可以确定加载与该优先级相应数量的第二媒体业务模块, 以处 理该媒体业务。 通常地, 媒体业务的优先级越高, 加载的第二媒体业务模块 的数量越多。 又例如, 媒体管理模块可以根据处理媒体业务所需的媒体业务 模块的类型和数量,将所需的媒体业务模块的类型和数量分别确定为第二媒 体业务模块的模块类型和模块数量。  In the embodiment of the present invention, according to the second service information, the second media service module that needs to be loaded or uninstalled may be determined. For example, the media management module may determine to load a second media service module corresponding to the priority according to the priority of the media service processed by the media processing system 100 to process the media service. Generally, the higher the priority of the media service, the greater the number of second media service modules loaded. For another example, the media management module may determine the type and quantity of the required media service modules as the module type and the number of modules of the second media service module, respectively, according to the type and quantity of the media service modules required for processing the media service.
在本发明实施例中, 根据媒体业务模块信息, 可以确定需要加载或卸载 的第二媒体业务模块。 例如, 对于每类媒体业务模块, 媒体管理模块可以根 据媒体处理系统 100内运行的媒体业务模块的负荷,确定需要加载或卸载的 第二媒体业务模块。 例如, 当在线运行的某类型媒体业务模块的负荷超过或 低于预置的阈值时, 则可以将预置数量确定为需要加载或卸载的模块数量。 例如, 转码的媒体业务模块负荷超过阈值时, 可以增加 1个转码类型的媒体 业务模块; 转码的媒体业务模块负荷低于阈值时, 可以减少 1个转码类型的 媒体业务模块。 应理解, 可以用中央处理器(Central Processing Unit, 筒称 为 "CPU" ) 的占用率等参数表示媒体业务模块的负荷。 In the embodiment of the present invention, according to the media service module information, the second media service module that needs to be loaded or uninstalled may be determined. For example, for each type of media service module, the media management module can determine a second media service module that needs to be loaded or unloaded according to the load of the media service module running in the media processing system 100. For example, when the load of a certain type of media service module running online exceeds or Below the preset threshold, the preset number can be determined as the number of modules that need to be loaded or unloaded. For example, when the load of the transcoded media service module exceeds the threshold, a media service module of one transcoding type may be added. When the load of the transcoded media service module is lower than the threshold, the media service module of one transcoding type may be reduced. It should be understood that the load of the media service module may be represented by parameters such as the occupancy rate of a central processing unit ("CPU").
例如, 对于每类媒体业务模块, 媒体管理模块可以根据媒体业务模块的 待处理任务数量或已处理任务数量,确定需要加载或卸载的第二媒体业务模 块。 例如, 如果媒体管理模块确定某类型的媒体业务模块的待处理任务数量 增加或减少, 并达到预置的条件, 则分别可以确定加载或卸载该类型的媒体 业务模块的数量, 例如加载或卸载预置数量的第二媒体业务模块。 该预置的 条件例如为任务数增加或减少的速率等, 该增加或减少的速率的单位可以是 每秒任务数。 类似地, 如果媒体管理模块确定某类型的媒体业务模块的已处 理任务数量减少或增加, 并达到预置的条件, 则分别可以确定卸载或加载该 类型的媒体业务模块的数量。  For example, for each type of media service module, the media management module can determine the second media service module that needs to be loaded or unloaded according to the number of tasks to be processed or the number of processed tasks of the media service module. For example, if the media management module determines that the number of pending tasks of a certain type of media service module increases or decreases and reaches a preset condition, respectively, it may determine that the number of media service modules of the type is loaded or unloaded, for example, loading or unloading pre- Set the number of second media service modules. The preset condition is, for example, a rate at which the number of tasks is increased or decreased, and the rate of the rate of increase or decrease may be the number of tasks per second. Similarly, if the media management module determines that the number of processed tasks of a certain type of media service module is reduced or increased and reaches a preset condition, respectively, it may be determined to uninstall or load the number of media service modules of the type.
在本发明实施例中, 根据第二业务信息和媒体业务模块信息, 可以确定 需要加载或卸载的第二媒体业务模块。 例如, 对于每类媒体业务模块, 媒体 管理模块根据在线运行的某类型的媒体业务模块的数量, 以及处理媒体业务 所需的该类型的媒体业务模块的数量,确定需要加载或卸载的第二媒体业务 模块。 具体地, 例如, 当在线运行的媒体业务模块的数量小于所需时, 则将 所需的媒体业务模块的数量与在线运行的媒体业务模块的数量的差值,确定 为需要加载的第二媒体业务模块的模块数量; 类似地, 当在线运行的媒体业 务模块的数量大于所需时, 则将在线运行的媒体业务模块的数量与所需的媒 体业务模块的数量的差值, 确定为需要卸载的第二媒体业务模块的模块数 量。  In the embodiment of the present invention, according to the second service information and the media service module information, the second media service module that needs to be loaded or uninstalled may be determined. For example, for each type of media service module, the media management module determines the second media that needs to be loaded or uninstalled according to the number of certain types of media service modules running online and the number of media service modules of the type required for processing the media service. Business module. Specifically, for example, when the number of media service modules running online is less than required, the difference between the number of required media service modules and the number of media service modules running online is determined as the second media that needs to be loaded. The number of modules of the service module; similarly, when the number of media service modules running online is greater than required, the difference between the number of media service modules running online and the number of required media service modules is determined to be uninstalled. The number of modules of the second media service module.
应理解, 在本发明实施例中, 媒体管理模块也可以根据第三方系统的指 示,确定需要加载或卸载的第二媒体业务模块,本发明实施例并不以此为限。  It should be understood that, in the embodiment of the present invention, the media management module may also determine, according to the indication of the third-party system, the second media service module that needs to be loaded or uninstalled, which is not limited thereto.
因此,本发明实施例的媒体处理系统, 能够根据第二业务信息和 /或媒体 业务模块信息, 动态地确定加载或卸载不同类型的媒体业务模块, 从而能够 提高媒体业务的处理效率, 并能够提高资源的利用率, 增加用户体验。  Therefore, the media processing system of the embodiment of the present invention can dynamically determine to load or unload different types of media service modules according to the second service information and/or the media service module information, thereby improving the processing efficiency of the media service and improving the efficiency of the media service. Resource utilization, increasing user experience.
在本发明实施例中, 该第二确定单元 250还用于: 根据该第三获取单元 In the embodiment of the present invention, the second determining unit 250 is further configured to: according to the third acquiring unit
240获取的该媒体业务模块信息和 /或该第二业务信息, 以媒体业务模块的进 程为粒度或以媒体业务模块为粒度, 确定该模块数量。 具体而言, 在本发明 实施例中, 第二媒体业务模块的模块数量, 可以以媒体业务模块本身为粒度 计算, 即不管该媒体业务模块是以单进程形式还是以多进程形式运行; 该模 块数量也可以以媒体业务模块的进程为粒度计算, 即在该媒体业务模块以多 进程形式运行的情况下, 可以将进程数量折算成媒体业务模块的数量。 240, the media service module information and/or the second service information obtained by the media service module The program is granular or the granularity of the media service module determines the number of modules. Specifically, in the embodiment of the present invention, the number of modules of the second media service module may be calculated by using the media service module itself, that is, whether the media service module runs in a single process or in a multi-process format; The number can also be calculated according to the process of the media service module. That is, in the case that the media service module runs in a multi-process format, the number of processes can be converted into the number of media service modules.
例如, 对于单进程的转码类型的媒体业务模块而言, 第二媒体业务模块 的模块数量就是最终运行的转码类型的媒体业务模块的进程数量; 对于具有 一个主进程和若干个副进程的转码类型的媒体业务模块而言, 可以按照 M 个主进程或 N个副进程相应于一个媒体业务模块,确定第二媒体业务模块的 模块数量, 其中 M和 N为自然数。  For example, for a single-process transcoding type media service module, the number of modules of the second media service module is the number of processes of the media service module of the transcode type that is finally run; for having one main process and several secondary processes For the media service module of the transcoding type, the number of modules of the second media service module may be determined according to the M main process or the N sub-processes corresponding to one media service module, where M and N are natural numbers.
应理解, 在本发明实施例中, 术语 "粒度,, 可以表示 "单位,, 的含义, 例如 "以 A为粒度" 即 "以 A为单位" 的含义, 又例如在本发明实施例中, 第二确定单元 250以媒体业务模块的进程为单位或以媒体业务模块为单位, 确定模块数量。  It should be understood that, in the embodiment of the present invention, the term "particle size" may mean the meaning of "unit", for example, "particle size with A", that is, "in unit of A", and for example, in the embodiment of the present invention, The second determining unit 250 determines the number of modules in units of processes of the media service module or in units of media service modules.
在本发明实施例中,可选地,如图 4所示,该媒体管理模块 200还包括: 第四获取单元 270,用于获取该媒体处理系统 100的媒体业务模块信息、 资源信息, 以及该媒体处理系统 100当前处理的第二媒体业务的第二业务信 息中的至少一种信息;  In the embodiment of the present invention, optionally, as shown in FIG. 4, the media management module 200 further includes: a fourth obtaining unit 270, configured to acquire media service module information, resource information, and the media processing system 100 At least one of the second service information of the second media service currently processed by the media processing system 100;
第三确定单元 280, 用于根据该第四获取单元 270获取的该媒体业务模 块信息、 该第二业务信息和该资源信息中的至少一种信息, 以及媒体业务模 块与系统资源之间的数量比例关系,确定需要分配或释放的第一系统资源的 资源类型和资源数量;  The third determining unit 280 is configured to: according to the at least one of the media service module information, the second service information, and the resource information acquired by the fourth acquiring unit 270, and the quantity between the media service module and the system resource a proportional relationship that determines the resource type and number of resources of the first system resource that needs to be allocated or released;
分配单元 290, 用于根据该第三确定单元 280确定的该资源类型和该资 源数量, 分配或释放该第一系统资源。  The allocating unit 290 is configured to allocate or release the first system resource according to the resource type determined by the third determining unit 280 and the resource quantity.
在本发明实施例中,该资源信息可以包括与媒体处理系统的资源相关的 各种信息。 可选地, 该资源信息包括该媒体处理系统内当前已分配的第二系 统资源的信息、 该媒体处理系统内当前可供使用的第三系统资源的信息、 以 及该媒体处理系统的总系统资源的信息中的至少一种。  In an embodiment of the invention, the resource information may include various information related to resources of the media processing system. Optionally, the resource information includes information about a second system resource that has been currently allocated in the media processing system, information about a third system resource currently available in the media processing system, and total system resources of the media processing system. At least one of the information.
应理解, 在本发明实施例中, 媒体处理系统 100的总系统资源为当前已 分配的第二系统资源与当前可供使用的第三系统资源之和。 还应理解, 该第 一系统资源指媒体管理模块 200确定需要分配或释放的系统资源, 当该第一 系统资源指需要分配的系统资源时, 该第一系统资源属于第二系统资源; 当 该第一系统资源指需要释放的系统资源时, 该第一系统资源则属于第三系统 资源。 It should be understood that, in the embodiment of the present invention, the total system resource of the media processing system 100 is the sum of the currently allocated second system resource and the currently available third system resource. It should also be understood that the first system resource refers to the media management module 200 determining system resources that need to be allocated or released, when the first When the system resource refers to the system resource that needs to be allocated, the first system resource belongs to the second system resource; when the first system resource refers to the system resource that needs to be released, the first system resource belongs to the third system resource.
在本发明实施例中, 媒体处理系统的系统资源包括但不限于计算资源 (例如 CPU )、 存储资源(例如内存、 硬盘空间)、 网络资源(例如 IP地址、 带宽)等。 可选地, 资源类型包括计算资源、 存储资源或网络资源。  In the embodiment of the present invention, system resources of the media processing system include, but are not limited to, computing resources (such as CPU), storage resources (such as memory, hard disk space), network resources (such as IP address, bandwidth), and the like. Optionally, the resource type includes a computing resource, a storage resource, or a network resource.
在本发明实施例中,媒体管理模块也可以根据资源信息以及媒体业务模 块与系统资源之间的数量比例关系,确定需要增加或减少的第二媒体业务模 块的模块数量。  In the embodiment of the present invention, the media management module may also determine the number of modules of the second media service module that need to be increased or decreased according to the resource information and the quantitative relationship between the media service module and the system resources.
例如,如果媒体管理模块确定当前可分配的第三系统资源的数量增加或 减少, 并达到预置的条件, 则可以确定需要增加或减少的系统资源的数量, 例如增加或减少预置数量的系统资源; 并可以进一步根据该数量比例关系, 确定需要增加或减少的第二媒体业务模块的模块数量。 应理解, 该数量比例 关系可以是经验数据, 也可以是预先配置的数值, 并且媒体管理模块也可以 动态地调整该数量比例关系。 媒体管理模块可以进一步根据预置的策略, 计 算获得各类型的媒体业务模块需要增加或减少的数量。例如用上述计算出的 数目按预置的比例分摊计算出各类型媒体业务模块需要增加或减少的数量, 或随机分摊计算出各类型媒体业务模块需要增加或减少的数目,或仅对于某 类型或某几类型媒体业务模块, 确定需要增加或减少的数量, 但本发明实施 例并不限于此。  For example, if the media management module determines that the number of currently assignable third system resources increases or decreases and reaches a preset condition, it may determine the number of system resources that need to be increased or decreased, such as increasing or decreasing the preset number of systems. Resources; and may further determine the number of modules of the second media service module that need to be increased or decreased according to the quantity proportional relationship. It should be understood that the quantitative relationship may be empirical data or a pre-configured value, and the media management module may also dynamically adjust the quantitative relationship. The media management module can further calculate the number of media service modules that need to be increased or decreased according to preset policies. For example, the number calculated by the above is calculated according to a preset ratio to calculate the number of media service modules that need to be increased or decreased, or randomly calculated to calculate the number of media service modules that need to be increased or decreased, or only for a certain type or Certain types of media service modules determine the number that needs to be increased or decreased, but embodiments of the present invention are not limited thereto.
第三确定单元 280可以根据该第四获取单元 270获取的该媒体业务模块 信息、 该第二业务信息和该资源信息中的至少一种信息, 并根据媒体业务模 块与系统资源之间的数量比例关系,确定需要分配或释放的第一系统资源的 资源类型和资源数量。  The third determining unit 280 may be based on at least one of the media service module information, the second service information, and the resource information acquired by the fourth obtaining unit 270, and according to a quantity ratio between the media service module and the system resource. Relationship, determining the resource type and number of resources of the first system resource that needs to be allocated or released.
资源管理模块可以先确定需要增加或减少的媒体业务模块的数量,再根 据数量比例关系确定相应的需要分配或释放的第一系统资源。 例如, 资源管 理模块可以先确定需要增加四个媒体业务模块,假设媒体业务模块与系统资 源之间的数量比例关系为 2, 则资源管理模块可以确定需要分配的系统资源 的数量为 2。 媒体管理模块可以再根据媒体处理系统需要的总资源数目, 与 当前已分配的资源数目, 确定需要分配或释放的资源。  The resource management module may first determine the number of media service modules that need to be increased or decreased, and then determine the corresponding first system resources that need to be allocated or released according to the quantitative relationship. For example, the resource management module may first determine that four media service modules need to be added. Assuming that the quantitative relationship between the media service module and the system resources is 2, the resource management module may determine that the number of system resources to be allocated is 2. The media management module can then determine the resources that need to be allocated or released according to the total number of resources required by the media processing system and the number of currently allocated resources.
资源管理模块也可以根据当前资源信息(例如第二系统资源的信息、 第 三系统资源的信息、 总系统资源的信息)的变化, 自动进行资源的分配和释 放。 例如, 如果可分配的第二系统资源的数量大于 0, 或允许使用的总资源 数量大于已分配的资源的数量, 则总是按可分配的资源数量进行分配; 如果 允许使用的总资源数量小于已分配的资源的数量, 则释放相应的资源。 The resource management module can also be based on current resource information (eg, information of the second system resource, The change of the information of the three system resources and the information of the total system resources automatically allocates and releases the resources. For example, if the number of second system resources that can be allocated is greater than 0, or the total number of allowed resources is greater than the number of allocated resources, it is always allocated according to the number of resources that can be allocated; if the total number of resources allowed is less than The number of allocated resources, the corresponding resources are released.
应理解, 在本发明实施例中, 媒体管理模块也可以根据第三方系统的指 示, 进行资源的分配和释放, 本发明实施例并不限于此。  It should be understood that, in the embodiment of the present invention, the media management module may also perform resource allocation and release according to the indication of the third-party system, and the embodiment of the present invention is not limited thereto.
在本发明实施例中, 可选地, 该第三确定单元 280还用于: 根据该第四 获取单元 270获取的该媒体业务模块信息、该第二业务信息和该资源信息中 的至少一种信息, 以及媒体业务模块与系统资源之间的数量比例关系, 以计 算资源、 存储资源和网络资源中的至少一种资源为粒度或以虚拟机为粒度, 确定该资源数量。  In the embodiment of the present invention, the third determining unit 280 is further configured to: at least one of the media service module information, the second service information, and the resource information acquired by the fourth acquiring unit 270 The information, and the quantity proportional relationship between the media service module and the system resource, is determined by using at least one of the computing resource, the storage resource, and the network resource as a granularity or a virtual machine as a granularity.
具体而言, 媒体管理模块可以按虚拟机的粒度确定资源数量, 虚拟机可 以是包括计算资源、 存储资源、 网络资源在内的一组资源; 媒体管理模块也 可以根据媒体业务模块对资源需求的程度, 按某类资源为粒度进行计算, 例 如为计算资源为粒度确定资源数量。  Specifically, the media management module may determine the quantity of resources according to the granularity of the virtual machine, where the virtual machine may be a group of resources including computing resources, storage resources, and network resources; the media management module may also according to the resource requirements of the media service module. Degree, calculated according to the granularity of a certain type of resource, for example, the number of resources is determined by the computing resource as the granularity.
因此, 本发明实施例的媒体处理系统, 一方面能够根据处理媒体业务的 需要而动态加载不同的媒体业务模块,从而能够提升媒体处理系统的业务处 理能力, 提高媒体处理系统的通用性、 灵活性以及资源利用率, 并能够增加 用户体验, 降低成本; 另一方面能够根据媒体业务模块信息、 第二业务信息 和资源信息中的至少一种信息, 动态地确定分配或释放的系统资源, 从而能 够提高资源利用率, 提高媒体业务的处理效率, 并进一步增加用户体验。  Therefore, the media processing system of the embodiment of the present invention can dynamically load different media service modules according to the needs of processing the media service, thereby improving the service processing capability of the media processing system and improving the versatility and flexibility of the media processing system. And resource utilization, and can increase user experience and reduce cost; on the other hand, dynamically allocate or release system resources according to at least one of media service module information, second service information, and resource information, thereby enabling Improve resource utilization, improve the processing efficiency of media services, and further increase the user experience.
在本发明实施例中, 如图 5所示, 可选地, 该媒体处理系统 100还包括 并行计算模块 500, 该并行计算模块 500包括:  In the embodiment of the present invention, as shown in FIG. 5, the media processing system 100 further includes a parallel computing module 500, where the parallel computing module 500 includes:
拆分单元 510, 用于根据与媒体处理系统处理的第三媒体业务相应的调 度处理逻辑, 将该第三媒体业务拆分成至少两个媒体子业务;  The splitting unit 510 is configured to split the third media service into at least two media sub-services according to the scheduling processing logic corresponding to the third media service processed by the media processing system;
第一调用单元 520 , 用于调用该媒体处理系统的第三媒体业务模块 430 , 该第三媒体业务模块 430与该拆分单元 510拆分的该至少两个媒体子业务中 的每个媒体子业务相应, 以分别处理该每个媒体子业务。  The first invoking unit 520 is configured to invoke the third media service module 430 of the media processing system, and the third media service module 430 and each of the at least two media sub-services split by the splitting unit 510 The business corresponds to each of the respective media sub-services.
例如, 对于需要转码的第三媒体业务, 拆分单元 510可以将该第三媒体 业务拆分成媒体文件输入、 媒体文件输出、 媒体文件分配、 媒体文件合并、 媒体文件转码等媒体子业务; 然后第一调用单元 520调用分别用于处理各媒 体子业务的第三媒体业务模块 430, 以分别处理各媒体子业务。 For example, for the third media service that needs to be transcoded, the splitting unit 510 can split the third media service into media sub-services such as media file input, media file output, media file allocation, media file merge, media file transcoding, and the like. Then the first calling unit 520 is called to process each medium separately. The third media service module 430 of the body service separately processes each media sub-service.
应理解,该第三媒体业务模块 430可以是用于处理各媒体子业务的同一 类的多个媒体业务模块, 例如, 该第三媒体业务模块 430可以包括至少两个 相同的业务模块, 每个业务模块都可以处理各媒体子业务; 该第三媒体业务 模块 430也可以分别用于处理各媒体子业务的不同类的多个媒体业务模块, 例如, 该第三媒体业务模块 430可以包括至少两类不同的业务模块, 每类业 务模块可以用于处理其中一个媒体子业务。应理解,该第三媒体业务模块 430 包括至少两个媒体业务子模块; 还应理解, 该第三媒体业务模块 430与至少 两个媒体子业务中的每个媒体子业务相应,指该第三媒体业务模块 430包括 的至少两个媒体业务子模块能够用于处理各媒体子业务, 或能够用于分别处 理各媒体子业务。  It should be understood that the third media service module 430 may be a plurality of media service modules of the same class for processing each media sub-service. For example, the third media service module 430 may include at least two identical service modules, each The service module can process the media sub-services. The third media service module 430 can also be used to process multiple media service modules of different types of media sub-services. For example, the third media service module 430 can include at least two. Different types of business modules, each type of business module can be used to process one of the media sub-services. It should be understood that the third media service module 430 includes at least two media service sub-modules; it should also be understood that the third media service module 430 corresponds to each of the at least two media sub-services, and refers to the third The at least two media service sub-modules included in the media service module 430 can be used to process each media sub-service, or can be used to separately process each media sub-service.
应理解, 在本发明实施例中, 第三媒体业务可以表示媒体处理系统当前 处理的任一媒体业务, 例如第三媒体业务也可以是第二媒体业务。 第三媒体 业务模块可以包括分别用于处理各媒体子业务的一个或多个媒体业务模块。 在本发明实施例中, 术语 "第一"、 "第二,, 和 "第三,,仅仅是为了区分不同 情况下的内容, 不应对本发明实施例构成任何限定。  It should be understood that, in the embodiment of the present invention, the third media service may represent any media service currently processed by the media processing system, for example, the third media service may also be the second media service. The third media service module can include one or more media service modules for processing each media sub-service. In the embodiments of the present invention, the terms "first", "second", and "third" are merely used to distinguish contents in different situations, and should not be construed as limiting the embodiments of the present invention.
应理解, 在本发明实施例中, "与 A相应的 B"表示 B与 A相关联, 根 据 A可以确定 B。 但还应理解, 根据 A确定 B并不意味着仅仅根据 A确定 B, 还可以根据 A和 /或其它信息确定 B。 例如, 在本发明实施例中, "与媒 体业务相应的媒体业务模块" 表示该媒体业务模块用于处理该媒体业务; "与媒体业务相应的调度处理逻辑"表示用于处理该媒体业务的调度处理逻 辑。  It should be understood that in the embodiment of the present invention, "B corresponding to A" means that B is associated with A, and B can be determined based on A. However, it should be understood that determining B according to A does not mean that B is determined only on the basis of A, and that B can also be determined based on A and/or other information. For example, in the embodiment of the present invention, the "media service module corresponding to the media service" indicates that the media service module is used to process the media service; "the scheduling processing logic corresponding to the media service" indicates a schedule for processing the media service. Processing logic.
应理解, 各媒体子业务均可由多个相应的媒体业务模块完成, 各媒体业 务模块在业务处理上相互独立。还应理解,各媒体子业务可由若干参数代表, 这些参数包括但不限于子业务标识、 子业务类型 (例如分片、 转码等)、 子 业务的输入和输出参数、 子业务的处理参数、 归属的任务标识等。  It should be understood that each media sub-service can be completed by a plurality of corresponding media service modules, and each media service module is independent of each other in service processing. It should also be understood that each media sub-service may be represented by a number of parameters including, but not limited to, sub-service identification, sub-service type (eg, fragmentation, transcoding, etc.), input and output parameters of sub-services, processing parameters of sub-services, The assigned task identifier, etc.
在本发明实施例中, 与媒体业务相应的调度处理逻辑, 可以预先配置。 通常, 不同的媒体业务可以具有不同的调度处理逻辑, 因此, 并行计算模块 根据媒体业务的不同, 可以使用相应的调度处理逻辑。  In the embodiment of the present invention, the scheduling processing logic corresponding to the media service may be pre-configured. Generally, different media services may have different scheduling processing logic. Therefore, the parallel computing module may use corresponding scheduling processing logic according to different media services.
以媒体转码业务为例, 该媒体业务的调度处理逻辑可以是: 先调度媒体 文件输入子业务, 以完成待转码的源媒体文件的上传; 然后调度媒体文件分 片子业务, 以完成对源媒体文件的分片, 即将源文件拆分成若干分片文件; 每个分片子业务完成后, 即可调度媒体转码子业务, 以对生成的分片文件进 行转码; 当所有分片文件均转码完成后, 即可调度媒体合并子业务, 以将所 有转码后的分片文件合并为一个文件; 最后调度媒体文件输出子业务, 以将 合并后的媒体文件输出到指定目的地址, 从而完成媒体转码业务的处理。 由 此可以灵活处理各媒体业务, 提高系统处理媒体业务的效率。 Taking the media transcoding service as an example, the scheduling processing logic of the media service may be: first scheduling a media file to input a sub-service to complete uploading of the source media file to be transcoded; and then scheduling the media file The slice service is used to complete the fragmentation of the source media file, and the source file is split into several fragment files; after each fragment sub-service is completed, the media transcoding sub-service can be scheduled to transcode the generated fragment file. When all the fragment files are transcoded, the media merge sub-service can be scheduled to merge all the transcoded fragment files into one file; finally, the media file is output to the sub-service to merge the media files. Output to the specified destination address to complete the processing of the media transcoding service. This makes it possible to flexibly handle various media services and improve the efficiency of the system in handling media services.
在本发明实施例中, 可选地, 如图 6所示, 该媒体处理系统 100还包括 并行计算模块 500, 该并行计算模块 500包括:  In the embodiment of the present invention, optionally, as shown in FIG. 6, the media processing system 100 further includes a parallel computing module 500, where the parallel computing module 500 includes:
第二调用单元 530, 用于在接收到待处理的至少两个第四媒体业务时, 根据预置的调度策略,调度与该至少两个第四媒体业务相应的第四媒体业务 模块 440, 以分别处理该至少两个第四媒体业务。  The second invoking unit 530 is configured to: when receiving the at least two fourth media services to be processed, scheduling, according to the preset scheduling policy, the fourth media service module 440 corresponding to the at least two fourth media services, to The at least two fourth media services are processed separately.
该调度策略可以预先配置, 并且该调度策略包括但不限于媒体业务的优 先级等。 例如高优先级的任务可以优先获得处理, 甚至在资源不足时, 可抢 占资源获得优先处理。 例如, 系统可根据预置的调度策略, 同时处理多个媒 体转码业务, 以及其它应用类型的业务, 例如渲染、 水印等媒体业务。  The scheduling policy can be pre-configured, and the scheduling policy includes, but is not limited to, the priority of the media service. For example, high-priority tasks can be prioritized for processing, and even when resources are insufficient, preemptive resources can be prioritized. For example, the system can process multiple media transcoding services and other application type services, such as media services such as rendering and watermarking, according to a preset scheduling policy.
因此, 本发明实施例的媒体处理系统, 一方面能够根据处理媒体业务的 需要而动态加载不同的媒体业务模块,从而能够提升媒体处理系统的业务处 理能力, 提高媒体处理系统的通用性、 灵活性以及资源利用率, 并能够增加 用户体验, 降低成本; 另一方面能够提高媒体处理系统的并行计算能力, 提 高业务处理效率, 并能够增加用户体验。  Therefore, the media processing system of the embodiment of the present invention can dynamically load different media service modules according to the needs of processing the media service, thereby improving the service processing capability of the media processing system and improving the versatility and flexibility of the media processing system. And resource utilization, and can increase the user experience and reduce costs; on the other hand, it can improve the parallel computing power of the media processing system, improve the efficiency of business processing, and increase the user experience.
应理解, 在本发明实施例中, 第四媒体业务模块指用于并行处理至少两 个第四媒体业务的模块; 第四媒体业务指媒体处理系统中同时待处理的媒体 业务。  It should be understood that, in the embodiment of the present invention, the fourth media service module refers to a module for processing at least two fourth media services in parallel; and the fourth media service refers to a media service to be processed simultaneously in the media processing system.
在本发明实施例中,可选地,如图 7所示,该媒体加载模块 300还包括: 第三接收单元 360, 用于接收用户发送的用于指示加载第五媒体业务模 块的加载信息, 该第五媒体业务模块具有该媒体处理系统不具有的业务处理 能力;  In the embodiment of the present invention, optionally, as shown in FIG. 7 , the media loading module 300 further includes: a third receiving unit 360, configured to receive loading information sent by the user to indicate loading the fifth media service module, where The fifth media service module has a service processing capability that the media processing system does not have;
第五获取单元 370, 用于根据该第三接收单元 360接收的该加载信息, 获取该第五媒体业务模块;  The fifth obtaining unit 370 is configured to acquire the fifth media service module according to the loading information received by the third receiving unit 360.
第三加载单元 380, 用于将该第五获取单元 370获取的该第五媒体业务 模块加载到该媒体处理系统。 例如, 媒体加载模块可以通过诸如门户网站(Web Portal )的人机界面, 接收用户发送的加载信息, 并根据该加载信息获取第五媒体业务模块, 并加 载到该媒体处理系统, 以增加媒体处理系统的业务处理能力。 The third loading unit 380 is configured to load the fifth media service module acquired by the fifth obtaining unit 370 into the media processing system. For example, the media loading module may receive the loading information sent by the user through a human-machine interface such as a web portal, and acquire a fifth media service module according to the loading information, and load the media processing system into the media processing system to increase media processing. The business processing capabilities of the system.
图 8示出了根据本发明实施例的媒体处理系统的一种应用场景。在本发 明实施例中, 如图 8所示, 计算机系统包括根据本发明实施例的媒体处理系 统以及供电模块,其中,该供电模块用于给计算机系统和媒体处理系统供电, 该供电模块例如是 220V的交流电源或 24V的直流电源等; 该媒体处理系统 包括的媒体管理模块 200可以从系统资源处获取资源信息, 该系统资源例如 是计算机系统提供的计算资源或存储资源等,从并行计算模块 500处获取第 二业务信息, 并从媒体业务模块 400处获取媒体业务模块信息, 从而可以根 据上述信息向媒体加载模块 300发送加载通知,也可以分配或释放系统资源; 该媒体加载模块可以从媒体业务加载接口接收用户或第三方系统提供的媒 体业务模块, 并加载媒体业务模块, 以增加媒体业务处理系统的业务处理能 力; 该并行计算模块可以获取媒体业务, 并可以获取媒体管理模块提供的媒 体业务模块信息, 并调用媒体业务模块, 媒体业务模块可以接收媒体数据输 入,并输出经处理的媒体数据,应理解,该媒体数据包括但不限于媒体文件、 视频流、 音频流等。 还应理解, 该计算机系统可以是个人计算机, 也可以是 服务器, 还可以是虚拟机等, 本发明实施例并不限于此。 FIG. 8 shows an application scenario of a media processing system according to an embodiment of the present invention. In an embodiment of the present invention, as shown in FIG. 8, the computer system includes a media processing system and a power supply module according to an embodiment of the present invention, wherein the power supply module is configured to supply power to a computer system and a media processing system, for example, 220V AC power or 24V DC power supply; the media management module 200 included in the media processing system can obtain resource information from a system resource, such as a computing resource or a storage resource provided by a computer system, and a parallel computing module. The second service information is obtained at 500 , and the media service module information is obtained from the media service module 400, so that the loading notification can be sent to the media loading module 300 according to the foregoing information, and the system resource can also be allocated or released; the media loading module can be from the media. The service loading interface receives the media service module provided by the user or the third-party system, and loads the media service module to increase the service processing capability of the media service processing system; the parallel computing module can obtain the media service, and can obtain the media provided by the media management module. industry Module information, and calls the media service module, the media service module may receive media data, and outputs the processed media data, it should be appreciated that the media data includes media files, but not limited to, a video stream, audio stream. It should be understood that the computer system may be a personal computer, a server, a virtual machine, or the like, and the embodiment of the present invention is not limited thereto.
因此, 本发明实施例的媒体处理系统, 根据待处理的媒体业务的业务信 息, 确定媒体处理系统需要增加的媒体业务模块, 该媒体业务模块具有该媒 体处理系统不具有的业务处理能力, 由此能够根据处理媒体业务的需要而动 态加载不同的媒体业务模块, 从而能够提升媒体处理系统的业务处理能力, 提高媒体处理系统的通用性、灵活性以及资源利用率,并能够增加用户体验, 降低成本。  Therefore, the media processing system of the embodiment of the present invention determines, according to the service information of the media service to be processed, a media service module that the media processing system needs to add, and the media service module has a service processing capability that the media processing system does not have, thereby Dynamically loading different media service modules according to the needs of processing media services, thereby improving the service processing capability of the media processing system, improving the versatility, flexibility, and resource utilization of the media processing system, and increasing the user experience and reducing costs. .
上文中结合图 1至图 8,详细描述了根据本发明实施例的媒体处理系统, 下面将结合图 9至图 13, 详细描述根据本发明实施例的处理媒体业务的方 法。  The media processing system according to an embodiment of the present invention is described in detail above with reference to Figs. 1 through 8, and a method of processing media services according to an embodiment of the present invention will be described in detail below with reference to Figs.
图 9示出了根据本发明实施例的处理媒体业务的方法 800的示意性流程 图。 如图 9所示, 该方法 800包括:  FIG. 9 shows a schematic flow diagram of a method 800 of processing media traffic in accordance with an embodiment of the present invention. As shown in Figure 9, the method 800 includes:
S810, 获取媒体处理系统待处理的第一媒体业务的第一业务信息; S810. Obtain first service information of a first media service to be processed by the media processing system.
S820, 根据该第一业务信息, 确定该媒体处理系统需要增加的第一媒体 业务模块, 该第一媒体业务模块具有该媒体处理系统不具有的业务处理能 力; S820. Determine, according to the first service information, a first media that needs to be added by the media processing system. a service module, the first media service module has a service processing capability that the media processing system does not have;
S830, 获取该第一媒体业务模块;  S830, acquiring the first media service module.
S840, 将该第一媒体业务模块加载到该媒体处理系统, 以便于该媒体处 理系统处理该第一媒体业务。  S840. Load the first media service module into the media processing system, so that the media processing system processes the first media service.
媒体处理系统可以获取处理的第一媒体业务的第一业务信息, 并根据该 第一业务信息, 确定该媒体处理系统需要增加的第一媒体业务模块, 该第一 媒体业务模块具有的业务处理能力正是该媒体处理系统处理该第一媒体业 务所不具有的业务处理能力, 从而可以获取并加载该第一媒体业务模块, 以 处理该第一媒体业务。  The media processing system may obtain the first service information of the processed first media service, and determine, according to the first service information, the first media service module that the media processing system needs to add, and the service processing capability of the first media service module The media processing system processes the service processing capability that the first media service does not have, so that the first media service module can be acquired and loaded to process the first media service.
因此, 本发明实施例的处理媒体业务的方法, 通过根据待处理的媒体业 务的业务信息, 确定媒体处理系统需要增加的媒体业务模块, 该媒体业务模 块具有该媒体处理系统不具有的业务处理能力, 由此能够根据处理媒体业务 的需要而动态加载不同的媒体业务模块,从而能够提升媒体处理系统的业务 处理能力, 提高媒体处理系统的通用性、 灵活性以及资源利用率, 并能够增 加用户体验, 降低成本。  Therefore, the method for processing a media service according to the embodiment of the present invention determines, by the service information of the media service to be processed, a media service module that the media processing system needs to add, and the media service module has a service processing capability that the media processing system does not have. Therefore, different media service modules can be dynamically loaded according to the needs of processing the media service, thereby improving the service processing capability of the media processing system, improving the versatility, flexibility, and resource utilization of the media processing system, and increasing the user experience. , cut costs.
在本发明实施例中, 媒体处理系统可以根据第一媒体业务模块的标识, 获取该第一媒体业务模块;媒体处理系统也可以根据第一媒体业务模块的存 储地址, 获取该第一媒体业务模块等。 例如, 媒体处理系统可以根据第一媒 体业务模块在第三方服务器上的链接地址,从第三方服务器上将该第一媒体 业务模块下载到本地, 以获取该第一媒体业务模块; 媒体处理系统也可以根 据第一媒体业务模块在本地服务器上的存储路径, 获取该第一媒体业务模 块。 本发明实施例并不限于此。  In the embodiment of the present invention, the media processing system may obtain the first media service module according to the identifier of the first media service module, and the media processing system may obtain the first media service module according to the storage address of the first media service module. Wait. For example, the media processing system may download the first media service module from the third-party server to the local device according to the link address of the first media service module on the third-party server to obtain the first media service module; the media processing system also The first media service module may be obtained according to a storage path of the first media service module on the local server. Embodiments of the invention are not limited thereto.
在本发明实施例中, 如图 10所示, 可选地, 该方法 800还包括: S850, 获取该媒体处理系统的媒体业务模块信息, 和 /或该媒体处理系 统当前处理的第二媒体业务的第二业务信息;  In the embodiment of the present invention, as shown in FIG. 10, the method 800 further includes: S850, acquiring media service module information of the media processing system, and/or a second media service currently processed by the media processing system. Second business information;
S860, 根据该媒体业务模块信息和 /或该第二业务信息, 确定需要加载 或卸载的第二媒体业务模块的模块类型和模块数量;  S860, determining, according to the media service module information and/or the second service information, a module type and a number of modules of the second media service module that need to be loaded or uninstalled;
S870,根据该模块类型和该模块数量,加载或卸载该第二媒体业务模块。 在本发明实施例中, 该媒体业务模块信息可以包括与该媒体处理系统中 当前运行的各种类型媒体业务模块相关的各种信息, 可选地, 该媒体业务模 块信息包括该媒体处理系统内当前运行的媒体业务模块的负荷、在线运行数 量、 待处理任务数量和已处理任务数量中的至少一种。 该第二业务信息可以 包括与该媒体处理系统处理的各种媒体业务相关的各种信息, 可选地, 该第 二业务信息包括: 该媒体处理系统处理的媒体业务的优先级、 处理该媒体业 务所需的媒体业务模块的类型和数量中的至少一种。 S870. Load or uninstall the second media service module according to the module type and the number of the modules. In the embodiment of the present invention, the media service module information may include various information related to various types of media service modules currently running in the media processing system, and optionally, the media service mode. The block information includes at least one of a load of a media service module currently running in the media processing system, a number of online runs, a number of tasks to be processed, and a number of processed tasks. The second service information may include various information related to various media services processed by the media processing system. Optionally, the second service information includes: a priority of the media service processed by the media processing system, and processing the media. At least one of the type and number of media service modules required for the service.
在本发明实施例中, 媒体处理系统可以根据该媒体业务模块信息, 以媒 体业务模块的进程为粒度或以媒体业务模块为粒度, 确定该模块数量。  In the embodiment of the present invention, the media processing system may determine the number of modules according to the media service module information, with the granularity of the process of the media service module or the granularity of the media service module.
在本发明实施例中, 相应于第二确定单元 250, 媒体处理系统也可以根 据该媒体业务模块信息和 /或该第二业务信息,确定需要加载或卸载的第二媒 体业务模块的模块类型和模块数量, 为了筒洁, 在此不再赘述。  In the embodiment of the present invention, corresponding to the second determining unit 250, the media processing system may also determine, according to the media service module information and/or the second service information, a module type of the second media service module that needs to be loaded or uninstalled. The number of modules, for the sake of cleanliness, will not be repeated here.
因此, 本发明实施例的处理媒体业务的方法, 能够根据第二业务信息和 /或媒体业务模块信息,动态地确定加载或卸载不同类型的媒体业务模块,从 而能够提高媒体业务的处理效率,并能够提高资源的利用率,增加用户体验。  Therefore, the method for processing a media service according to the embodiment of the present invention can dynamically determine to load or unload different types of media service modules according to the second service information and/or the media service module information, thereby improving the processing efficiency of the media service, and Improve resource utilization and increase user experience.
在本发明实施例中, 可选地, 如图 11所示, 该方法 800还包括: S880, 获取该媒体处理系统的媒体业务模块信息、 资源信息以及该媒体 处理系统当前处理的第二媒体业务的第二业务信息中的至少一种信息;  In the embodiment of the present invention, optionally, as shown in FIG. 11, the method 800 further includes: S880, acquiring media service module information, resource information, and a second media service currently processed by the media processing system. At least one of the second business information;
S890, 根据该媒体业务模块信息、 该第二业务信息和该资源信息中的至 少一种信息, 以及媒体业务模块与系统资源之间的数量比例关系, 确定需要 分配或释放的第一系统资源的资源类型和资源数量;  S890, determining, according to the media service module information, the second service information, and the resource information, and the quantity proportional relationship between the media service module and the system resource, determining the first system resource that needs to be allocated or released. Resource type and number of resources;
S900, 根据该资源类型和该资源数量, 分配或释放该第一系统资源。 在本发明实施例中,该资源信息可以包括与媒体处理系统的资源相关的 各种信息。 可选地, 该资源信息包括该媒体处理系统内当前已分配的第二系 统资源的信息、 该媒体处理系统内当前可供使用的第三系统资源的信息、 以 及该媒体处理系统的总系统资源的信息中的至少一种。  S900. Allocate or release the first system resource according to the resource type and the quantity of the resource. In an embodiment of the invention, the resource information may include various information related to resources of the media processing system. Optionally, the resource information includes information about a second system resource that has been currently allocated in the media processing system, information about a third system resource currently available in the media processing system, and total system resources of the media processing system. At least one of the information.
在本发明实施例中, 媒体处理系统的资源包括但不限于计算资源(例如 In the embodiment of the present invention, resources of the media processing system include but are not limited to computing resources (for example,
CPU ), 存储资源 (例如内存、 硬盘空间)、 网络资源 (例如 IP地址、 带宽) 等。 可选地, 资源类型包括计算资源、 存储资源或网络资源。 CPU ), storage resources (such as memory, hard disk space), network resources (such as IP address, bandwidth), etc. Optionally, the resource type includes a computing resource, a storage resource, or a network resource.
在本发明实施例中, 该媒体业务模块信息可以包括与该媒体处理系统中 当前运行的各种类型媒体业务模块相关的各种信息。 可选地, 该媒体业务模 块信息包括该媒体处理系统内运行的媒体业务模块的负荷、 在线运行数量、 待处理任务数量和已处理任务数量中的至少一种。 在本发明实施例中 , 该第二业务信息可以包括与该第二媒体业务相关的 任何信息, 可选地, 该第二业务信息包括该第二媒体业务的优先级、 用于处 理该第二媒体业务所需的媒体业务模块的类型和数量中的至少一种。 In the embodiment of the present invention, the media service module information may include various information related to various types of media service modules currently running in the media processing system. Optionally, the media service module information includes at least one of a load of the media service module running in the media processing system, a number of online operations, a number of tasks to be processed, and a number of processed tasks. In the embodiment of the present invention, the second service information may include any information related to the second media service, and optionally, the second service information includes a priority of the second media service, and is used to process the second At least one of the type and number of media service modules required for the media service.
在本发明实施例中,媒体处理系统也可以根据资源信息以及媒体业务模 块与系统资源之间的数量比例关系,确定需要增加或减少的第二媒体业务模 块的模块数量。 应理解, 在本发明实施例中, 媒体处理系统也可以根据第三 方系统的指示, 进行资源的分配和释放, 本发明实施例并不限于此。  In the embodiment of the present invention, the media processing system may also determine the number of modules of the second media service module that need to be increased or decreased according to the resource information and the quantitative relationship between the media service module and the system resources. It should be understood that, in the embodiment of the present invention, the media processing system may also perform resource allocation and release according to the indication of the third party system, and the embodiment of the present invention is not limited thereto.
在本发明实施例中, 相应于第三确定单元 280, 媒体处理系统可以根据 该媒体业务模块信息、 该第二业务信息和该资源信息中的至少一种信息, 以 及媒体业务模块与系统资源之间的数量比例关系, 以计算资源、 存储资源和 网络资源中的至少一种资源为粒度或以虚拟机为粒度, 确定该资源数量, 为 了筒洁, 不再赘述。  In the embodiment of the present invention, corresponding to the third determining unit 280, the media processing system may be based on at least one of the media service module information, the second service information, and the resource information, and the media service module and the system resource. The quantity proportional relationship between the computing resources, the storage resources, and the network resources is determined by the granularity or the virtual machine as the granularity, and the number of the resources is determined.
因此, 本发明实施例的处理媒体业务的方法, 能够根据媒体业务模块信 息、 第二业务信息和资源信息中的至少一种信息, 动态地确定分配或释放的 系统资源, 从而能够提高资源利用率, 提高媒体业务的处理效率, 并增加用 户体验。  Therefore, the method for processing a media service according to the embodiment of the present invention can dynamically determine the allocated or released system resources according to at least one of the media service module information, the second service information, and the resource information, thereby improving resource utilization. Improve the processing efficiency of media services and increase the user experience.
可选地, 如图 12所示, 该方法 800还包括:  Optionally, as shown in FIG. 12, the method 800 further includes:
S910, 根据与该媒体处理系统处理的第三媒体业务相应的调度处理逻 辑, 将该第三媒体业务拆分成至少两个媒体子业务;  S910. Split the third media service into at least two media sub-services according to scheduling processing logic corresponding to the third media service processed by the media processing system.
S920,调用与该至少两个媒体子业务中的每个媒体子业务相应的第三媒 体业务模块, 以分别处理该每个媒体子业务。  S920: Call a third media service module corresponding to each of the at least two media sub-services to process each media sub-service separately.
可选地, 如图 12所示, 该方法 800还包括:  Optionally, as shown in FIG. 12, the method 800 further includes:
S930, 在接收到待处理的至少两个第四媒体业务时, 根据预置的调度策 略, 调度与该至少两个第四媒体业务相应的第四媒体业务模块, 以分别处理 该至少两个第四媒体业务。  S930, when receiving the at least two fourth media services to be processed, scheduling, according to the preset scheduling policy, a fourth media service module corresponding to the at least two fourth media services, to process the at least two Four media businesses.
应理解, 各媒体子业务均可由多个相应的媒体业务模块完成, 各媒体业 务模块在业务处理上相互独立。还应理解,各媒体子业务可由若干参数代表, 这些参数包括但不限于子业务标识、 子业务类型 (例如分片、 转码等)、 子 业务的输入和输出参数、 子业务的处理参数、 归属的任务标识等。  It should be understood that each media sub-service can be completed by a plurality of corresponding media service modules, and each media service module is independent of each other in service processing. It should also be understood that each media sub-service may be represented by a number of parameters including, but not limited to, sub-service identification, sub-service type (eg, fragmentation, transcoding, etc.), input and output parameters of sub-services, processing parameters of sub-services, The assigned task identifier, etc.
在本发明实施例中, 与媒体业务相应的调度处理逻辑, 可以预先配置。 通常, 不同的媒体业务可以具有不同的调度处理逻辑, 因此, 并行计算模块 根据媒体业务的不同, 可以使用相应的调度处理逻辑。 In the embodiment of the present invention, the scheduling processing logic corresponding to the media service may be pre-configured. Generally, different media services can have different scheduling processing logic, therefore, parallel computing modules Depending on the media service, the corresponding scheduling processing logic can be used.
因此, 本发明实施例的处理媒体业务的方法, 能够提高媒体处理系统的 并行计算能力, 提高业务处理效率, 并能够增加用户体验。  Therefore, the method for processing media services in the embodiments of the present invention can improve parallel computing capabilities of the media processing system, improve service processing efficiency, and increase user experience.
在本发明实施例中, 可选地, 如图 13所示, 该方法 800还包括: S940, 接收用户发送的用于指示加载第五媒体业务模块的加载信息, 该 第五媒体业务模块具有该媒体处理系统不具有的业务处理能力;  In the embodiment of the present invention, optionally, as shown in FIG. 13, the method 800 further includes: S940, receiving, by the user, loading information, configured to load a fifth media service module, where the fifth media service module has the Service processing capabilities not available in the media processing system;
S950, 根据该加载信息, 获取该第五媒体业务模块;  S950: Obtain the fifth media service module according to the loading information.
S960, 将该第五媒体业务模块加载到该媒体处理系统。  S960. Load the fifth media service module into the media processing system.
例如, 媒体加载模块可以通过诸如门户网站(Web Portal )的人机界面, 接收用户发送的加载信息, 并根据该加载信息获取第五媒体业务模块, 并加 载到该媒体处理系统, 以增加媒体处理系统的业务处理能力。  For example, the media loading module may receive the loading information sent by the user through a human-machine interface such as a web portal, and acquire a fifth media service module according to the loading information, and load the media processing system into the media processing system to increase media processing. The business processing capabilities of the system.
应理解, 在本发明的各种实施例中, 上述各过程的序号的大小并不意味 着执行顺序的先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不应 对本发明实施例的实施过程构成任何限定。  It should be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention. The implementation process constitutes any limitation.
应理解, 在本发明实施例中, "与 A相应的 B"表示 B与 A相关联, 根 据 A可以确定 B。 但还应理解, 根据 A确定 B并不意味着仅仅根据 A确定 B, 还可以根据 A和 /或其它信息确定^  It should be understood that in the embodiment of the present invention, "B corresponding to A" means that B is associated with A, and B can be determined based on A. However, it should be understood that determining B according to A does not mean that B is determined only on the basis of A, but also based on A and/or other information.
还应理解, 根据本发明实施例的方法 800的执行主体, 可对应于本发明 实施例中的媒体处理系统 100, 并且媒体处理系统 100中的各个模块的上述 和其它操作和 /或功能分别为了实现图 9至图 13中的各个方法的相应流程, 为了筒洁, 在此不再赘述。  It should also be understood that the executive body of method 800 in accordance with embodiments of the present invention may correspond to media processing system 100 in embodiments of the present invention, and that the above and other operations and/or functions of the various modules in media processing system 100 are respectively The corresponding processes of the various methods in FIG. 9 to FIG. 13 are implemented, and are not described here.
因此, 本发明实施例的处理媒体业务的方法, 通过根据待处理的媒体业 务的业务信息, 确定媒体处理系统需要增加的媒体业务模块, 该媒体业务模 块具有该媒体处理系统不具有的业务处理能力, 由此能够根据处理媒体业务 的需要而动态加载不同的媒体业务模块,从而能够提升媒体处理系统的业务 处理能力, 提高媒体处理系统的通用性、 灵活性以及资源利用率, 并能够增 加用户体验, 降低成本。  Therefore, the method for processing a media service according to the embodiment of the present invention determines, by the service information of the media service to be processed, a media service module that the media processing system needs to add, and the media service module has a service processing capability that the media processing system does not have. Therefore, different media service modules can be dynamically loaded according to the needs of processing the media service, thereby improving the service processing capability of the media processing system, improving the versatility, flexibility, and resource utilization of the media processing system, and increasing the user experience. , cut costs.
本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各 示例的单元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结合来实 现, 为了清楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能一 般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执 行, 取决于技术方案的特定应用和设计约束条件。 专业技术人员可以对每个 特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超 出本发明的范围。 Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software or a combination of both, in order to clearly illustrate hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are implemented in hardware or software OK, depending on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到, 为了描述的方便和筒洁, 上述 描述的系统、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对 应过程, 在此不再赘述。  A person skilled in the art can clearly understand that, for the convenience and the cleaning of the description, the specific working processes of the system, the device and the unit described above can refer to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另外, 所显示或讨论的相互之间的 耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或 通信连接, 也可以是电的, 机械的或其它的形式连接。 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或 者全部单元来实现本发明实施例方案的目的。  In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection. The components displayed for the unit may or may not be physical units, ie may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以是两个或两个以上单元集成在 一个单元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用软件 功能单元的形式实现。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销 售或使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技术方案本质上或者说对现有技术做出贡献的部分, 或者该技术方 案的全部或部分可以以软件产品的形式体现出来, 该计算机软件产品存储在 一个存储介质中, 包括若干指令用以使得一台计算机设备(可以是个人计算 机, 服务器, 或者网络设备等)执行本发明各个实施例所述方法的全部或部 分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器(ROM, Read-Only Memory )、 随机存取存储器 ( RAM, Random Access Memory )、 磁碟或者光盘等各种可以存储程序代码的介质。  The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到各种等效的修改或替换, 这些修改或替换都应涵盖在本发明的保护范围 之内。 因此, 本发明的保护范围应以权利要求的保护范围为准。 The above description is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited. In this regard, any equivalent modifications or alterations may be made by those skilled in the art within the scope of the present invention, and such modifications and alterations are intended to be included within the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权利要求 Rights request
1、 一种媒体处理系统, 其特征在于, 所述媒体处理系统包括媒体管理 模块和媒体加载模块; 其中, 所述媒体加载模块用于加载或卸载用于处理媒 体业务的媒体业务模块; 所述媒体管理模块包括:  A media processing system, wherein the media processing system includes a media management module and a media loading module, where the media loading module is configured to load or uninstall a media service module for processing a media service; The media management module includes:
第一获取单元,用于获取所述媒体处理系统待处理的第一媒体业务的第 一业务信息;  a first acquiring unit, configured to acquire first service information of the first media service to be processed by the media processing system;
第一确定单元, 用于根据所述第一获取单元获取的所述第一业务信息, 确定所述媒体处理系统需要增加的第一媒体业务模块, 所述第一媒体业务模 块具有所述媒体处理系统不具有的业务处理能力;  a first determining unit, configured to determine, according to the first service information acquired by the first acquiring unit, a first media service module that is required to be added by the media processing system, where the first media service module has the media processing Business processing capabilities not available in the system;
第一发送单元, 用于向所述媒体加载模块发送第一加载通知, 所述第一 加载通知用于指示加载所述第一确定单元确定的所述第一媒体业务模块, 以 便于所述媒体加载模块加载用于处理所述第一媒体业务的所述第一媒体业 务模块。  a first sending unit, configured to send a first loading notification to the media loading module, where the first loading notification is used to indicate loading the first media service module determined by the first determining unit, to facilitate the media The loading module loads the first media service module for processing the first media service.
2、 根据权利要求 1所述的媒体处理系统, 其特征在于, 所述媒体加载 模块包括:  2. The media processing system according to claim 1, wherein the media loading module comprises:
第一接收单元, 用于接收所述媒体管理模块发送的所述第一加载通知; 第二获取单元, 用于根据所述第一接收单元接收的所述第一加载通知, 获取所述第一媒体业务模块;  a first receiving unit, configured to receive the first loading notification sent by the media management module, where the second acquiring unit is configured to acquire the first according to the first loading notification received by the first receiving unit Media business module;
第一加载单元,用于将所述第二获取单元获取的所述第一媒体业务模块 加载到所述媒体处理系统, 以便于所述第一媒体业务模块处理所述第一媒体 业务。  a first loading unit, configured to load the first media service module acquired by the second acquiring unit to the media processing system, so that the first media service module processes the first media service.
3、 根据权利要求 1或 2所述的媒体处理系统, 其特征在于, 所述媒体 管理模块还包括:  The media processing system according to claim 1 or 2, wherein the media management module further comprises:
第三获取单元,用于获取所述媒体处理系统的媒体业务模块信息和 /或所 述媒体处理系统当前处理的第二媒体业务的第二业务信息;  a third acquiring unit, configured to acquire media service module information of the media processing system and/or second service information of a second media service currently processed by the media processing system;
第二确定单元,用于根据所述第三获取单元获取的所述媒体业务模块信 息和 /或所述第二业务信息,确定需要加载或卸载的所述媒体处理系统的第二 媒体业务模块的模块类型和模块数量;  a second determining unit, configured to determine, according to the media service module information and/or the second service information acquired by the third acquiring unit, a second media service module of the media processing system that needs to be loaded or uninstalled Module type and number of modules;
第二发送单元, 用于向所述媒体加载模块发送第二加载通知, 所述第二 加载通知用于指示所述第二确定单元确定的所述模块类型、所述模块数量和 加载类型, 所述加载类型包括加载或卸载; 所述媒体加载模块还包括: a second sending unit, configured to send a second loading notification to the media loading module, where the second loading notification is used to indicate the module type, the number of modules, and a loading type determined by the second determining unit, where The loading type includes loading or unloading; The media loading module further includes:
第二接收单元, 用于接收所述媒体管理模块发送的所述第二加载通知; 第二加载单元,用于根据所述第二接收单元接收的所述第二加载通知指 示的所述模块类型、 所述模块数量和所述加载类型, 加载或卸载所述第二媒 体业务模块。  a second receiving unit, configured to receive the second loading notification sent by the media management module, and a second loading unit, configured to: according to the module type indicated by the second loading notification received by the second receiving unit And the number of modules and the loading type, loading or unloading the second media service module.
4、 根据权利要求 1至 3中任一项所述的媒体处理系统, 其特征在于, 所述媒体管理模块还包括:  The media processing system according to any one of claims 1 to 3, wherein the media management module further comprises:
第四获取单元, 用于获取所述媒体处理系统的媒体业务模块信息、 资源 信息以及所述媒体处理系统当前处理的第二媒体业务的第二业务信息中的 至少一种信息;  a fourth acquiring unit, configured to acquire at least one of media service module information, resource information, and second service information of the second media service currently processed by the media processing system;
第三确定单元,用于根据所述第四获取单元获取的所述媒体业务模块信 息、 所述第二业务信息和所述资源信息中的至少一种信息, 以及媒体业务模 块与系统资源之间的数量比例关系,确定需要分配或释放的第一系统资源的 资源类型和资源数量;  a third determining unit, configured to: according to the at least one of the media service module information, the second service information, and the resource information acquired by the fourth acquiring unit, and between the media service module and the system resource The quantitative relationship of the quantity, the resource type and the number of resources of the first system resource that need to be allocated or released;
分配单元, 用于根据所述第三确定单元确定的所述资源类型和所述资源 数量, 分配或释放所述第一系统资源。  And an allocating unit, configured to allocate or release the first system resource according to the resource type and the quantity of the resource determined by the third determining unit.
5、 根据权利要求 1至 4中任一项所述的媒体处理系统, 其特征在于, 所述媒体处理系统还包括并行计算模块, 所述并行计算模块包括:  The media processing system according to any one of claims 1 to 4, wherein the media processing system further comprises a parallel computing module, the parallel computing module comprising:
拆分单元, 用于根据与第三媒体业务相应的调度处理逻辑, 将所述第三 媒体业务拆分成至少两个媒体子业务;  a splitting unit, configured to split the third media service into at least two media sub-services according to scheduling processing logic corresponding to the third media service;
第一调用单元, 用于调用所述媒体处理系统的第三媒体业务模块, 所述 个媒体子业务相应, 以分别处理所述每个媒体子业务。  The first invoking unit is configured to invoke a third media service module of the media processing system, where the media sub-services are corresponding to respectively process each of the media sub-services.
6、 根据权利要求 1至 5中任一项所述的媒体处理系统, 其特征在于, 所述媒体处理系统还包括并行计算模块, 所述并行计算模块包括:  The media processing system according to any one of claims 1 to 5, wherein the media processing system further comprises a parallel computing module, the parallel computing module comprising:
第二调用单元, 用于在接收到待处理的至少两个第四媒体业务时, 根据 预置的调度策略,调度与所述至少两个第四媒体业务相应的第四媒体业务模 块, 以分别处理所述至少两个第四媒体业务。  a second calling unit, configured to: when receiving the at least two fourth media services to be processed, scheduling a fourth media service module corresponding to the at least two fourth media services according to a preset scheduling policy, respectively Processing the at least two fourth media services.
7、 根据权利要求 1至 6中任一项所述的媒体处理系统, 其特征在于, 所述媒体加载模块还包括:  The media processing system according to any one of claims 1 to 6, wherein the media loading module further comprises:
第三接收单元,用于接收用户发送的用于指示加载第五媒体业务模块的 加载信息, 所述第五媒体业务模块具有所述媒体处理系统不具有的业务处理 能力; a third receiving unit, configured to receive, by the user, an instruction for loading the fifth media service module Loading information, the fifth media service module has a service processing capability that the media processing system does not have;
第五获取单元, 用于根据所述第三接收单元接收的所述加载信息, 获取 所述第五媒体业务模块;  a fifth obtaining unit, configured to acquire the fifth media service module according to the loading information received by the third receiving unit;
第三加载单元,用于将所述第五获取单元获取的所述第五媒体业务模块 加载到所述媒体处理系统。  And a third loading unit, configured to load the fifth media service module acquired by the fifth acquiring unit to the media processing system.
8、 根据权利要求 3所述的媒体处理系统, 其特征在于, 所述第二确定 单元还用于:根据所述第三获取单元获取的所述媒体业务模块信息和 /或所述 第二业务信息, 以媒体业务模块的进程为粒度或以媒体业务模块为粒度, 确 定所述模块数量。  The media processing system according to claim 3, wherein the second determining unit is further configured to: according to the media service module information and/or the second service acquired by the third acquiring unit The information is determined by the process of the media service module or the granularity of the media service module.
9、 根据权利要求 4所述的媒体处理系统, 其特征在于, 所述第三确定 单元还用于: 根据所述第四获取单元获取的所述媒体业务模块信息、 所述第 二业务信息和所述资源信息中的至少一种信息, 以及媒体业务模块与系统资 源之间的数量比例关系, 以计算资源、 存储资源和网络资源中的至少一种资 源为粒度或以虚拟机为粒度, 确定所述资源数量。  The media processing system according to claim 4, wherein the third determining unit is further configured to: according to the media service module information, the second service information, and the obtained by the fourth acquiring unit At least one of the resource information, and a quantity proportional relationship between the media service module and the system resource, where the at least one resource of the computing resource, the storage resource, and the network resource is granular or determined by a virtual machine. The number of resources.
10、 一种处理媒体业务的方法, 其特征在于, 包括:  10. A method of processing a media service, the method comprising:
获取媒体处理系统待处理的第一媒体业务的第一业务信息;  Obtaining first service information of the first media service to be processed by the media processing system;
根据所述第一业务信息,确定所述媒体处理系统需要增加的第一媒体业 务模块, 所述第一媒体业务模块具有所述媒体处理系统不具有的业务处理能 力;  Determining, according to the first service information, a first media service module that is required to be added by the media processing system, where the first media service module has a service processing capability that the media processing system does not have;
获取所述第一媒体业务模块;  Obtaining the first media service module;
将所述第一媒体业务模块加载到所述媒体处理系统, 以便于所述媒体处 理系统处理所述第一媒体业务。  Loading the first media service module to the media processing system to facilitate the media processing system to process the first media service.
11、 根据权利要求 10所述的方法, 其特征在于, 所述方法还包括: 获取所述媒体处理系统的媒体业务模块信息,和 /或所述媒体处理系统当 前处理的第二媒体业务的第二业务信息;  The method according to claim 10, wherein the method further comprises: acquiring media service module information of the media processing system, and/or a second media service currently processed by the media processing system. Second business information;
根据所述媒体业务模块信息和 /或所述第二业务信息,确定需要加载或卸 载的第二媒体业务模块的模块类型和模块数量;  Determining, according to the media service module information and/or the second service information, a module type and a number of modules of the second media service module that need to be loaded or unloaded;
根据所述模块类型和所述模块数量, 加载或卸载所述第二媒体业务模 块。  The second media service module is loaded or unloaded according to the module type and the number of modules.
12、根据权利要求 10或 11所述的方法,其特征在于,所述方法还包括: 获取所述媒体处理系统的媒体业务模块信息、 资源信息以及所述媒体处 理系统当前处理的第二媒体业务的第二业务信息中的至少一种信息; The method according to claim 10 or 11, wherein the method further comprises: Acquiring at least one of media service module information, resource information, and second service information of the second media service currently processed by the media processing system;
根据所述媒体业务模块信息、所述第二业务信息和所述资源信息中的至 少一种信息, 以及媒体业务模块与系统资源之间的数量比例关系, 确定需要 分配或释放的第一系统资源的资源类型和资源数量;  Determining, according to at least one of the media service module information, the second service information, and the resource information, and a quantity proportional relationship between the media service module and the system resource, determining the first system resource that needs to be allocated or released. Resource type and number of resources;
根据所述资源类型和所述资源数量, 分配或释放所述第一系统资源。 Allocating or releasing the first system resource according to the resource type and the quantity of the resource.
13、 根据权利要求 10至 12中任一项所述的方法, 其特征在于, 所述方 法还包括: The method according to any one of claims 10 to 12, wherein the method further comprises:
根据与所述媒体处理系统处理的第三媒体业务相应的调度处理逻辑,将 所述第三媒体业务拆分成至少两个媒体子业务;  Disassembling the third media service into at least two media sub-services according to scheduling processing logic corresponding to the third media service processed by the media processing system;
调用与所述至少两个媒体子业务中的每个媒体子业务相应的第三媒体 业务模块, 以分别处理所述每个媒体子业务。  And a third media service module corresponding to each of the at least two media sub-services is invoked to process each of the media sub-services separately.
14、 根据权利要求 10至 13中任一项所述的方法, 其特征在于, 所述方 法还包括:  The method according to any one of claims 10 to 13, wherein the method further comprises:
在接收到待处理的至少两个第四媒体业务时, 根据预置的调度策略, 调 度与所述至少两个第四媒体业务相应的第四媒体业务模块, 以分别处理所述 至少两个第四媒体业务。  Dispatching a fourth media service module corresponding to the at least two fourth media services according to a preset scheduling policy, when the at least two fourth media services to be processed are received, to process the at least two Four media businesses.
15、 根据权利要求 10至 14中任一项所述的方法, 其特征在于, 所述方 法还包括:  The method according to any one of claims 10 to 14, wherein the method further comprises:
接收用户发送的用于指示加载第五媒体业务模块的加载信息, 所述第五 媒体业务模块具有所述媒体处理系统不具有的业务处理能力;  And receiving, by the user, loading information for instructing loading of the fifth media service module, where the fifth media service module has a service processing capability that the media processing system does not have;
根据所述加载信息, 获取所述第五媒体业务模块;  Obtaining the fifth media service module according to the loading information;
将所述第五媒体业务模块加载到所述媒体处理系统。  Loading the fifth media service module to the media processing system.
16、 根据权利要求 11或 12所述的方法, 其特征在于, 所述媒体业务模 块信息包括所述媒体处理系统内运行的媒体业务模块的负荷、 在线运行数 量、 待处理任务数量和已处理任务数量中的至少一种。  The method according to claim 11 or 12, wherein the media service module information includes a load of a media service module running in the media processing system, a number of online operations, a number of tasks to be processed, and a processed task. At least one of the quantities.
17、 根据权利要求 11或 12所述的方法, 其特征在于, 所述第二业务信 息包括: 所述第二媒体业务的优先级、 处理所述第二媒体业务所需的媒体业 务模块的类型和数量中的至少一种。  The method according to claim 11 or 12, wherein the second service information comprises: a priority of the second media service, and a type of a media service module required to process the second media service. And at least one of the quantities.
18、 根据权利要求 12所述的方法, 其特征在于, 所述资源信息包括所 述媒体处理系统内当前已分配的第二系统资源的信息、所述媒体处理系统内 当前可供使用的第三系统资源的信息、 以及所述媒体处理系统的总系统资源 的信息中的至少一种。 The method according to claim 12, wherein the resource information includes information about a second system resource that has been currently allocated in the media processing system, and the media processing system At least one of information of a third system resource currently available for use, and information of a total system resource of the media processing system.
PCT/CN2012/073472 2012-04-01 2012-04-01 Medium processing system and method for processing medium service WO2013149374A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201280001093.9A CN102972011B (en) 2012-04-01 2012-04-01 Medium processing system and method for processing medium business
PCT/CN2012/073472 WO2013149374A1 (en) 2012-04-01 2012-04-01 Medium processing system and method for processing medium service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/073472 WO2013149374A1 (en) 2012-04-01 2012-04-01 Medium processing system and method for processing medium service

Publications (1)

Publication Number Publication Date
WO2013149374A1 true WO2013149374A1 (en) 2013-10-10

Family

ID=47800633

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/073472 WO2013149374A1 (en) 2012-04-01 2012-04-01 Medium processing system and method for processing medium service

Country Status (2)

Country Link
CN (1) CN102972011B (en)
WO (1) WO2013149374A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317586B (en) * 2014-10-22 2018-04-10 福建星网视易信息系统有限公司 Multi-screen renders processing method, processor, equipment and system
CN109982132A (en) * 2019-04-23 2019-07-05 姚耀 A kind of double recording systems of audio and video remote
CN114422735B (en) * 2022-01-28 2023-12-01 杭州海康威视数字技术股份有限公司 Video recorder, video data processing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1767446A (en) * 2004-10-28 2006-05-03 华为技术有限公司 Value added service request processing method
WO2008014695A1 (en) * 2006-07-29 2008-02-07 Huawei Technologies Co., Ltd. Method, device and system for allocating media resource
CN101834851A (en) * 2010-03-30 2010-09-15 中兴通讯股份有限公司 Multimedia message center and regulating method of processing capacity thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7730456B2 (en) * 2004-05-19 2010-06-01 Sony Computer Entertainment Inc. Methods and apparatus for handling processing errors in a multi-processing system
CN1828665B (en) * 2005-02-12 2011-11-30 美国博通公司 Method and system for information processing in a communication apparatus
US7685409B2 (en) * 2007-02-21 2010-03-23 Qualcomm Incorporated On-demand multi-thread multimedia processor
CN201993811U (en) * 2010-11-15 2011-09-28 张军 Cloud fusion business intelligence terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1767446A (en) * 2004-10-28 2006-05-03 华为技术有限公司 Value added service request processing method
WO2008014695A1 (en) * 2006-07-29 2008-02-07 Huawei Technologies Co., Ltd. Method, device and system for allocating media resource
CN101834851A (en) * 2010-03-30 2010-09-15 中兴通讯股份有限公司 Multimedia message center and regulating method of processing capacity thereof

Also Published As

Publication number Publication date
CN102972011B (en) 2015-07-08
CN102972011A (en) 2013-03-13

Similar Documents

Publication Publication Date Title
US9983897B2 (en) Maintaining virtual machines for cloud-based operators in a streaming application in a ready state
US9823947B2 (en) Method and system for allocating FPGA resources
US8954982B2 (en) Resource management using reliable and efficient delivery of application performance information in a cloud computing system
WO2018006676A1 (en) Acceleration resource processing method and apparatus and network function virtualization system
JP2009258982A (en) Node device, program, and resource-allocating method
US9733984B2 (en) Multiple stage workload management system
CN105052074A (en) Methods, systems, and computer readable media for providing a virtualized diameter network architecture and for routing traffic to dynamically instantiated diameter resource instances
US20120117242A1 (en) Service linkage system and information processing system
US9448862B1 (en) Listening for externally initiated requests
US20120324111A1 (en) Task allocation in a computer network
KR20110083084A (en) Apparatus and method for operating server by using virtualization technology
WO2016061935A1 (en) Resource scheduling method, device and computer storage medium
US10812606B2 (en) Supporting communications in a stream processing platform
WO2013149374A1 (en) Medium processing system and method for processing medium service
CN102404388B (en) A kind of load sharing method of application virtualization and device
CN115904761A (en) System on chip, vehicle and video processing unit virtualization method
US20170269968A1 (en) Operating system support for game mode
JP6191361B2 (en) Information processing system, information processing system control method, and control program
JP6059259B2 (en) Computer system and computer resource allocation method
WO2014203728A1 (en) Message control system, message control device, message control method, and program
US9531800B2 (en) Throttling group in oracle service bus
CN108540557A (en) A kind of cloud application load dispatching method based on dynamic speed limit
WO2022033037A1 (en) Message management method, device, and serverless system
CN113259261B (en) Network flow control method and electronic equipment
CN116800748A (en) Message processing system, method, computing device and storage medium

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201280001093.9

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12873517

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12873517

Country of ref document: EP

Kind code of ref document: A1