[go: up one dir, main page]

CN102972011B - Medium processing system and method for processing medium business - Google Patents

Medium processing system and method for processing medium business Download PDF

Info

Publication number
CN102972011B
CN102972011B CN201280001093.9A CN201280001093A CN102972011B CN 102972011 B CN102972011 B CN 102972011B CN 201280001093 A CN201280001093 A CN 201280001093A CN 102972011 B CN102972011 B CN 102972011B
Authority
CN
China
Prior art keywords
media
module
processing system
information
business
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201280001093.9A
Other languages
Chinese (zh)
Other versions
CN102972011A (en
Inventor
李勇
施有铸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN102972011A publication Critical patent/CN102972011A/en
Application granted granted Critical
Publication of CN102972011B publication Critical patent/CN102972011B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种媒体处理系统和处理媒体业务的方法。该媒体处理系统包括媒体管理模块和媒体加载模块;其中,该媒体加载模块用于加载或卸载用于处理媒体业务的媒体业务模块;该媒体管理模块包括:第一获取单元、第一确定单元和第一发送单元。本发明实施例的媒体处理系统和处理媒体业务的方法,通过根据待处理的媒体业务的业务信息,确定媒体处理系统需要增加的媒体业务模块,该媒体业务模块具有该媒体处理系统不具有的业务处理能力,由此能够根据处理媒体业务的需要而动态加载不同的媒体业务模块,从而能够提升媒体处理系统的业务处理能力,提高媒体处理系统的通用性、灵活性以及资源利用率,并能够增加用户体验,降低成本。

The invention discloses a media processing system and a method for processing media services. The media processing system includes a media management module and a media loading module; wherein, the media loading module is used to load or unload a media service module for processing media services; the media management module includes: a first acquisition unit, a first determination unit and first sending unit. In the media processing system and the method for processing media services in the embodiments of the present invention, according to the service information of the media service to be processed, it is determined that the media service module that the media processing system needs to add, the media service module has services that the media processing system does not have Processing capacity, so that different media business modules can be dynamically loaded according to the needs of media business processing, so as to improve the business processing capabilities of the media processing system, improve the versatility, flexibility and resource utilization of the media processing system, and increase User experience, lower costs.

Description

媒体处理系统和处理媒体业务的方法Media processing system and method for processing media services

技术领域technical field

本发明涉及信息技术领域,尤其涉及信息技术领域中的媒体处理系统和处理媒体业务的方法。The invention relates to the field of information technology, in particular to a media processing system and a method for processing media services in the field of information technology.

背景技术Background technique

目前,媒体处理系统仅具有固定的一种或几种媒体业务处理能力,因而只能完成固定的一种或几种媒体业务,或只能完成一种媒体业务的部分媒体子业务,媒体处理系统的业务处理能力简单且有限。例如,有些媒体处理系统只能进行媒体文件的转码操作,或只能进行媒体文件的渲染操作;又例如,有些媒体处理系统只能进行媒体文件的分片和合并操作等。At present, the media processing system only has one or several fixed media service processing capabilities, so it can only complete one or several fixed media services, or can only complete some media sub-services of one media service. The media processing system The business processing ability of the business is simple and limited. For example, some media processing systems can only perform media file transcoding operations, or only media file rendering operations; another example, some media processing systems can only perform media file fragmentation and merging operations.

因此,对于简单的媒体业务,一个媒体处理系统就可以满足媒体业务的处理需求;但对于稍加复杂的媒体业务,可能需要多个媒体处理系统才能满足该媒体业务的处理需求。Therefore, for simple media services, one media processing system can meet the processing requirements of the media services; but for slightly more complex media services, multiple media processing systems may be required to meet the processing requirements of the media services.

一种可能的解决方案是将尽可能多的媒体业务处理能力集中于一个媒体处理系统,从而对于复杂的媒体业务,仅需要一个上述媒体处理系统就可以进行处理。但该媒体处理系统的业务处理能力还是相对固定的并且有限。当媒体业务的要求发生变化时,又可能需要多个媒体处理系统共同进行处理,用户体验较差。并且,对于简单的媒体业务,上述媒体处理系统的资源浪费严重,资源利用率较低。A possible solution is to concentrate as many media service processing capabilities as possible in one media processing system, so that complex media services can be processed by only one of the above media processing systems. However, the service processing capability of the media processing system is still relatively fixed and limited. When the requirements of media services change, multiple media processing systems may be required to jointly process them, resulting in poor user experience. Moreover, for simple media services, the resource waste of the above media processing system is serious, and the resource utilization rate is low.

因此,目前的媒体处理系统的业务处理能力固定且有限,由此导致用户体验较差。Therefore, the service processing capability of the current media processing system is fixed and limited, which leads to poor user experience.

发明内容Contents of the invention

本发明实施例提供了一种媒体处理系统和处理媒体业务的方法,能够提升媒体处理系统的业务处理能力和灵活性。Embodiments of the present invention provide a media processing system and a method for processing media services, which can improve the service processing capability and flexibility of the media processing system.

一方面,本发明实施例提供了一种媒体处理系统,该媒体处理系统包括媒体管理模块和媒体加载模块;其中,该媒体加载模块用于加载或卸载用于处理媒体业务的媒体业务模块;该媒体管理模块包括:第一获取单元,用于获取该媒体处理系统待处理的第一媒体业务的第一业务信息;第一确定单元,用于根据该第一获取单元获取的该第一业务信息,确定该媒体处理系统需要增加的第一媒体业务模块,该第一媒体业务模块具有该媒体处理系统不具有的业务处理能力;第一发送单元,用于向该媒体加载模块发送第一加载通知,该第一加载通知用于指示加载该第一确定单元确定的该第一媒体业务模块,以便于该媒体加载模块加载用于处理该第一媒体业务的该第一媒体业务模块;On the one hand, an embodiment of the present invention provides a media processing system, the media processing system includes a media management module and a media loading module; wherein, the media loading module is used to load or unload a media service module for processing media services; the The media management module includes: a first acquiring unit, configured to acquire first service information of a first media service to be processed by the media processing system; a first determining unit, configured to acquire the first service information according to the first acquiring unit , it is determined that the media processing system needs to add a first media service module, the first media service module has a service processing capability that the media processing system does not have; the first sending unit is configured to send a first loading notification to the media loading module , the first loading notification is used to instruct to load the first media service module determined by the first determining unit, so that the media loading module loads the first media service module for processing the first media service;

所述媒体加载模块包括:The media loading module includes:

第一接收单元,用于接收所述媒体管理模块发送的所述第一加载通知;a first receiving unit, configured to receive the first loading notification sent by the media management module;

第二获取单元,用于根据所述第一接收单元接收的所述第一加载通知,获取所述第一媒体业务模块;a second acquiring unit, configured to acquire the first media service module according to the first loading notification received by the first receiving unit;

第一加载单元,用于将所述第二获取单元获取的所述第一媒体业务模块加载到所述媒体处理系统,以便于所述第一媒体业务模块处理所述第一媒体业务。The first loading unit is 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 can process the first media service.

另一方面,本发明实施例提供了一种处理媒体业务的方法,该方法包括:获取媒体处理系统待处理的第一媒体业务的第一业务信息;根据该第一业务信息,确定该媒体处理系统需要增加的第一媒体业务模块,该第一媒体业务模块具有该媒体处理系统不具有的业务处理能力;获取该第一媒体业务模块;将该第一媒体业务模块加载到该媒体处理系统,以便于该媒体处理系统处理该第一媒体业务。On the other hand, an embodiment of the present invention provides a method for processing a media service, the method comprising: acquiring first service information of a first media service to be processed by a media processing system; determining the media processing information according to the first service information The system needs to add a first media service module, the first media service module has a service processing capability that the media processing system does not have; obtain the first media service module; load the first media service module into the media processing system, so that the media processing system processes the first media service.

基于上述技术方案,本发明实施例的媒体处理系统和处理媒体业务的方法,通过根据待处理的媒体业务的业务信息,确定媒体处理系统需要增加的媒体业务模块,该媒体业务模块具有该媒体处理系统不具有的业务处理能力,由此能够根据处理媒体业务的需要而动态加载不同的媒体业务模块,从而能够提升媒体处理系统的业务处理能力,提高媒体处理系统的通用性、灵活性以及资源利用率,并能够增加用户体验,降低成本。Based on the above technical solution, the media processing system and the method for processing media services in the embodiments of the present invention determine the media service module that needs to be added to the media processing system according to the service information of the media service to be processed, and the media service module has the media processing The system does not have business processing capabilities, so it can dynamically load different media business modules according to the needs of media business processing, thereby improving the business processing capabilities 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.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that are used in the embodiments of the present invention. Obviously, the accompanying drawings described below are only

发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。For some embodiments of the invention, those skilled in the art can also obtain other drawings based on these drawings without creative effort.

图1是根据本发明实施例的媒体处理系统的示意性框图。Fig. 1 is a schematic block diagram of a media processing system according to an embodiment of the present invention.

图2是根据本发明实施例的媒体加载模块的示意性框图。Fig. 2 is a schematic block diagram of a media loading module according to 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是根据本发明实施例的媒体管理模块的再一示意性框图。Fig. 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 according to an embodiment of the present invention.

图6是根据本发明实施例的媒体处理系统的再一示意性框图。Fig. 6 is still another schematic block diagram of a media processing system according to an embodiment of the present invention.

图7是根据本发明实施例的媒体加载模块的再一示意性框图。Fig. 7 is another schematic block diagram of a media loading module according to an embodiment of the present invention.

图8是根据本发明实施例的媒体处理系统的再一示意性框图。Fig. 8 is another schematic block diagram of a media processing system according to an embodiment of the present invention.

图9是根据本发明实施例的处理媒体业务的方法的示意性流程图。Fig. 9 is a schematic flowchart of a method for processing media services according to an embodiment of the present invention.

图10是根据本发明实施例的处理媒体业务的方法的另一示意性流程图。Fig. 10 is another schematic flowchart of a method for processing media services according to an embodiment of the present invention.

图11是根据本发明实施例的处理媒体业务的方法的再一示意性流程图。Fig. 11 is another schematic flowchart of a method for processing media services according to an embodiment of the present invention.

图12是根据本发明实施例的处理媒体业务的方法的再一示意性流程图。Fig. 12 is another schematic flowchart of a method for processing media services according to an embodiment of the present invention.

图13是根据本发明实施例的处理媒体业务的方法的再一示意性流程图。Fig. 13 is another schematic flowchart of a method for processing media services according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

图1是根据本发明实施例的媒体处理系统100的示意性框图。如图1所示,该媒体处理系统100包括媒体管理模块200和媒体加载模块300;该媒体加载模块300用于加载或卸载用于处理媒体业务的媒体业务模块;该媒体管理模块200包括:Fig. 1 is a schematic block diagram of a media processing system 100 according to an embodiment of the present invention. As shown in Figure 1, the media processing system 100 includes a media management module 200 and a media loading module 300; the media loading module 300 is used to load or unload a media service module for processing media services; the media management module 200 includes:

第一获取单元210,用于获取该媒体处理系统100待处理的第一媒体业务的第一业务信息;The first acquiring unit 210 is configured to acquire first service information of a 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 acquired by the first acquiring unit 210, the first media service module 410 that the media processing system 100 needs to add, the first media service module 410 has the media processing Business processing capabilities 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 of the first media service module determined by the first determining unit 220, so that 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, the media management module 200 is used to manage the media processing system 100, such as allocating or releasing the resources of the computer system, Another example is to determine the media service module to be loaded or unloaded; the media loading module 300 is used to load or unload a media service module that has service processing capabilities and is used to process media services. In the embodiment of the present invention, the media management module 200 may determine the additional first media service required by the media processing system 100 to process the first media service according to the first service information of the first media service to be processed by the media processing system 100 module, that is, to determine the business processing capability that the media processing system 100 does not have for processing the first media business, and to determine the first media business module 410 that has the business processing capability; thus, the media management module 200 can notify the media loading module 300 dynamically loads the first media service module 410 to increase the service processing capability of the media processing system 100, so 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 the media service module that the media processing system needs to add according to the service information of the media service to be processed, and 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 media services, thereby improving the service processing capabilities of the media processing system, improving the versatility, flexibility, and resource utilization of the media processing system, and increasing 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可以对外提供媒体业务请求接口,以接收外部设备或用户提交的媒体业务请求,该媒体业务请求用于向该媒体处理系统100请求处理媒体业务。该媒体业务请求接口要求接收到的媒体业务请求中需要携带一些参数,以指明请求处理的媒体业务的业务信息。外部设备或用户在使用该媒体业务请求接口向该媒体处理系统100提交媒体业务请求时,就需要满足该媒体业务请求接口的要求,携带相关参数以指明媒体业务的业务信息。因此,媒体处理系统100根据接收的媒体业务请求,就能够获取请求处理的媒体业务的业务信息。For example, the media processing system 100 may provide a media service request interface externally to receive a media service request submitted by an external device or user, and the media service request is used to request the media processing system 100 to process a media service. The media service request interface requires the received media service request to carry some parameters to indicate the service information of the media service requested to be processed. When an external device or user submits a media service request to the media processing system 100 using the media service request interface, it needs to meet the requirements of the media service request interface and carry relevant parameters to indicate the service information of the media service. Therefore, the media processing system 100 can acquire the service information of the media service requested to be processed according to the received media service request.

例如,外部设备或用户向媒体处理系统100发送处理一项转码或渲染业务的媒体业务请求,媒体处理系统100根据该媒体业务请求,就可以获知需要处理的媒体业务的业务类型等业务信息。For example, when an external device or user sends a media service request to process a transcoding or rendering service to the media processing system 100, 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 to process the first media service.

在本发明实施例中,第一媒体业务的第一业务信息可以包括该第一媒体业务的标识或业务类型等信息;该第一业务信息还可以包括与该第一媒体业务相关的任何信息,例如该第一业务信息可以包括该第一媒体业务的优先级、用于处理该第一媒体业务所需的媒体业务模块的类型和数量等。In this embodiment of the present invention, the first service information of the first media service may include information such as the identifier or service type of the first media service; the first service information may also include any information related to the first media service, For example, the first service information may include the priority of the first media service, the type and quantity 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 the first media service module 410 to be added according to the first service information, and 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 the service processing capability that the media processing system 100 does not have for processing the first media service, 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 acquiring unit 210 acquires the service information of the first media service including the media service type or identifier 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 identification, that is, to determine whether the media processing system 100 has the service processing capability of processing the first media service; When processing capability, the first determining unit 220 can thus 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 perform instructions through other methods. Embodiments of the invention are not limited thereto.

该第一加载通知例如包括该第一媒体业务模块的标识,以及加载类型,该加载类型包括加载或卸载;该第一加载通知也可以包括第一媒体业务的业务类型或标识,并包括加载类型。从而使得媒体加载模块能够根据第一加载通知,获取并加载第一媒体业务模块。The first loading notification includes, for example, the identification of the first media service module, and the loading type, the loading type includes loading or unloading; the first loading notification may also include the service type or identification of the first media service, and includes the loading type . Therefore, 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, when the media management module 200 determines the first media service module that needs to be added, it can also determine the address where the first media service module is stored, for example, by searching or prompting the user to indicate. The address of the first media service module and the like. Thus, the media loading module 300 acquires and loads the first media service module 410 directly 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 a third-party server, or may include a storage path of the first media service module 410 on a local server.

此时,该第一加载通知也可以包括该第一媒体业务模块的地址;当然,该第一加载通知也可以直接包括该第一媒体业务模块,本发明实施例并不限于此。At this time, the first loading notification may also include the address of the first media service module; of course, the first loading notification may also directly include the first media service module, and this embodiment of the present invention is not limited thereto.

应理解,在本发明实施例中,为了处理该第一媒体业务,媒体处理系统100除需要具有新加载的该第一媒体业务模块之外,还需要加载媒体处理系统100本身已经具有或已经加载的一个或多个媒体业务模块,以与第一业务模块一起处理该第一媒体业务。It should be understood that, in this embodiment of the present invention, in order to process the first media service, the media processing system 100 needs to have the newly loaded first media service module, and also need to load the media processing system 100 itself. One or more media service modules, to process the first media service together with the first service module.

这些一个或多个其它媒体业务模块具有的业务处理能力包括但不限于文件输入/输出能力、文件分片/合并能力、媒体转码/渲染/水印能力等。媒体业务模块例如为应用程序,并且可以独立加载和运行。媒体业务模块能够以单进程形式运行,也能够以多进程形式运行,本发明实施例并不以此为限。例如,对于不同的具有转码处理能力的媒体业务模块,能够以单进程形式运行,也能够以一个主进程和一个或多个副进程的形式运行。The service processing capabilities of one or more other media service modules include but not limited to file input/output capabilities, file fragmentation/merging capabilities, media transcoding/rendering/watermarking capabilities, and the like. The media service module is, for example, an application program, and can be loaded and run independently. The media service module can run in the form of a single process, and can also run in the form of multiple processes, which is not limited in the embodiment of the present invention. For example, different media service modules with transcoding processing capabilities can run in the form of a single process, or can run in the form of a main process and one or more auxiliary processes.

还应理解,在本发明实施例中,卸载媒体业务模块是指使得媒体业务模块处于非运行状态,而不是指从媒体处理系统100中彻底删除该媒体加载模块,即媒体加载模块将用于处理媒体业务的媒体业务模块卸载之后,该媒体处理系统100仍具有被卸载的媒体业务模块,并具有该媒体业务模块的业务处理能力;在后续的媒体业务处理中,根据需要该媒体处理系统100可以再次加载该媒体处理系统100具有的媒体业务模块,以处理媒体业务。当然,卸载媒体业务模块也可以指从媒体处理系统100中彻底删除该媒体加载模块,It should also be understood that in this embodiment of the present invention, unloading the media service module refers to making the media service module in a non-running state, rather than completely deleting the media loading module from the media processing system 100, that is, the media loading module will be used for processing After the media service module of the media service is unloaded, the media processing system 100 still has the unloaded media service module and has the service processing capability of the media service module; in 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, unloading the media service module may also refer to completely deleting the media loading module from the media processing system 100,

在本发明实施例中,当加载媒体处理系统100不具有的媒体业务模块时,该加载不仅意味着将该媒体业务模块添加到该媒体处理系统100中,还意味着使得该媒体处理模块处于运行状态;当加载媒体处理系统100具有的媒体业务模块时,加载意味着使得媒体处理模块处于运行状态。In the embodiment of the present invention, when loading a media service module that the media processing system 100 does not have, the loading not only means adding the media service module to the media processing system 100, but also means making the media processing module run Status; when loading the media service module of the media processing system 100, loading means making the media processing module in the running state.

在本发明实施例中,媒体管理模块200通知媒体加载模块300加载该第一媒体业务模块410之后,媒体加载模块300例如根据接收的第一加载通知,加载该第一媒体业务模块410,以增加媒体处理系统的业务处理能力,从而能够处理该第一媒体业务。可选地,如图2所示,该媒体加载模块300包括: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, for example, according to the received first loading notification, to increase The service processing capability of the media processing system is capable of processing the first media service. Optionally, as shown in Figure 2, the media loading module 300 includes:

第一接收单元310,用于接收该媒体管理模块发送的第一加载通知;The first receiving unit 310 is configured to receive the first loading notification sent by the media management module;

第二获取单元320,用于根据该第一接收单元310接收的该第一加载通知,获取该第一媒体业务模块;The second obtaining unit 320 is configured to obtain the first media service module according to the first loading notification received by the first receiving unit 310;

第一加载单元330,用于将该第二获取单元320获取的该第一媒体业务模块加载到该媒体处理系统100,以便于该第一媒体业务模块410处理该第一媒体业务。The first loading unit 330 is configured to load the first media service module obtained by the second obtaining unit 320 into the media processing system 100, so that the first media service module 410 can process the first media service.

具体而言,第一接收单元310可以接收该第一加载通知,该第一加载通知例如包括该第一媒体业务模块的标识,以及加载类型,该加载类型包括加载或卸载;该第一加载通知也可以包括获取该第一媒体业务模块的地址;当然,该第一加载通知也可以直接包括该第一媒体业务模块,本发明实施例并不限于此。Specifically, the first receiving unit 310 may receive the first loading notification, the first loading notification includes, for example, the identifier of the first media service module, and the loading type, the loading type includes loading or unloading; the first loading notification It may also include obtaining the address of the first media service module; of course, the first loading notification may also directly include the first media service module, which is not limited in this embodiment of the present invention.

第二获取单元320根据第一接收单元310接收的该第一加载通知,可以采用多种方式获取该第一媒体业务模块。例如,当第一加载通知包括第一媒体业务模块的标识时,第二获取单元320例如根据该标识,通过搜索或提示用户指示,以获取该第一媒体业务模块的地址,从而获取该第一媒体业务模块。又例如,当第一加载通知包括第一媒体业务模块的链接地址或本地存储路径时,第二获取单元320可以根据第一加载通知包括的链接地址,从该链接地址表示的第三方服务器上将该第一媒体业务模块下载到本地,以获取该第一媒体业务模块;第二获取单元320也可以根据第一加载通知包括的本地存储路径,从本地下载或拷贝该第一媒体业务模块。再例如,当第一加载通知包括第一媒体业务模块时,第二获取单元320可以直接由该第一加载通知,获取该第一媒体业务模块。The second obtaining unit 320 may obtain the first media service module in various ways 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 obtains the address of the first media service module by searching or prompting the user for instructions according to the identifier, thereby obtaining the first media service module. 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, according to the link address included in the first loading notification, download the The first media service module is downloaded locally 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 another 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 from the first loading notification.

应理解,第二获取单元320也可以通过其它方法获取该第一媒体业务模块410,本发明实施例并不限于此。还应理解,第二获取单元320获取该第一媒体业务模块还意味着将该第一媒体业务模块保存在媒体处理系统100中,但本发明实施例并不以此为限。It should be understood that the second obtaining unit 320 may also obtain the first media service module 410 through other methods, which is not limited in this embodiment of the present invention. It should also be understood that obtaining the first media service module by the second obtaining unit 320 also means storing the first media service module in the media processing system 100, but this embodiment of the present invention is not limited thereto.

第一加载单元330可以将第二获取单元320获取的该第一媒体业务模块加载到该媒体处理系统100。例如,第一加载单元330调用该媒体处理系统100所在的计算机系统或服务器的接口,例如通过调用命令行接口,运行保存在媒体处理系统100中的该第一媒体业务模块410。The first loading unit 330 may load the first media service module acquired by the second acquiring unit 320 into the media processing system 100 . For example, the first loading unit 330 calls an interface of the computer system or server where the media processing system 100 is located, for example, by calling a command line interface, to run the first media service module 410 stored 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 also load other media service modules of the media processing system 100 as required, in addition to the first media service module. Taking the media service as an example of a media file transcoding application, in addition to the first media service module with transcoding processing capabilities, the media loading module may also have the number of media service modules configured by default. For example, the installation of the default configuration loads the following Media business module of business processing capability: media file input capability, media file output capability, media file fragmentation capability, media file merging capability, etc.

还应理解,在本发明实施例中,一件媒体业务可能需要一个或多个媒体业务模块进行处理,并且该一个或多个媒体业务模块具有的业务处理能力可能完全不相同,也可能部分相同,也可能完全相同,即一件媒体业务可能由一个或多个具有相同业务处理能力的媒体业务模块进行处理。例如,对于渲染业务,可以由两个或更多的用于处理渲染业务的媒体业务模块来处理,以提高渲染业务的处理效率,并可以提高资源的利用率。It should also be understood that, in the embodiment of the present invention, a media service may require one or more media service modules to process, and the service processing capabilities of the one or more media service modules may be completely different, or partly the same , may also be exactly the same, that is, one media service may be processed by one or more media service modules with the same service processing capability. For example, the rendering service can be processed by two or more media service modules for processing the rendering service, so as to improve the processing efficiency of the rendering service and improve resource utilization.

在本发明实施例中,可选地,如图3A和3B所示,该媒体管理模块200还包括:In this embodiment of the present invention, optionally, as shown in FIGS. 3A and 3B , the media management module 200 further includes:

第三获取单元240,用于获取该媒体处理系统100的媒体业务模块信息和/或该媒体处理系统100当前处理的第二媒体业务的第二业务信息;The third acquiring unit 240 is configured to acquire the media service module information of the media processing system 100 and/or the 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 the modules of the second media service module of the media processing system 100 that need to be loaded or unloaded according to the media service module information and/or the second service information obtained by the third obtaining unit 240 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, the second loading notification is used to indicate the module type, the module quantity and the loading type determined by the second determining unit 250, the loading type including loading or unloading;

该媒体加载模块300还包括:The media loading module 300 also 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 module quantity 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 an external device or 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 service The business belongs to the second media business.

还应理解,在本发明实施例中,第一媒体业务模块410指处理第一媒体业务的一个或多个模块,该第一媒体业务模块410具有媒体处理系统100不具有的业务处理能力,是需要媒体处理系统100加载的模块;而第二媒体业务模块指处理第二媒体业务的一个或多个模块,媒体处理系统100具有该第二媒体业务模块所具有的业务处理能力,是需要媒体处理系统100加载或卸载的模块。It should also be understood that in this 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 a service processing capability that the media processing system 100 does not have, and is The module that needs to be loaded by the media processing system 100; and the second media service module refers to one or more modules that process the second media service. Modules that the system 100 loads or unloads.

应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符″/″,一般表示前后关联对象是一种″或″的关系。It should be understood that the term "and/or" in this article is only an association relationship describing associated objects, which means that there may be three relationships, for example, A and/or B may mean: A exists alone, and A and B exist at the same time , there are three cases of B alone. In addition, the character "/" in this text generally indicates that the contextual objects are an "or" relationship.

在本发明实施例中,该媒体业务模块信息可以包括与该媒体处理系统100中当前运行的各种类型媒体业务模块相关的各种信息,可选地,该媒体业务模块信息包括该媒体处理系统100内当前运行的媒体业务模块的负荷、在线运行数量、待处理任务数量和已处理任务数量中的至少一种;该第二业务信息可以包括与该媒体处理系统100当前处理的各种媒体业务相关的各种信息,可选地,该第二业务信息包括:该媒体处理系统100当前处理的第二媒体业务的优先级、处理该第二媒体业务所需的媒体业务模块的类型和数量中的至少一种。In this 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 the load of the currently running media service modules in 100, the number of online operations, the number of tasks to be processed, and the number of processed tasks; the second service information may include various media services currently processed by the media processing system 100 Various related information, optionally, the second service information includes: the priority of the second media service currently processed by the media processing system 100, the type and quantity of the media service modules required to process the second media service at least one of .

在本发明实施例中,第二确定单元250可以根据该媒体业务模块信息,也可以根据该第二业务信息,也可以根据该媒体业务模块信息和该第二业务信息,确定需要加载或卸载的该媒体处理系统100的第二媒体业务模块的模块类型和模块数量。下面将结合具体例子分别进行描述。应理解,该第二媒体业务模块可以包括具有不同或相同模块类型的一个或多个媒体业务模块。In the embodiment of the present invention, the second determination unit 250 may determine the information that needs to be loaded or unloaded based on the media service module information, the second service information, or the media service module information and the second service information. The module type and module quantity of the second media service module of the media processing system 100 . The following will describe respectively in combination with specific examples. It should be understood that the second media service module may include one or more media service modules of different or same module types.

在本发明实施例中,根据第二业务信息,可以确定需要加载或卸载的第二媒体业务模块。例如,媒体管理模块根据媒体处理系统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 unloaded can be determined. For example, according to the priority of the media service processed by the media processing system 100, the media management module may determine to load a number of second media service modules corresponding to the priority to process the media service. Generally, the higher the priority of the media service, the more the number of loaded second media service modules. For another example, the media management module may respectively determine the type and quantity of the required media service modules as the module type and module quantity of the second media service module 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, the second media service module that needs to be loaded or unloaded can be determined according to the information of the media service module. For example, for each type of media service module, the media management module may determine the second media service module that needs to be loaded or unloaded according to the load of the media service modules running in the media processing system 100 . For example, when the load of a certain type of media service module running online exceeds or falls below a preset threshold, the preset number may be determined as the number of modules that need to be loaded or unloaded. For example, when the load of the transcoding media service module exceeds the threshold, one media service module of the transcoding type can be added; when the load of the transcoding media service module is lower than the threshold, one media service module of the transcoding type can be reduced. It should be understood that parameters such as the occupancy rate of a central processing unit (Central Processing Unit, referred to as "CPU") may be used to indicate the load of the media service module.

例如,对于每类媒体业务模块,媒体管理模块可以根据媒体业务模块的待处理任务数量或已处理任务数量,确定需要加载或卸载的第二媒体业务模块。例如,如果媒体管理模块确定某类型的媒体业务模块的待处理任务数量增加或减少,并达到预置的条件,则分别可以确定加载或卸载该类型的媒体业务模块的数量,例如加载或卸载预置数量的第二媒体业务模块。该预置的条件例如为任务数增加或减少的速率等,该增加或减少的速率的单位可以是每秒任务数。类似地,如果媒体管理模块确定某类型的媒体业务模块的已处理任务数量减少或增加,并达到预置的条件,则分别可以确定卸载或加载该类型的媒体业务模块的数量。For example, for each type of media service module, the media management module may 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 tasks to be processed of a certain type of media business module increases or decreases, and reaches a preset condition, it can determine the number of loaded or unloaded media business modules of this type, such as loading or unloading a preset A set number of second media service modules. The preset condition is, for example, the rate at which the number of tasks increases or decreases, and the unit 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 decreases or increases and reaches a preset condition, it can determine the number of unloaded or loaded media service modules of this type respectively.

在本发明实施例中,根据第二业务信息和媒体业务模块信息,可以确定需要加载或卸载的第二媒体业务模块。例如,对于每类媒体业务模块,媒体管理模块根据在线运行的某类型的媒体业务模块的数量,以及处理媒体业务所需的该类型的媒体业务模块的数量,确定需要加载或卸载的第二媒体业务模块。具体地,例如,当在线运行的媒体业务模块的数量小于所需时,则将所需的媒体业务模块的数量与在线运行的媒体业务模块的数量的差值,确定为需要加载的第二媒体业务模块的模块数量;类似地,当在线运行的媒体业务模块的数量大于所需时,则将在线运行的媒体业务模块的数量与所需的媒体业务模块的数量的差值,确定为需要卸载的第二媒体业务模块的模块数量。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 unloaded can be determined. For example, for each type of media business module, the media management module determines the second media that needs to be loaded or unloaded according to the number of certain types of media business modules running online and the number of media business modules of this type required to process media business business module. Specifically, for example, when the number of media business modules running online is less than required, the difference between the number of media business modules required and the number of media business modules running online is determined as the second media to be loaded. The module quantity of business module; Similarly, when the quantity of the media service module of online operation is greater than required, then the difference value of the quantity of the quantity of the media service module of online operation and the quantity of required media service module is determined as needing to unload 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 the second media service module that needs to be loaded or unloaded according to the instruction of the third-party system, and the embodiment of the present invention is not limited thereto.

因此,本发明实施例的媒体处理系统,能够根据第二业务信息和/或媒体业务模块信息,动态地确定加载或卸载不同类型的媒体业务模块,从而能够提高媒体业务的处理效率,并能够提高资源的利用率,增加用户体验。Therefore, the media processing system in 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 media service module information, thereby improving the processing efficiency of media services and improving Resource utilization increases user experience.

在本发明实施例中,该第二确定单元250还用于:根据该第三获取单元240获取的该媒体业务模块信息和/或该第二业务信息,以媒体业务模块的进程为粒度或以媒体业务模块为粒度,确定该模块数量。具体而言,在本发明实施例中,第二媒体业务模块的模块数量,可以以媒体业务模块本身为粒度计算,即不管该媒体业务模块是以单进程形式还是以多进程形式运行;该模块数量也可以以媒体业务模块的进程为粒度计算,即在该媒体业务模块以多进程形式运行的情况下,可以将进程数量折算成媒体业务模块的数量。In the embodiment of the present invention, the second determination unit 250 is further configured to: according to the media service module information and/or the second service information obtained by the third obtaining unit 240, the process of the media service module is used as the granularity or the The media service module is the granularity, and the quantity of the module is determined. Specifically, in the embodiment of the present invention, the number of modules of the second media service module can be calculated at the granularity of the media service module itself, that is, regardless of whether the media service module runs in a single process or in a multi-process form; the module The quantity can also be calculated at the granularity of the process of the media service module, that is, when the media service module runs in the form of multiple processes, the process quantity can be converted into the quantity of the media service module.

例如,对于单进程的转码类型的媒体业务模块而言,第二媒体业务模块的模块数量就是最终运行的转码类型的媒体业务模块的进程数量;对于具有一个主进程和若干个副进程的转码类型的媒体业务模块而言,可以按照M个主进程或N个副进程相应于一个媒体业务模块,确定第二媒体业务模块的模块数量,其中M和N为自然数。For example, for a single-process transcoding type media service module, the module quantity of the second media service module is the process quantity of the final running transcoding type media service module; For the media service module of the transcoding type, the number of modules of the second media service module can be determined according to M main processes or 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 "granularity" can mean the meaning of "unit", for example, "taking A as the granularity" means "taking A as the unit", and for example, in the embodiment of the present invention, the second The determination unit 250 determines the number of modules in units of processes of media service modules or in units of media service modules.

在本发明实施例中,可选地,如图4所示,该媒体管理模块200还包括:In the embodiment of the present invention, optionally, as shown in FIG. 4 , the media management module 200 further includes:

第四获取单元270,用于获取该媒体处理系统100的媒体业务模块信息、资源信息,以及该媒体处理系统100当前处理的第二媒体业务的第二业务信息中的至少一种信息;The fourth acquiring unit 270 is configured to acquire at least one of the media service module information and resource information of the media processing system 100, and 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 obtain at least one of the media service module information, the second service information, and the resource information, and the quantity between the media service module and the system resource obtained by the fourth obtaining unit 270 Proportional relationship, determining the resource type and resource quantity of the first system resources that need 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 and the resource quantity determined by the third determining unit 280 .

在本发明实施例中,该资源信息可以包括与媒体处理系统的资源相关的各种信息。可选地,该资源信息包括该媒体处理系统内当前已分配的第二系统资源的信息、该媒体处理系统内当前可供使用的第三系统资源的信息、以及该媒体处理系统的总系统资源的信息中的至少一种。In this embodiment of the present invention, the resource information may include various information related to resources of the media processing system. Optionally, the resource information includes information about the second system resources currently allocated in the media processing system, information about the third system resources 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 this embodiment of the present invention, the total system resources of the media processing system 100 are the sum of the currently allocated second system resources and the currently available third system resources. It should also be understood that the first system resource refers to the system resource that the media management module 200 determines needs to be allocated or released. When the first system resource refers to the system resource that needs to be allocated, the first system resource belongs to the second system resource; when the When the first system resource refers to a 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, the system resources of the media processing system include but not limited to computing resources (such as CPU), storage resources (such as memory, hard disk space), network resources (such as IP address, bandwidth) and so on. Optionally, the resource type includes computing resources, storage resources or network resources.

在本发明实施例中,媒体管理模块也可以根据资源信息以及媒体业务模块与系统资源之间的数量比例关系,确定需要增加或减少的第二媒体业务模块的模块数量。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 needs to be increased or decreased according to the resource information and the proportional relationship between the number of media service modules and system resources.

例如,如果媒体管理模块确定当前可分配的第三系统资源的数量增加或减少,并达到预置的条件,则可以确定需要增加或减少的系统资源的数量,例如增加或减少预置数量的系统资源;并可以进一步根据该数量比例关系,确定需要增加或减少的第二媒体业务模块的模块数量。应理解,该数量比例关系可以是经验数据,也可以是预先配置的数值,并且媒体管理模块也可以动态地调整该数量比例关系。媒体管理模块可以进一步根据预置的策略,计算获得各类型的媒体业务模块需要增加或减少的数量。例如用上述计算出的数目按预置的比例分摊计算出各类型媒体业务模块需要增加或减少的数量,或随机分摊计算出各类型媒体业务模块需要增加或减少的数目,或仅对于某类型或某几类型媒体业务模块,确定需要增加或减少的数量,但本发明实施例并不限于此。For example, if the media management module determines that the number of currently available third system resources increases or decreases, and reaches the preset condition, it can determine the amount of system resources that need to be increased or decreased, such as increasing or decreasing the preset number of system resources. resources; and further according to the quantity proportional relationship, determine the module quantity of the second media service module that needs to be increased or decreased. It should be understood that the quantitative proportional relationship may be empirical data or a pre-configured value, and the media management module may also dynamically adjust the quantitative proportional relationship. The media management module can further calculate and obtain the quantity that needs to be increased or decreased for each type of media service module according to the preset strategy. For example, use the above-mentioned calculated number to calculate the required increase or decrease of each type of media business module according to the preset ratio, or randomly allocate and calculate the required increase or decrease of each type of media business module, or only for a certain type or For certain types of media service modules, determine the quantity that needs to be increased or decreased, but this embodiment of the present invention is not limited thereto.

第三确定单元280可以根据该第四获取单元270获取的该媒体业务模块信息、该第二业务信息和该资源信息中的至少一种信息,并根据媒体业务模块与系统资源之间的数量比例关系,确定需要分配或释放的第一系统资源的资源类型和资源数量。The third determining unit 280 may obtain at least one of the media service module information, the second service information and the resource information obtained by the fourth obtaining unit 270, and according to the quantity ratio between the media service module and the system resource The relationship determines the resource type and resource quantity 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 quantity proportional relationship. For example, the resource management module may first determine that four media service modules need to be added, assuming that the number ratio between the media service modules and 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 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 automatically allocate and release resources according to changes in current resource information (such as information on second system resources, information on third system resources, and information on total system resources). For example, if the number of allocatable second system resources is greater than 0, or the total number of resources allowed to be used is greater than the number of allocated resources, it will always be allocated according to the number of resources that can be allocated; if the total number of resources allowed to be used is less than If the number of allocated resources is exceeded, the corresponding resources are released.

应理解,在本发明实施例中,媒体管理模块也可以根据第三方系统的指示,进行资源的分配和释放,本发明实施例并不限于此。It should be understood that in the embodiment of the present invention, the media management module may also allocate and release resources according to the instruction 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, optionally, 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 Information, and the quantity proportional relationship between the media service module and the system resource, the quantity of the resource is determined at a granularity of at least one resource among computing resources, storage resources, and network resources, or at a granularity of a virtual machine.

具体而言,媒体管理模块可以按虚拟机的粒度确定资源数量,虚拟机可以是包括计算资源、存储资源、网络资源在内的一组资源;媒体管理模块也可以根据媒体业务模块对资源需求的程度,按某类资源为粒度进行计算,例如为计算资源为粒度确定资源数量。Specifically, the media management module can determine the number of resources according to the granularity of the virtual machine, and the virtual machine can be a group of resources including computing resources, storage resources, and network resources; The degree is calculated according to the granularity of certain types of resources, for example, the number of resources is determined for the granularity of computing resources.

因此,本发明实施例的媒体处理系统,一方面能够根据处理媒体业务的需要而动态加载不同的媒体业务模块,从而能够提升媒体处理系统的业务处理能力,提高媒体处理系统的通用性、灵活性以及资源利用率,并能够增加用户体验,降低成本;另一方面能够根据媒体业务模块信息、第二业务信息和资源信息中的至少一种信息,动态地确定分配或释放的系统资源,从而能够提高资源利用率,提高媒体业务的处理效率,并进一步增加用户体验。Therefore, the media processing system of the embodiment of the present invention, on the one hand, can dynamically load different media service modules according to the needs of processing media services, 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, which can increase user experience and reduce costs; on the other hand, according to at least one of the media service module information, second service information, and resource information, dynamically determine the allocated or released system resources, so that Improve resource utilization, improve media service processing efficiency, and further increase user experience.

在本发明实施例中,如图5所示,可选地,该媒体处理系统100还包括并行计算模块500,该并行计算模块500包括:In the embodiment of the present invention, as shown in FIG. 5, optionally, the media processing system 100 further includes a parallel computing module 500, and 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 calling unit 520 is configured to call the third media service module 430 of the media processing system, the third media service module 430 and each media sub-service in the at least two media sub-services split by the splitting unit 510 The service corresponds to handle each media sub-service separately.

例如,对于需要转码的第三媒体业务,拆分单元510可以将该第三媒体业务拆分成媒体文件输入、媒体文件输出、媒体文件分配、媒体文件合并、媒体文件转码等媒体子业务;然后第一调用单元520调用分别用于处理各媒体子业务的第三媒体业务模块430,以分别处理各媒体子业务。For example, for a third media service requiring transcoding, the splitting unit 510 may split the third media service into media sub-services such as media file input, media file output, media file distribution, media file merging, and media file transcoding. ; Then the first calling unit 520 calls the third media service module 430 respectively for processing each media sub-service, so as to respectively process 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 type for processing each media sub-service, for example, the third media service module 430 may include at least two identical service modules, each Business modules can handle each media sub-service; the third media service module 430 can also be used to process multiple media service modules of different types of each media sub-service, for example, the third media service module 430 can include at least two There are different types of business modules, and 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 media sub-service in the at least two media 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 process each media sub-service separately.

应理解,在本发明实施例中,第三媒体业务可以表示媒体处理系统当前处理的任一媒体业务,例如第三媒体业务也可以是第二媒体业务。第三媒体业务模块可以包括分别用于处理各媒体子业务的一个或多个媒体业务模块。在本发明实施例中,术语″第一″、″第二″和″第三″仅仅是为了区分不同情况下的内容,不应对本发明实施例构成任何限定。It should be understood that, in this 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 may include one or more media service modules respectively used to process each media sub-service. In the embodiments of the present invention, the terms "first", "second" and "third" are only used to distinguish content in different situations, and should not limit the embodiments of the present invention in any way.

应理解,在本发明实施例中,″与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 according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B may also be determined according to 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 the scheduling process used to process the media service processing logic.

应理解,各媒体子业务均可由多个相应的媒体业务模块完成,各媒体业务模块在业务处理上相互独立。还应理解,各媒体子业务可由若干参数代表,这些参数包括但不限于子业务标识、子业务类型(例如分片、转码等)、子业务的输入和输出参数、子业务的处理参数、归属的任务标识等。It should be understood that each media sub-service can be completed by multiple corresponding media service modules, and each media service module is independent of each other in terms of service processing. It should also be understood that each media sub-service can be represented by several parameters, these parameters include but not limited to sub-service identifier, sub-service type (such as fragmentation, transcoding, etc.), input and output parameters of sub-service, processing parameters of sub-service, Attributed task ID, 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 logics, therefore, the parallel computing module may use corresponding scheduling processing logics according to different media services.

以媒体转码业务为例,该媒体业务的调度处理逻辑可以是:先调度媒体文件输入子业务,以完成待转码的源媒体文件的上传;然后调度媒体文件分片子业务,以完成对源媒体文件的分片,即将源文件拆分成若干分片文件;每个分片子业务完成后,即可调度媒体转码子业务,以对生成的分片文件进行转码;当所有分片文件均转码完成后,即可调度媒体合并子业务,以将所有转码后的分片文件合并为一个文件;最后调度媒体文件输出子业务,以将合并后的媒体文件输出到指定目的地址,从而完成媒体转码业务的处理。由此可以灵活处理各媒体业务,提高系统处理媒体业务的效率。Taking the media transcoding business as an example, the scheduling processing logic of this media business can be: first schedule the media file input sub-service to complete the upload of the source media files to be transcoded; Fragmentation of media files means splitting the source file into several fragmented files; after each fragmented sub-service is completed, the media transcoding sub-service can be dispatched to transcode the generated fragmented files; when all fragmented files are After the transcoding is completed, the media merge sub-service can be scheduled to merge all transcoded fragment files into one file; finally, the media file output sub-service can be scheduled to output the merged media files to the specified destination address, so that The processing of the media transcoding service is completed. In this way, various media services can be processed flexibly, and the efficiency of the system in processing media services is improved.

在本发明实施例中,可选地,如图6所示,该媒体处理系统100还包括并行计算模块500,该并行计算模块500包括:In this embodiment of the present invention, optionally, as shown in FIG. 6 , the media processing system 100 further includes a parallel computing module 500, and the parallel computing module 500 includes:

第二调用单元530,用于在接收到待处理的至少两个第四媒体业务时,根据预置的调度策略,调度与该至少两个第四媒体业务相应的第四媒体业务模块440,以分别处理该至少两个第四媒体业务。The second calling unit 530 is configured to, when receiving at least two fourth media services to be processed, schedule the fourth media service module 440 corresponding to the at least two fourth media services according to a preset scheduling strategy, so as to The at least two fourth media services are respectively processed.

该调度策略可以预先配置,并且该调度策略包括但不限于媒体业务的优先级等。例如高优先级的任务可以优先获得处理,甚至在资源不足时,可抢占资源获得优先处理。例如,系统可根据预置的调度策略,同时处理多个媒体转码业务,以及其它应用类型的业务,例如渲染、水印等媒体业务。The scheduling policy can be pre-configured, and the scheduling policy includes but not limited to the priority of media services and the like. For example, high-priority tasks can be processed first, and even when resources are insufficient, resources can be preempted to be processed first. For example, the system can simultaneously process multiple media transcoding services and other application-type services, such as media services such as rendering and watermarking, according to preset scheduling policies.

因此,本发明实施例的媒体处理系统,一方面能够根据处理媒体业务的需要而动态加载不同的媒体业务模块,从而能够提升媒体处理系统的业务处理能力,提高媒体处理系统的通用性、灵活性以及资源利用率,并能够增加用户体验,降低成本;另一方面能够提高媒体处理系统的并行计算能力,提高业务处理效率,并能够增加用户体验。Therefore, the media processing system of the embodiment of the present invention, on the one hand, can dynamically load different media service modules according to the needs of processing media services, 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 costs; on the other hand, it can improve the parallel computing capability of the media processing system, improve business processing efficiency, and increase 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; the fourth media service refers to a media service to be processed simultaneously in the media processing system.

在本发明实施例中,可选地,如图7所示,该媒体加载模块300还包括:In the embodiment of the present invention, optionally, as shown in FIG. 7, the media loading module 300 further includes:

第三接收单元360,用于接收用户发送的用于指示加载第五媒体业务模块的加载信息,该第五媒体业务模块具有该媒体处理系统不具有的业务处理能力;The third receiving unit 360 is configured to receive loading information sent by the user for instructing loading of a 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 obtain the fifth media service module according to the loading information received by the third receiving unit 360;

第三加载单元380,用于将该第五获取单元370获取的该第五媒体业务模块加载到该媒体处理系统。The third loading unit 380 is configured to load the fifth media service module acquired by the fifth acquiring unit 370 into the media processing system.

例如,媒体加载模块可以通过诸如门户网站(Web Portal)的人机界面,接收用户发送的加载信息,并根据该加载信息获取第五媒体业务模块,并加载到该媒体处理系统,以增加媒体处理系统的业务处理能力。For example, the media loading module can receive the loading information sent by the user through a man-machine interface such as a web portal (Web Portal), and obtain the fifth media service module according to the loading information, and load it into the media processing system to increase media processing. The business processing capability 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 used to supply power to the computer system and the media processing system, and the power supply module is, for example, 220V AC power supply or 24V DC power supply, etc.; the media management module 200 included in the media processing system can obtain resource information from system resources, such as computing resources or storage resources provided by the computer system, from the parallel computing module Obtain the second service information at 500, and obtain the media service module information from the media service module 400, so that the loading notification can be sent to the media loading module 300 according to the above information, and system resources can also be allocated or released; The service loading interface receives the media service module provided by the user or a 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 the media provided by the media management module Business module information, and call the media business module, the media business module can receive media data input, and output processed media data, it should be understood that the media data includes but not limited to media files, video streams, audio streams, etc. It should also be understood that the computer system may be a personal computer, a server, or a virtual machine, and the embodiment of the present invention is not limited thereto.

因此,本发明实施例的媒体处理系统,根据待处理的媒体业务的业务信息,确定媒体处理系统需要增加的媒体业务模块,该媒体业务模块具有该媒体处理系统不具有的业务处理能力,由此能够根据处理媒体业务的需要而动态加载不同的媒体业务模块,从而能够提升媒体处理系统的业务处理能力,提高媒体处理系统的通用性、灵活性以及资源利用率,并能够增加用户体验,降低成本。Therefore, the media processing system of the embodiment of the present invention, according to the service information of the media service to be processed, determines the 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, thus Different media business modules can be dynamically loaded according to the needs of media business processing, so as to improve the business processing capability of the media processing system, improve the versatility, flexibility and resource utilization of the media processing system, and increase user experience and reduce costs .

上文中结合图1至图8,详细描述了根据本发明实施例的媒体处理系统,下面将结合图9至图13,详细描述根据本发明实施例的处理媒体业务的方法。The media processing system according to the embodiment of the present invention is described in detail above with reference to FIG. 1 to FIG. 8 , and the method for processing media services according to the embodiment of the present invention will be described in detail below in conjunction with FIG. 9 to FIG. 13 .

图9示出了根据本发明实施例的处理媒体业务的方法800的示意性流程图。如图9所示,该方法800包括:Fig. 9 shows a schematic flowchart of a method 800 for processing media services according to an embodiment of the present invention. As shown in Figure 9, the method 800 includes:

S810,获取媒体处理系统待处理的第一媒体业务的第一业务信息;S810. Acquire first service information of a first media service to be processed by the media processing system;

S820,根据该第一业务信息,确定该媒体处理系统需要增加的第一媒体业务模块,该第一媒体业务模块具有该媒体处理系统不具有的业务处理能力;S820. According to the first service information, determine a first media service module to be added to the media processing system, where the first media service module has a service processing capability that the media processing system does not have;

S830,获取该第一媒体业务模块;S830. Acquire 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 It is the media processing system that processes the service processing capabilities 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, in the method for processing media services in the embodiment of the present invention, according to the service information of the media service to be processed, the media service module that needs to be added to the media processing system is determined, and the media service module has a service processing capability that the media processing system does not have , so that different media service modules can be dynamically loaded according to the needs of processing media services, thereby improving the service processing capabilities of the media processing system, improving the versatility, flexibility, and resource utilization of the media processing system, and increasing 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; the media processing system may also obtain the first media service module according to the storage address of the first media service module wait. For example, the media processing system can download the first media service module from the third-party server to the local according to the link address of the first media service module on the third-party server, so as to obtain the first media service module; the media processing system can also The first media service module may be acquired according to the storage path of the first media service module on the local server. The embodiments of the present invention are not limited thereto.

在本发明实施例中,如图10所示,可选地,该方法800还包括:In this embodiment of the present invention, as shown in FIG. 10, optionally, the method 800 further includes:

S850,获取该媒体处理系统的媒体业务模块信息,和/或该媒体处理系统当前处理的第二媒体业务的第二业务信息;S850. Acquire information about the media service module of the media processing system, and/or second service information of a second media service currently processed by the media processing system;

S860,根据该媒体业务模块信息和/或该第二业务信息,确定需要加载或卸载的第二媒体业务模块的模块类型和模块数量;S860, according to the media service module information and/or the second service information, determine the module type and module quantity of the second media service module that needs to be loaded or unloaded;

S870,根据该模块类型和该模块数量,加载或卸载该第二媒体业务模块。S870. Load or unload the second media service module according to the module type and the module quantity.

在本发明实施例中,该媒体业务模块信息可以包括与该媒体处理系统中当前运行的各种类型媒体业务模块相关的各种信息,可选地,该媒体业务模块信息包括该媒体处理系统内当前运行的媒体业务模块的负荷、在线运行数量、待处理任务数量和已处理任务数量中的至少一种。该第二业务信息可以包括与该媒体处理系统处理的各种媒体业务相关的各种信息,可选地,该第二业务信息包括:该媒体处理系统处理的媒体业务的优先级、处理该媒体业务所需的媒体业务模块的类型和数量中的至少一种。In this 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 the load, the number of online operations, the number of tasks to be processed, and the number of processed tasks of the currently running media service modules. 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: the priority of the media services processed by the media processing system, the At least one of the type and quantity of media service modules required by the service.

在本发明实施例中,媒体处理系统可以根据该媒体业务模块信息,以媒体业务模块的进程为粒度或以媒体业务模块为粒度,确定该模块数量。In the embodiment of the present invention, the media processing system may determine the number of modules according to the information of the media service module, with the process of the media service module as the granularity or with the media service module as the granularity.

在本发明实施例中,相应于第二确定单元250,媒体处理系统也可以根据该媒体业务模块信息和/或该第二业务信息,确定需要加载或卸载的第二媒体业务模块的模块类型和模块数量,为了简洁,在此不再赘述。In this embodiment of the present invention, corresponding to the second determining unit 250, the media processing system may also determine the module type and For the sake of brevity, the number of modules will not be repeated here.

因此,本发明实施例的处理媒体业务的方法,能够根据第二业务信息和/或媒体业务模块信息,动态地确定加载或卸载不同类型的媒体业务模块,从而能够提高媒体业务的处理效率,并能够提高资源的利用率,增加用户体验。Therefore, the method for processing media services in 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 media service module information, thereby improving the processing efficiency of media services, and It can improve resource utilization and increase user experience.

在本发明实施例中,可选地,如图11所示,该方法800还包括:In this embodiment of the present invention, optionally, as shown in FIG. 11 , the method 800 further includes:

S880,获取该媒体处理系统的媒体业务模块信息、资源信息以及该媒体处理系统当前处理的第二媒体业务的第二业务信息中的至少一种信息;S880. Acquire at least one of the media service module information and resource information of the media processing system, and the second service information of the second media service currently processed by the media processing system;

S890,根据该媒体业务模块信息、该第二业务信息和该资源信息中的至少一种信息,以及媒体业务模块与系统资源之间的数量比例关系,确定需要分配或释放的第一系统资源的资源类型和资源数量;S890: Determine the number of first system resources that need to be allocated or released according to at least one of the media service module information, the second service information, and the resource information, and the quantitative proportional relationship between the media service module and the system resources resource type and resource quantity;

S900,根据该资源类型和该资源数量,分配或释放该第一系统资源。S900. Allocate or release the first system resource according to the resource type and the resource quantity.

在本发明实施例中,该资源信息可以包括与媒体处理系统的资源相关的各种信息。可选地,该资源信息包括该媒体处理系统内当前已分配的第二系统资源的信息、该媒体处理系统内当前可供使用的第三系统资源的信息、以及该媒体处理系统的总系统资源的信息中的至少一种。In this embodiment of the present invention, the resource information may include various information related to resources of the media processing system. Optionally, the resource information includes information about the second system resources currently allocated in the media processing system, information about the third system resources currently available in the media processing system, and total system resources of the media processing system at least one of the information.

在本发明实施例中,媒体处理系统的资源包括但不限于计算资源(例如CPU)、存储资源(例如内存、硬盘空间)、网络资源(例如IP地址、带宽)等。可选地,资源类型包括计算资源、存储资源或网络资源。In the embodiment of the present invention, the 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 so on. Optionally, the resource type includes computing resources, storage resources or network resources.

在本发明实施例中,该媒体业务模块信息可以包括与该媒体处理系统中当前运行的各种类型媒体业务模块相关的各种信息。可选地,该媒体业务模块信息包括该媒体处理系统内运行的媒体业务模块的负荷、在线运行数量、待处理任务数量和已处理任务数量中的至少一种。In this 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 the load of the media service modules running in the media processing system, the number of online running, the number of tasks to be processed, and the number of processed tasks.

在本发明实施例中,该第二业务信息可以包括与该第二媒体业务相关的任何信息,可选地,该第二业务信息包括该第二媒体业务的优先级、用于处理该第二媒体业务所需的媒体业务模块的类型和数量中的至少一种。In this embodiment of the present invention, the second service information may include any information related to the second media service. Optionally, the second service information includes the priority of the second media service, the At least one of the type and quantity of media service modules required by 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 needs to be increased or decreased according to the resource information and the proportional relationship between the number of media service modules and system resources. It should be understood that, in the embodiment of the present invention, the media processing system may also allocate and release resources according to the instruction of the third-party system, and the embodiment of the present invention is not limited thereto.

在本发明实施例中,相应于第三确定单元280,媒体处理系统可以根据该媒体业务模块信息、该第二业务信息和该资源信息中的至少一种信息,以及媒体业务模块与系统资源之间的数量比例关系,以计算资源、存储资源和网络资源中的至少一种资源为粒度或以虚拟机为粒度,确定该资源数量,为了简洁,不再赘述。In this embodiment of the present invention, corresponding to the third determination unit 280, the media processing system may, according to at least one of the media service module information, the second service information, and the resource information, and the relationship between the media service module and the system resource The quantitative proportional relationship between resources is determined at least one of computing resources, storage resources, and network resources or at the granularity of virtual machines. For the sake of brevity, details are not repeated here.

因此,本发明实施例的处理媒体业务的方法,能够根据媒体业务模块信息、第二业务信息和资源信息中的至少一种信息,动态地确定分配或释放的系统资源,从而能够提高资源利用率,提高媒体业务的处理效率,并增加用户体验。Therefore, the method for processing media services in 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 user experience.

可选地,如图12所示,该方法800还包括:Optionally, as shown in FIG. 12, the method 800 also includes:

S910,根据与该媒体处理系统处理的第三媒体业务相应的调度处理逻辑,将该第三媒体业务拆分成至少两个媒体子业务;S910. 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;

S920,调用与该至少两个媒体子业务中的每个媒体子业务相应的第三媒体业务模块,以分别处理该每个媒体子业务。S920. Call a third media service module corresponding to each media sub-service of the at least two media sub-services, so as to separately process each media sub-service.

可选地,如图12所示,该方法800还包括:Optionally, as shown in FIG. 12, the method 800 also includes:

S930,在接收到待处理的至少两个第四媒体业务时,根据预置的调度策略,调度与该至少两个第四媒体业务相应的第四媒体业务模块,以分别处理该至少两个第四媒体业务。S930, when at least two fourth media services to be processed are received, schedule fourth media service modules corresponding to the at least two fourth media services according to a preset scheduling policy, so as to respectively process the at least two fourth media services 4. Media business.

应理解,各媒体子业务均可由多个相应的媒体业务模块完成,各媒体业务模块在业务处理上相互独立。还应理解,各媒体子业务可由若干参数代表,这些参数包括但不限于子业务标识、子业务类型(例如分片、转码等)、子业务的输入和输出参数、子业务的处理参数、归属的任务标识等。It should be understood that each media sub-service can be completed by multiple corresponding media service modules, and each media service module is independent of each other in terms of service processing. It should also be understood that each media sub-service can be represented by several parameters, these parameters include but not limited to sub-service identifier, sub-service type (such as fragmentation, transcoding, etc.), input and output parameters of sub-service, processing parameters of sub-service, Attributed task ID, 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 logics, therefore, the parallel computing module may use corresponding scheduling processing logics according to different media services.

因此,本发明实施例的处理媒体业务的方法,能够提高媒体处理系统的并行计算能力,提高业务处理效率,并能够增加用户体验。Therefore, the method for processing media services in the embodiment of the present invention can improve the parallel computing capability of the media processing system, improve service processing efficiency, and increase user experience.

在本发明实施例中,可选地,如图13所示,该方法800还包括:In this embodiment of the present invention, optionally, as shown in FIG. 13 , the method 800 further includes:

S940,接收用户发送的用于指示加载第五媒体业务模块的加载信息,该第五媒体业务模块具有该媒体处理系统不具有的业务处理能力;S940. Receive loading information sent by the user for instructing loading of a fifth media service module, where the fifth media service module has a service processing capability that the media processing system does not have;

S950,根据该加载信息,获取该第五媒体业务模块;S950. Acquire 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 can receive the loading information sent by the user through a man-machine interface such as a web portal (Web Portal), and obtain the fifth media service module according to the loading information, and load it into the media processing system to increase media processing. The business processing capability of the system.

应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, rather than by the embodiment of the present invention. The implementation process constitutes any limitation.

应理解,在本发明实施例中,″与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 according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B may also be determined according to A and/or other information.

还应理解,根据本发明实施例的方法800的执行主体,可对应于本发明实施例中的媒体处理系统100,并且媒体处理系统100中的各个模块的上述和其它操作和/或功能分别为了实现图9至图13中的各个方法的相应流程,为了简洁,在此不再赘述。It should also be understood that the execution subject of the method 800 according to the embodiment of the present invention may correspond to the media processing system 100 in the embodiment of the present invention, and the above-mentioned and other operations and/or functions of each module in the media processing system 100 are respectively for For the sake of brevity, the corresponding processes for implementing the respective methods in FIG. 9 to FIG. 13 will not be repeated here.

因此,本发明实施例的处理媒体业务的方法,通过根据待处理的媒体业务的业务信息,确定媒体处理系统需要增加的媒体业务模块,该媒体业务模块具有该媒体处理系统不具有的业务处理能力,由此能够根据处理媒体业务的需要而动态加载不同的媒体业务模块,从而能够提升媒体处理系统的业务处理能力,提高媒体处理系统的通用性、灵活性以及资源利用率,并能够增加用户体验,降低成本。Therefore, in the method for processing media services in the embodiment of the present invention, according to the service information of the media service to be processed, the media service module that needs to be added to the media processing system is determined, and the media service module has a service processing capability that the media processing system does not have , so that different media service modules can be dynamically loaded according to the needs of processing media services, thereby improving the service processing capabilities of the media processing system, improving the versatility, flexibility, and resource utilization of the media processing system, and increasing user experience ,cut costs.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the relationship between hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, and will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided in this application, 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 only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may also be electrical, mechanical or other forms of connection.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of software products, and the computer software products are stored in a storage medium In, several instructions are included to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily think of various equivalents within the technical scope disclosed in the present invention. Modifications or replacements shall all fall within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (17)

1. a medium processing system, is characterized in that, described medium processing system comprises media management module and media load-on module; Wherein, described media load-on module is used for the media business module of load or unload for the treatment of media business; Described media management module comprises:
First acquiring unit, for obtaining the first business information of the first pending media business of described medium processing system;
First determining unit, for described first business information obtained according to described first acquiring unit, determine that described medium processing system needs the first media business module increased, described first media business module has the traffic handing capacity that described medium processing system does not have;
First transmitting element, notice is loaded for sending first to described media load-on module, described first loads notice is used to indicate the described first media business module loading described first determining unit and determine, so that described media load-on module loads the described first media business module for the treatment of described first media business;
Described media load-on module comprises:
First receiving element, send for receiving described media management module described first loads notice;
Second acquisition unit, for receiving according to described first receiving element described first loads notice, obtains described first media business module;
First loading unit, for the described first media business module loading that obtained by described second acquisition unit to described medium processing system, so that the first media business described in described first media business resume module.
2. medium processing system according to claim 1, is characterized in that, described media management module also comprises:
3rd acquiring unit, media business module information and described medium processing system for obtaining described medium processing system work as the second business information of the second media business of pre-treatment;
Second determining unit, for according to described 3rd acquiring unit obtain described media business module information and described second business information, determine module type and the module number of the second media business module of the described medium processing system needing load or unload;
Second transmitting element, notice is loaded for sending second to described media load-on module, described second loading notice is used to indicate described module type, described module number and the loading type that described second determining unit is determined, described loading type comprises load or unload;
Described media load-on module also comprises:
Second receiving element, send for receiving described media management module described second loads notice;
Second loading unit, for receiving according to described second receiving element described second loads the described module type of notice instruction, described module number and described loading type, the second media business module described in load or unload.
3. medium processing system according to any one of claim 1 to 2, is characterized in that, described media management module also comprises:
4th acquiring unit, for obtaining the media business module information of described medium processing system, resource information and described medium processing system the second business information when the second media business of pre-treatment;
3rd determining unit, for the described media business module information, described second business information and the described resource information that obtain according to described 4th acquiring unit, and the quantitative proportion relation between media business module and system resource, determine the resource type and the resource quantity that need the first system resource distributed or discharge;
Allocation units, for the described resource type determined according to described 3rd determining unit and described resource quantity, distribute or discharge described the first system resource.
4. medium processing system according to any one of claim 1 to 2, is characterized in that, described medium processing system also comprises parallel computation module, and described parallel computation module comprises:
Split cells, for according to the dispatch deal logic corresponding to the 3rd media business, splits at least two media subservices by described 3rd media business;
First call unit, for calling the 3rd media business module of described medium processing system, each media subservice in described at least two media subservices that described 3rd media business module and described split cells split is corresponding, to process described each media subservice respectively.
5. medium processing system according to any one of claim 1 to 2, is characterized in that, described medium processing system also comprises parallel computation module, and described parallel computation module comprises:
Second call unit, for when receiving at least two pending fourth media business, according to preset scheduling strategy, dispatch the fourth media business module corresponding to described at least two fourth media business, with at least two fourth media business described in processing respectively.
6. medium processing system according to any one of claim 1 to 2, is characterized in that, described media load-on module also comprises:
3rd receiving element, for receiving the load information being used to indicate loading the 5th media business module that user sends, described 5th media business module has the traffic handing capacity that described medium processing system does not have;
5th acquiring unit, for the described load information received according to described 3rd receiving element, obtains described 5th media business module;
3rd loading unit, for by described 5th acquiring unit obtain described 5th media business module loading to described medium processing system.
7. medium processing system according to claim 2, it is characterized in that, described second determining unit also for: according to described 3rd acquiring unit obtain described media business module information and described second business information, with the process of media business module for granularity or with media business module for granularity, determine described module number.
8. medium processing system according to claim 3, it is characterized in that, described 3rd determining unit is also for the described media business module information obtained according to described 4th acquiring unit, described second business information and described resource information, and the quantitative proportion relation between media business module and system resource, with at least one resource in computational resource, storage resources and Internet resources for granularity or with virtual machine for granularity, determine described resource quantity.
9. process a method for media business, it is characterized in that, comprising:
Obtain the first business information of the first pending media business of medium processing system;
According to described first business information, determine that described medium processing system needs the first media business module increased, described first media business module has the traffic handing capacity that described medium processing system does not have;
Obtain described first media business module;
By described first media business module loading to described medium processing system, so that the first media business described in described medium processing system process.
10. method according to claim 9, is characterized in that, described method also comprises:
Obtain the media business module information of described medium processing system, and described medium processing system is when the second business information of the second media business of pre-treatment;
According to described media business module information and described second business information, determine module type and the module number of the second media business module needing load or unload;
According to described module type and described module number, the second media business module described in load or unload.
11. methods according to claim 9, is characterized in that, described method also comprises:
Obtain the media business module information of described medium processing system, resource information and described medium processing system the second business information when the second media business of pre-treatment;
According to described media business module information, described second business information and described resource information, and the quantitative proportion relation between media business module and system resource, determine the resource type and the resource quantity that need the first system resource distributed or discharge;
According to described resource type and described resource quantity, distribute or discharge described the first system resource.
12. methods according to any one of claim 9 to 11, it is characterized in that, described method also comprises:
The dispatch deal logic corresponding according to the 3rd media business to described medium processing system process, splits at least two media subservices by described 3rd media business;
Call the three media business module corresponding to each media subservice in described at least two media subservices, to process described each media subservice respectively.
13. methods according to any one of claim 9 to 11, it is characterized in that, described method also comprises:
When receiving at least two pending fourth media business, according to preset scheduling strategy, dispatch the fourth media business module corresponding to described at least two fourth media business, with at least two fourth media business described in processing respectively.
14. methods according to any one of claim 9 to 11, it is characterized in that, described method also comprises:
Receive the load information being used to indicate loading the 5th media business module that user sends, described 5th media business module has the traffic handing capacity that described medium processing system does not have;
According to described load information, obtain described 5th media business module;
By described 5th media business module loading to described medium processing system.
15. methods according to claim 10 or 11, it is characterized in that, described media business module information comprises at least one in the load of the media business module run in described medium processing system, on-line operation quantity, waiting task quantity and processed task quantity.
16. methods according to claim 10 or 11, it is characterized in that, described second business information comprises: at least one in the priority of described second media business, the type processing the media business module needed for described second media business and quantity.
17. methods according to claim 11, it is characterized in that, described resource information comprises at least one in the information of the current operational information of the 3rd system resource and the total system resource of described medium processing system in the information of current second system resource of having distributed in described medium processing system, described medium processing system.
CN201280001093.9A 2012-04-01 2012-04-01 Medium processing system and method for processing medium business Active CN102972011B (en)

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 (2)

Publication Number Publication Date
CN102972011A CN102972011A (en) 2013-03-13
CN102972011B true CN102972011B (en) 2015-07-08

Family

ID=47800633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201280001093.9A Active CN102972011B (en) 2012-04-01 2012-04-01 Medium processing system and method for processing medium business

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
CN117714629A (en) * 2022-01-28 2024-03-15 杭州海康威视数字技术股份有限公司 Video recorder, video data processing method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1828665A (en) * 2005-02-12 2006-09-06 美国博通公司 Method and system for image editing in a communication apparatus
CN1906586A (en) * 2004-05-19 2007-01-31 索尼计算机娱乐公司 Methods and apparatus for handling processing errors in a multi-processor system
CN101627367A (en) * 2007-02-21 2010-01-13 高通股份有限公司 On-demand multi-thread multimedia processor
CN201993811U (en) * 2010-11-15 2011-09-28 张军 Cloud fusion business intelligence terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1297095C (en) * 2004-10-28 2007-01-24 华为技术有限公司 Value added service request processing method
CN1905478A (en) * 2006-07-29 2007-01-31 华为技术有限公司 Method, apparatus and system for media resource allocating
CN101834851B (en) * 2010-03-30 2014-09-10 中兴通讯股份有限公司 Multimedia message center and regulating method of processing capacity thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1906586A (en) * 2004-05-19 2007-01-31 索尼计算机娱乐公司 Methods and apparatus for handling processing errors in a multi-processor system
CN1828665A (en) * 2005-02-12 2006-09-06 美国博通公司 Method and system for image editing in a communication apparatus
CN101627367A (en) * 2007-02-21 2010-01-13 高通股份有限公司 On-demand multi-thread multimedia processor
CN201993811U (en) * 2010-11-15 2011-09-28 张军 Cloud fusion business intelligence terminal

Also Published As

Publication number Publication date
WO2013149374A1 (en) 2013-10-10
CN102972011A (en) 2013-03-13

Similar Documents

Publication Publication Date Title
CN111427679B (en) Computing task scheduling method, system and device for edge computing
US10911373B2 (en) Smart autoscaling of a cluster for processing a work queue in a distributed system
CN107306232B (en) Network device, controller, queue management method and flow management chip
US20120117242A1 (en) Service linkage system and information processing system
CN102567072A (en) Resource allocation method, resource allocation device and resource allocation system
JP2009258982A (en) Node device, program, and resource-allocating method
CN109960575B (en) Computing power sharing method, system and related equipment
US20250141763A1 (en) Batching of artificial intelligence jobs
CN102970379A (en) Method for realizing load balance among multiple servers
CN112445605A (en) Media data processing method and device and media server
CN102972011B (en) Medium processing system and method for processing medium business
CN111240824A (en) CPU resource scheduling method and electronic equipment
CN112600761A (en) Resource allocation method, device and storage medium
Drougas et al. Load balancing techniques for distributed stream processing applications in overlay environments
CN110290009B (en) Data scheduling method and device and computer readable storage medium
CN109565657A (en) Control equipment, resource manager and its method
KR20160045388A (en) virtual machine allocation method using cloud service broker
CN113298387B (en) Cargo handling distribution method, distribution system, electronic device, and readable storage medium
KR20160025926A (en) Apparatus and method for balancing load to virtual application server
CN115102898B (en) Communication method, device and storage medium
US20170269968A1 (en) Operating system support for game mode
CN111245794B (en) Data transmission method and device
JP6191361B2 (en) Information processing system, information processing system control method, and control program
JP6059259B2 (en) Computer system and computer resource allocation method
Huang et al. A dynamic and complexity aware cloud scheduling algorithm for video transcoding

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220307

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technologies Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right