Information processing method, device, equipment and storage medium
The target task template is obtained through the association of the identity identification information on the user side and the task template, and a task orchestration workflow is generated, which solves the problems of complex configuration and delay in information transmission in the existing technology, and improves the efficiency and user experience of the information processing process.
Patent Information
- Application Number
- CN202210672936.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-15
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2042-06-15
AI Technical Summary
In the prior art, users need to upload processing codes to processing modules of different services, resulting in increased configuration complexity, and the geographical location differences of different processing modules lead to delay in information transmission, affecting the efficiency of information processing flow.
Through the preset association relationship between the identity identification information of the user and the task template, multiple target task templates associated with the target identity identification information are obtained. Based on the predecessor and successor event relationship of these templates, task orchestration workflow is generated, and multiple target task templates are called uniformly. Process media information to reduce the complexity of users uploading codes and information transmission delay.
It realizes users' quick access to information processing services, simplifies the configuration process, improves the efficiency of information processing processes, reduces the information transmission delay caused by the inability to cooperate with the processing module, and forms a simple and easy-to-use processing process.
Smart Images

Figure CN115150474B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an information processing method, apparatus, device and storage medium. Background Art
[0002] With the development of the Internet and media industry, media processing services have emerged, such as providing users with access, recording, screenshots, transcoding and artificial intelligence (AI) processing services.
[0003] In the related art, since the processing modules of different services are independent of each other, users need to upload their written processing codes to the processing modules of the required services to meet the media processing requirements of the users, which increases the configuration complexity of each module. In addition, if the user requires multiple services and the geographical locations of the processing modules of the multiple services are different, the transmission delay of information between the multiple processing modules will be increased due to the geographical locations of the different processing modules, affecting the efficiency of the information processing process. Summary of the invention
[0004] The embodiments of the present application provide an information processing method, apparatus, device and storage medium, which can improve the efficiency of the information processing process.
[0005] According to a first aspect of an embodiment of the present application, there is provided an information processing method, including:
[0006] Receiving service call information sent by the user end, the service call information includes target identity identification information of the user end and media information to be processed;
[0007] According to the preset association relationship between the identity identification information and the task template, a plurality of target task templates associated with the target identity identification information are obtained;
[0008] Generate task scheduling workflow based on the predecessor and successor event relationship of multiple target task templates;
[0009] According to the task arrangement workflow, multiple target task templates are called to process media information and obtain service processing result information.
[0010] According to a second aspect of an embodiment of the present application, there is provided an information processing device, including:
[0011] A receiving module, used to receive service call information sent by a user terminal, the service call information including target identity identification information of the user terminal and media information to be processed;
[0012] An acquisition module, used to acquire a plurality of target task templates associated with the target identity identification information according to a preset association relationship between the identity identification information and the task template;
[0013] A generation module, used to generate a task scheduling workflow based on the predecessor and successor event relationships of multiple target task templates;
[0014] The calling module is used to arrange the workflow according to the tasks, call multiple target task templates to process the media information, and obtain the service processing result information.
[0015] According to a third aspect of an embodiment of the present application, there is provided a computer device, including: a memory and a processor;
[0016] A memory for storing a computer program;
[0017] The processor is used to execute the computer program stored in the memory, and when the computer program is run, the processor executes the steps of the information processing method shown in the first aspect.
[0018] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a computer device, the computer device executes the steps of the information processing method shown in the first aspect.
[0019] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, comprising a computer program, which, when executed by a computer device, enables the computer device to perform the steps of the information processing method shown in the first aspect.
[0020] According to the information processing method, device, equipment and storage medium in the embodiment of the present application, through the preset association relationship between the identity identification information of the user end and the task template, multiple target task templates pre-associated with the target identity identification information are obtained, and the user does not need to upload the processing code of each task separately. It is only necessary to select and simply configure the preset template, which is convenient for the user to quickly access the service processing module of each information processing stage. Then, based on the predecessor and successor event relationship of multiple target task templates, a task scheduling workflow is generated, and the capabilities of the service processing modules of multiple target task templates can be organized to form a simple and easy-to-use processing flow, and through the scheduling capabilities of the target task template, it can reduce the user's upload of different stages of media information operations to different service service processing modules, while ensuring the realization of complex information processing service logic workflows. Then, according to the task scheduling workflow, multiple target task templates are called to process media information to obtain service processing result information. Thus, according to the task scheduling workflow, the processing modules of multiple task templates that meet the processing requirements are uniformly called, so that they cooperate with each other to execute the information processing process, reducing the information transmission delay caused by the inability of different processing modules to cooperate, and improving the efficiency of the information processing process. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The present application may be better understood from the following description of specific embodiments of the present application in conjunction with the accompanying drawings, wherein the same or similar figure numbers represent the same or similar features.
[0022] Figure 1 is one of the schematic diagrams showing an information processing architecture according to an embodiment;
[0023] Figure 2 is a second schematic diagram showing an information processing architecture according to an embodiment;
[0024] Figure 3 is an interface schematic diagram showing an information processing method according to an embodiment;
[0025] Figure 4 is a flow chart showing an information processing method according to one embodiment;
[0026] Figure 5 is one of the structural schematic diagrams showing an information processing according to an embodiment;
[0027] Figure 6 is a second structural schematic diagram showing an information processing according to an embodiment;
[0028] Figure 7 is a schematic diagram showing the structure of an information processing device according to an embodiment;
[0029] Figure 8 FIG. 4 is a schematic diagram showing the hardware structure of a computer device according to an embodiment. DETAILED DESCRIPTION
[0030] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only configured to explain the present application and are not configured to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0031] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0032] In the related art, the configuration information processing flow can be processed by function computing, that is, an event-driven fully managed computing service. Users do not need to manage infrastructure such as servers. They only need to write the processing code corresponding to the processing module of the required service and upload it to function computing. Function computing will provide users with computing resources and run user code in a flexible and reliable manner. However, this method requires users to upload their written processing code to the processing module of the required service to meet the user's media processing requirements. While increasing the complexity of the user's configuration of each module, it cannot be used anytime and anywhere. In addition, the configuration information processing flow of video processing can also be adopted, that is, after the user transmits the packaged content in the acquisition stage to the server, the content will be forwarded to the central computer room through multiple physical computer rooms. The central computer room deploys computing processing capabilities such as video recording and transcoding. Although this method can reduce the operation of users uploading their written processing code to the processing module of the required service separately, it will increase the transmission delay of information between multiple processing modules due to the geographical location of different processing modules. Remote access will also increase the cost of information processing and affect the efficiency of the information processing process.
[0033] Therefore, there is an urgent need to provide a processing method that can provide users with information such as nearby access, recording, screenshot, transcoding and artificial intelligence functions of media information, so that users can use a certain service individually, and can also use them separately in a time sequence based on different scenarios, such as access-recording-AI, access-screenshot-AI, etc., to achieve a method in which each information processing module in the information processing flow is uniformly called and cooperates with each other to execute information processing, thereby reducing the information transmission delay caused by the inability of different processing modules to cooperate and improving the efficiency of the information processing flow.
[0034] Based on this, the embodiment of the present application provides an information processing method, through the preset association relationship between the identity identification information of the user end and the task template, a plurality of target task templates pre-associated with the target identity identification information are obtained, and the user does not need to upload the processing code of each task separately, and only needs to select and simply configure the preset template, so as to facilitate the user to quickly access the service processing module of each information processing stage. Then, based on the predecessor and successor event relationship of multiple target task templates, a task scheduling workflow is generated, and the capabilities of the service processing modules of multiple target task templates can be organized to form a simple and easy-to-use processing flow, and through the scheduling capabilities of the target task templates, while reducing the user's upload of different stages of media information operations to different service processing modules, it is ensured that a complex information processing service logic workflow is realized. Then, according to the task scheduling workflow, multiple target task templates are called to process media information, and service processing result information is obtained. Thus, according to the task scheduling workflow, the processing modules of multiple task templates that meet the processing requirements are uniformly called, so that they cooperate with each other to execute the information processing flow, reducing the information transmission delay caused by the inability of different processing modules to cooperate, and improving the efficiency of the information processing flow.
[0035] The following is combined with Figure 1 , the information processing architecture in the embodiments of the present application is described in detail.
[0036] like Figure 1 As shown, the information processing architecture proposed in the embodiment of the present application includes a user end 101 and a server end 102.
[0037] The user terminal 101 is a functional entity with functions of registration, establishment / termination of session connection and control, acquisition / encoding and transmission of media information. Specifically, the user terminal 101 is an electronic device or a video detection device.
[0038] In an example, the electronic device may be a mobile phone, a tablet computer, a PDA, a wearable device, or the like that has the function of acquiring media information and transmitting data with the server 102. The embodiment of the present application does not specifically limit the electronic device.
[0039] In one example, the video detection device can be a network camera, a video codec device, a digital hard disk recorder, an alarm device, or other device that has the function of acquiring media information and performing data transmission with the server 102. The embodiment of the present application does not specifically limit the video detection device. The video detection device may include a user agent (UA), a media acquisition / codec module, and a media communication module.
[0040] Furthermore, the user agent should comply with the SIP communication protocol specification and be used to establish, modify, and terminate the session connection with the server 102. It is the main module for session control. In the embodiment of the present application, service call information can be sent to the server 102 through the user agent; the media communication module is used to control the transmission of media information and media playback.
[0041] The server 102 may be a server cluster or cloud platform that provides data computing services to the client 101. For example, in a view computing scenario, the server 102 may provide the client 101 with a media processing service orchestration engine that provides callback events to drive each service to automatically complete service processing.
[0042] In one example, the server 102 may include a service orchestration layer 1021 and a media processing layer 1022. The service orchestration layer 1021 is used for standardization of the workflow description language of the media processing orchestration engine; the media processing layer 1022 is used for standardization of the media processing tasks and media processing flows.
[0043] Furthermore, the service orchestration layer 1021 may include a media service orchestration engine 10211 and an event processing center 10212. The media service orchestration engine 10211 is used to, when receiving service call information sent by the user end, obtain multiple target task templates associated with the target identity identification information of the user end in the service call information according to the preset association relationship between the identity identification information and the task template; and generate a task orchestration workflow based on the predecessor and successor event relationship of the multiple target task templates. The event processing center 10212 is used to call multiple target task templates to process media information according to the task orchestration workflow to obtain service processing result information.
[0044] The media processing layer 1022 includes multiple service modules, each of which corresponds to a service, such as service 1 module corresponds to service 1, service 2 module corresponds to service 2, ... service N module corresponds to service N, where N is a positive integer. The service module includes a task template, which is used to define rule information for processing media information.
[0045] Based on the above Figure 1 The information processing architecture shown, combined with Figure 2 and Figure 3 , the information processing method provided in the embodiment of the present application is described in detail.
[0046] like Figure 2As shown, the user sends a registration request to the media service orchestration engine 10211 through the client 101, and the registration request includes the identity information of the client 101. Based on the registration request, the media service orchestration engine 10211 sends multiple task templates to the client 101, and the task templates are used to define rule information for processing media information.
[0047] like Figure 3 As shown, when the user terminal 101 receives multiple task templates, it displays multiple task templates and configuration reminders, so that the user can select the desired target task template based on the multiple task templates and process the media information through the target task template. In addition, the configuration reminder is used to prompt the user whether to configure the selected target task template. If the user configures the selected target task template, the task information is filled in (or selected); conversely, if the user does not configure the selected target task template, the task information is not filled in (or selected). Based on this, the user terminal 101 sends an association request to the server 102, and the association request includes at least the task template selected from the multiple task templates. When the user configures the selected target task template, the association request may also include the task information filled in (or selected) by the user. Therefore, for the user terminal 101, visual operation and maintenance can be achieved, which can be achieved through the following methods: Figure 3 The visualization page shown configures each task template, i.e., the information processing flow, so that the input, output, and log of each link can be viewed to troubleshoot problems.
[0048] Next, when the service end 102 receives the association request sent by the client end 101, the media service orchestration engine 10211 determines the selected task template as the target task template; associates the identity information of the client end 101 with the target task template, and stores it in the edge storage. Exemplarily, if the target task template includes the task template corresponding to service 1 and the task template corresponding to service 1, the device information A of the client end 101 is associated with the task template corresponding to service 1 and the task template corresponding to service 1.
[0049] Then, the service end 102 receives the service call information sent by the user end 101, and the service call information includes the target identity identification information of the user end 101 and the media information to be processed. Based on this, the media service orchestration engine 10211 obtains multiple target task templates associated with the target identity identification information according to the preset association relationship between the identity identification information and the task template. Exemplarily, based on the preset association relationship between the identity identification information and the task template stored in advance, the task template corresponding to service 1 and the task template corresponding to service 1 associated with the device information A of the user end 101 are obtained. Based on this, the service 1 module that executes the task template corresponding to service 1 and the service 2 module that executes the task template corresponding to service 2 are configured.
[0050] The media service orchestration engine 10211 generates a task orchestration workflow based on the predecessor and successor event relationship of multiple target task templates, and sends the task orchestration workflow to the event processing center 10212. Exemplarily, the order of the task orchestration workflow is to first execute the task template corresponding to service 1 in the task template corresponding to service 2, and then execute the task template corresponding to service 1 in the task template corresponding to service 2.
[0051] The media service orchestration engine 10211 cooperates with the event processing center 10212 to call multiple target task templates in the media processing layer 1022 to process media information according to the task orchestration workflow, obtain service processing result information, and send the service processing result information to the user terminal 101. Exemplarily, the media service orchestration engine 10211 triggers the target task template in the service 1 module to process the media information, obtains the service processing result information of service 1, and the service 1 module sends the service 1 completion message, i.e., the service processing result information of service 1, to the event processing center 10212. The event processing center 10212 determines the next target task module, i.e., the service 2 module, based on the task orchestration workflow. In this way, through the task callback of the task orchestration workflow, the event processing center 10212 triggers the service 2 module, that is, the service processing result information of service 1 is input into the service 2 module as the media information processed by the service 2 module, and the service 2 module calls the target task template in the service 2 module to process the media information, obtains the service processing result information, and based on the task template in the service module and the event-driven media service orchestration engine, the information processing product capabilities can be organized to form a simple and easy-to-use media processing flow. Here, it should be noted that if the user end 101 has additional content, i.e., task information, for the target task template in the service 2 module, the media service orchestration engine 10211 adjusts the target task template selected by the user, and triggers the service 2 module after processing.
[0052] Therefore, compared with function calculation, the information processing method provided by the embodiment of the present application does not require the user to upload the media processing code by himself, but only needs to make a simple template configuration, and use the service orchestration layer to organize various task templates to arrange the workflow, so as to achieve the purpose of out-of-the-box use. In addition, the task templates and workflows in the information processing process are standardized and defined, and various media processing services can be easily accessed, with strong expansibility. In this way, if the information processing method provided by the embodiment of the present application is applied to the view computing product, it can provide users with the functions of nearby access, recording, screenshot, transcoding and artificial intelligence processing of video detection equipment. Users can use a certain function alone, and can use them separately according to the timing based on different scenarios, such as access-recording-AI, access-screenshot-AI, etc. The media processing service orchestration engine provides customers with a simple and easy-to-use configuration solution, reduces the information transmission delay caused by the inability of different processing modules to cooperate, and improves the efficiency of the information processing process.
[0053] It should be noted that the information processing method in the embodiments of the present application can be applied to but not limited to media information processing scenarios including live video, video on demand, and view calculation.
[0054] According to the above architecture and application scenarios, the following are combined Figure 4 The information processing method provided in the embodiments of the present application is described in detail.
[0055] Figure 4 is a flow chart showing an information processing method according to one embodiment.
[0056] like Figure 4 As shown, the information processing method can be applied to Figure 1 The information processing architecture shown can be used for Figure 1 The information processing method may specifically include:
[0057] Step 410, receiving service call information sent by the user end, the service call information includes the target identity identification information of the user end and the media information to be processed; Step 420, obtaining multiple target task templates associated with the target identity identification information according to the preset association relationship between the identity identification information and the task template; Step 430, generating a task scheduling workflow based on the predecessor and successor event relationship of the multiple target task templates; Step 440, calling multiple target task templates to process the media information according to the task scheduling workflow, and obtaining service processing result information.
[0058] The above steps are described in detail below, as shown below.
[0059] First, in step 410, the media information to be processed includes at least one of the following information: an offline media file and an online media stream.
[0060] For example, compared with live broadcast and on-demand services, the media information in the embodiments of the present application can be either offline media files, such as videos, pictures, audio and video, etc., or online video streams, outputs, and execution processes are standardizedly defined to facilitate the arrangement of processing flows and are easy to expand. Media processing services that meet the configuration requirements can be quickly incorporated into the arranged processing flow.
[0061] Next, before step 420, it is necessary to preset a preset association relationship between the generated identity identification information and the task template, so that when the service call information is sent by the user end, multiple target task templates associated with the target identity identification information can be obtained.
[0062] Based on this, the embodiments of the present application provide the following two methods for generating a preset association relationship between identity recognition information and a task template, as shown below.
[0063] In one or more possible embodiments, before acquiring a plurality of target task templates associated with the target identity information, the method further includes:
[0064] Step 4501, receiving a registration request sent by a user terminal, the registration request including the identity information of the user terminal;
[0065] Step 4502: Based on the registration request, multiple task templates are sent to the user terminal, where the task templates are used to define rule information for processing media information;
[0066] Step 4503: upon receiving an association request sent by the user terminal, where the association request includes a task template selected from a plurality of task templates, determining the selected task template as a target task template;
[0067] Step 4504, associating the user's identity information with the target task template.
[0068] Furthermore, in the case where the association request also includes configuration information of the selected task template, the above step 4503 may specifically include:
[0069] Based on the configuration information, the selected task template is adjusted to obtain an adjusted task template;
[0070] The adjusted task template is determined as the target task template.
[0071] In another or more possible embodiments, before acquiring a plurality of target task templates associated with the target identity information, the method further includes:
[0072] Step 4601, receiving a registration request sent by a user terminal, where the registration request includes the identity information of the user terminal;
[0073] Step 4602, based on the identity identification information of the user terminal, obtain the service type of the user terminal;
[0074] Step 4603, associating the identity information of the user terminal with the task template corresponding to the service type of the user terminal.
[0075] Further, in a possible example, before step 4603, the information processing method may further include: sending prompt information to the user terminal based on the task template corresponding to the service type, the prompt information being used to prompt the user whether to configure the task template corresponding to the service type;
[0076] In the case of receiving a configuration instruction sent by the user terminal, adjusting the task template corresponding to the service type based on the configuration instruction to obtain an adjusted task template;
[0077] The adjusted task template is determined as the task template corresponding to the service type of the user terminal.
[0078] Exemplarily, templates based on different scenarios may include different content attributes, as shown below: (1) Screenshot template includes: trigger type, screenshot mode (key frame / fixed frequency / automatic / single), start / end time, storage location, etc.; (1) Recording template includes: trigger type, storage location, prefix, format, etc.; (3) Transcoding template includes: transcoding type (H264 standard, narrowband HD, etc.), bit rate, length and width, etc.; (4) AI template includes: features, algorithm configuration, etc.
[0079] Furthermore, step 430 is involved, which may specifically include:
[0080] Based on the content attribute of each target task template in the plurality of target task templates, a predecessor and successor event relationship of processing media information between every two target task templates is obtained;
[0081] A task arrangement workflow is generated according to the order of the predecessor and successor event relationship of processing media information between every two target task templates.
[0082] This can be abstracted into a standardized configurable description language for easy user configuration. The media processing flow (ActionList) includes a group of media processing tasks (Actions), which include attributes such as task type (ActionType), task ID (ActionId), configuration information (Config), and next task list (Next). The configuration information includes the template ID, and the next task list includes a group of Actions, that is, the output result of the previous media processing task can be used as the input of multiple media processing tasks at the same time, and the predecessor and successor relationship can be represented by the ActionId of Next.
[0083] Then, step 440 is involved. In a possible embodiment, step 440 may specifically include:
[0084] Step 4401, according to the task arrangement workflow, calling the current target task module in multiple target task templates to process media information, and obtaining the current service processing result information;
[0085] Step 4402: input the current service processing result information into the next target task module as the media information to be processed by the next target task module.
[0086] Further, through the task arrangement workflow, the next target task module after the current target task template is determined;
[0087] Through the task callback of the task orchestration workflow, the current service processing result information output by the current target task template is input into the next target task module.
[0088] Step 4403, generating service processing result information based on the processing result output by the next target task module.
[0089] To better understand the above Figures 1 to 4 Through the following examples and combined with Figure 5 and Figure 6 The information processing method provided in the embodiments of the present application is described in detail.
[0090] First, if Figure 5 As shown, the information processing method provided by the embodiment of the present application is generally described. That is, the processing task of media information is abstracted into three parts: input, task template and output. Among them, the input is the media information to be processed in the service call information sent by the user end, such as video stream, picture, message, etc.; the task template is used to define how different modules process these media information to be processed. In this way, the user inputs the workflow DSL text of the service call information into the media service orchestration engine of the server. The engine will add corresponding configurations such as generating task orchestration workflows based on the service call information, and use the callback relationship to connect each target task template in series. After the user pushes the stream or generates a call, each target task template will be processed accordingly according to the task orchestration workflow; then, the output product, that is, the service processing result information, can be a video stream, picture, message, etc. processed by the target task template.
[0091] In this way, if the media information processing process usually includes multiple tasks, the output of the previous media processing task can be used as the input of the next media processing task, and they are executed in sequence until multiple tasks are completed and the results are output.
[0092] For example, Figure 6 As shown, the service call information sent by the user end is received, and the service call information includes the target identity identification information of the user end and the media information to be processed. According to the preset association relationship between the identity identification information and the task template, multiple target task templates associated with the target identity identification information are obtained. Here, each target task template may include trigger conditions such as messages, requests or calls, etc., and task types include continuous, single, etc. Then, based on the predecessor and successor event relationship of multiple target task templates, a task scheduling workflow is generated, and according to the task scheduling workflow, when the current target task template outputs the current service processing result information, the current service processing result information output by the current target task template is input into the next target task module through task callback, and executed in sequence until multiple target task templates are completed and the service processing result information is obtained.
[0093] Therefore, compared with live broadcast and on-demand services, the information processing method based on the view scene provided by the embodiment of the present application can standardize the definition of offline media files such as videos and pictures, as well as online video streams, outputs and execution processes, so that users can arrange and expand the processing flow, and can quickly incorporate media processing services that meet the configuration requirements into the arrangement and processing flow. In addition, through the arrangement capability, complex media processing service logic can be implemented with less code, making the service process more flexible. In addition, with respect to the user end, each workflow is configured through a visualization page to view the input, output and log of each link, thereby troubleshooting problems.
[0094] It should be clear that the present application is not limited to the specific configurations and processes described in the above embodiments and shown in the figures. For the convenience and brevity of description, a detailed description of the known methods is omitted here, and the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, which will not be repeated here.
[0095] Based on the same inventive concept, the present application provides an information processing device corresponding to the above-mentioned information processing method. Figure 7 Provide detailed explanation.
[0096] Figure 7 is a schematic diagram showing the structure of an information processing device according to an embodiment.
[0097] like Figure 7 As shown, the information processing device 70 is applied to Figure 1 The server side shown, the information processing device 70 may specifically include:
[0098] The receiving module 701 is used to receive the service calling information sent by the user end, where the service calling information includes the target identity identification information of the user end and the media information to be processed;
[0099] The acquisition module 702 is used to acquire a plurality of target task templates associated with the target identity identification information according to the preset association relationship between the identity identification information and the task template;
[0100] A generation module 703, for generating a task arrangement workflow based on the predecessor and successor event relationship of multiple target task templates;
[0101] The calling module 704 is used to arrange the workflow according to the tasks, call multiple target task templates to process the media information, and obtain the service processing result information.
[0102] Based on this, the information processing device 70 provided in the embodiment of the present application is described in detail below:
[0103] In one or more possible embodiments, the information processing device 70 in the embodiment of the present application may further include a first sending module, a first determining module and a first associating module; wherein,
[0104] The receiving module 701 may also be used to receive a registration request sent by a user terminal, where the registration request includes the identity information of the user terminal;
[0105] A first sending module, used for sending a plurality of task templates to a user terminal based on a registration request, wherein the task templates are used for defining rule information for processing media information;
[0106] A first determining module is configured to determine the selected task template as a target task template when receiving an association request sent by a user terminal, the association request including a task template selected from a plurality of task templates;
[0107] The first association module is used to associate the identity identification information of the user terminal with the target task template.
[0108] In another or more possible embodiments, the information processing device 70 in the embodiment of the present application may further include a first adjustment module and a second determination module; wherein,
[0109] A first adjustment module, configured to adjust the selected task template based on the configuration information to obtain an adjusted task template when the association request further includes configuration information of the selected task template;
[0110] The second determining module is used to determine the adjusted task template as the target task template.
[0111] In one or more possible embodiments, the information processing device 70 in the embodiment of the present application may further include a second association module; wherein,
[0112] The receiving module 701 may also be used to receive a registration request sent by a user terminal, where the registration request includes the identity information of the user terminal;
[0113] The acquisition module 702 may also be used to acquire the service type of the user terminal based on the identity identification information of the user terminal;
[0114] The second association module is used to associate the identity identification information of the user terminal with the task template corresponding to the service type of the user terminal.
[0115] In one or more possible embodiments, the information processing device 70 in the embodiment of the present application may further include a second sending module, a second adjustment module and a third determination module; wherein,
[0116] A second sending module is used to send prompt information to the user terminal based on the task template corresponding to the service type, and the prompt information is used to prompt the user whether to configure the task template corresponding to the service type;
[0117] A second adjustment module is used to adjust the task template corresponding to the service type based on the configuration instruction when receiving the configuration instruction sent by the user terminal, so as to obtain the adjusted task template;
[0118] The third determining module is used to determine the adjusted task template as a task template corresponding to the service type of the user terminal.
[0119] In one or more possible embodiments, the acquisition module 702 may also be used to acquire a predecessor and successor event relationship for processing media information between every two target task templates based on the content attribute of each target task template in the plurality of target task templates;
[0120] The generating module 703 may also be used to generate a task arrangement workflow according to the order of the predecessor and successor event relationship of processing media information between every two target task templates.
[0121] In one or more possible embodiments, the information processing device 70 in the embodiment of the present application may further include an input module; wherein,
[0122] The calling module 704 is also used to call the current target task module in multiple target task templates to process media information according to the task arrangement workflow, and obtain the current service processing result information;
[0123] An input module, used for inputting the current service processing result information into the next target task module as the media information to be processed by the next target task module;
[0124] The generation module 703 may also be used to generate service processing result information based on the processing result output by the next target task module.
[0125] In one or more possible embodiments, the information processing device 70 in the embodiment of the present application may further include a fourth determination module; wherein,
[0126] A fourth determination module is used to determine the next target task module after the current target task template through the task arrangement workflow;
[0127] The input module can be specifically used to input the current service processing result information output by the current target task template into the next target task module through the task callback of the task orchestration workflow.
[0128] Thus, through the preset association relationship between the identity identification information of the user end and the task template, multiple target task templates pre-associated with the target identity identification information are obtained, and the user does not need to upload the processing code of each task separately. It is only necessary to select and simply configure the preset template, which is convenient for the user to quickly access the service processing module of each information processing stage. Then, based on the predecessor and successor event relationship of multiple target task templates, a task scheduling workflow is generated, and the capabilities of the service processing modules of multiple target task templates can be organized to form a simple and easy-to-use processing flow. In addition, through the scheduling capabilities of the target task templates, it can reduce the user's upload of different stages of media information operations to different service processing modules, while ensuring the realization of complex information processing service logic workflows. Then, according to the task scheduling workflow, multiple target task templates are called to process media information to obtain service processing result information. Thus, according to the task scheduling workflow, the processing modules of multiple task templates that meet the processing requirements are uniformly called, so that they cooperate with each other to execute the information processing flow, reducing the information transmission delay caused by the inability of different processing modules to cooperate, and improving the efficiency of the information processing flow.
[0129] Figure 8 FIG. 4 is a schematic diagram showing the hardware structure of a computer device according to an embodiment.
[0130] like Figure 8 As shown, the computer device 800 includes an input device 801 , an input interface 802 , a processor 803 , a memory 804 , an output interface 805 , and an output device 806 .
[0131] The input interface 802, the processor 803, the memory 804, and the output interface 805 are interconnected via the bus 810, and the input device 801 and the output device 806 are connected to the bus 810 via the input interface 802 and the output interface 805, respectively, and are further connected to other components of the computer device 800. Specifically, the input device 801 receives input information from the outside, and transmits the input information to the processor 803 via the input interface 802; the processor 803 processes the input information based on the computer executable instructions stored in the memory 804 to generate output information, temporarily or permanently stores the output information in the memory 804, and then transmits the output information to the output device 806 via the output interface 805; the output device 806 outputs the output information to the outside of the computer device 800 for use by the user.
[0132] In one embodiment, Figure 8 The computer device 800 shown may be implemented as an information processing device, which may include: a memory configured to store a program; and a processor configured to run the program stored in the memory to execute the information processing method described in the above embodiment.
[0133] In one embodiment, the memory can also be used to store message traffic and combine the above Figures 1 to 7 Describes the computational results of each step in the information processing process.
[0134] According to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer-readable storage medium. For example, an embodiment of the present application includes a computer-readable storage medium, which includes storing a program or instruction on the computer-readable storage medium, and when the program or instruction is executed by a computer device, the computer device performs the steps of the above method.
[0135] According to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program tangibly included on a machine-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network, and / or installed from a removable storage medium.
[0136] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions, and when it is run on a computer, the computer executes the method described in each of the above embodiments. When loading and executing the computer program instructions on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that includes one or more available media integrated. The available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid-state drives), etc.
[0137] The device embodiments described above are merely illustrative, wherein 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, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. An information processing method, applied to a server, wherein the server includes a service arrangement layer and a media processing layer, including: The service orchestration layer receives service call information sent by the user end, wherein the service call information includes target identity identification information of the user end and media information to be processed, wherein the media information to be processed includes at least one of the following information: offline media files and online media streams; According to the preset association relationship between the identity identification information and the task template, a plurality of target task templates associated with the target identity identification information are obtained from the media processing layer; The service orchestration layer generates a task orchestration workflow based on the predecessor and successor event relationship of the multiple target task templates; The service orchestration layer calls the multiple target task templates to process the media information according to the task orchestration workflow to obtain service processing result information; The service orchestration layer is used for the standardized definition of the workflow description language of the media processing orchestration engine; the media processing layer is used for the standardized definition of media processing tasks and media processing processes; The media processing layer includes multiple service modules, each service module corresponds to a service, and each service module includes a task template, and the task template is used to define rule information for processing media information; the task template includes a screenshot template, a recording template, a transcoding template, and an AI template.
2. The method according to claim 1, wherein: Before acquiring a plurality of target task templates associated with the target identity identification information, the method further includes: Receiving a registration request sent by a user terminal, wherein the registration request includes identity identification information of the user terminal; Based on the registration request, sending a plurality of task templates to the user terminal, wherein the task templates are used to define rule information for processing media information; Upon receiving an association request sent by the user terminal, where the association request includes a task template selected from the multiple task templates, determining the selected task template as a target task template; The identity identification information of the user terminal is associated with the target task template.
3. The method according to claim 2, wherein: The association request also includes configuration information of the selected task template; and determining the selected task template as the target task template includes: Based on the configuration information, adjusting the selected task template to obtain an adjusted task template; The adjusted task template is determined as the target task template.
4. The method according to claim 1, wherein: Before acquiring a plurality of target task templates associated with the target identity identification information, the method further includes: Receiving a registration request sent by a user terminal, wherein the registration request includes identity identification information of the user terminal; Based on the identity information of the user terminal, obtaining the service type of the user terminal; The identity information of the user terminal is associated with a task template corresponding to the service type of the user terminal.
5. The method according to claim 4, wherein: Before associating the identity information of the user terminal with the task template corresponding to the service type of the user terminal, the method further includes: Based on the task template corresponding to the service type, sending prompt information to the user terminal, the prompt information is used to prompt the user whether to configure the task template corresponding to the service type; In case of receiving the configuration instruction sent by the user terminal, adjusting the task template corresponding to the service type based on the configuration instruction to obtain an adjusted task template; The adjusted task template is determined as a task template corresponding to the service type of the user terminal.
6. The method according to claim 1, wherein: The generating of a task arrangement workflow based on the predecessor and successor event relationship of the plurality of target task templates includes: Based on the content attribute of each target task template in the plurality of target task templates, obtaining a predecessor and successor event relationship for processing media information between every two target task templates; A task scheduling workflow is generated according to the order of the predecessor and successor event relationship of processing media information between each two target task templates.
7. The method according to claim 1, wherein: The step of arranging the workflow according to the task, calling the plurality of target task templates to process the media information, and obtaining service processing result information includes: According to the task arrangement workflow, calling the current target task module in the multiple target task templates to process the media information, and obtaining current service processing result information; Input the current service processing result information into the next target task module as the media information to be processed by the next target task module; The service processing result information is generated based on the processing result output by the next target task module.
8. The method according to claim 7, wherein: The step of inputting the current service processing result information as media information to be processed by the next target task module into the next target task module comprises: Determine the next target task module after the current target task template through the task arrangement workflow; Through the task callback of the task arrangement workflow, the current service processing result information output by the current target task template is input into the next target task module.
9. An information processing device, comprising: A receiving module, configured to enable the service orchestration layer to receive service call information sent by a user terminal, wherein the service call information includes target identity identification information of the user terminal and media information to be processed; An acquisition module, used for acquiring a plurality of target task templates associated with the target identity identification information from the media processing layer according to a preset association relationship between the identity identification information and the task template; A generation module, configured to enable the service orchestration layer to generate a task orchestration workflow based on the predecessor and successor event relationships of the plurality of target task templates; A calling module, configured to enable the service orchestration layer to call the multiple target task templates to process the media information according to the task orchestration workflow, and obtain service processing result information; The service end includes the service orchestration layer and the media processing layer, and the service orchestration layer is used for the standardized definition of the workflow description language of the media processing orchestration engine; The media processing layer is used for standardized definition of media processing tasks and media processing flows; The media processing layer includes multiple service modules, each service module corresponds to a service, and each service module includes a task template, and the task template is used to define rule information for processing media information; the task template includes a screenshot template, a recording template, a transcoding template, and an AI template.
10. A computer device comprising: Memory and processor, The memory is used to store a computer program; The processor is used to execute the computer program stored in the memory, and when the computer program is run, the processor executes the steps of the information processing method according to any one of claims 1 to 8.
11. A computer-readable storage medium storing a program or instruction, wherein when the program or instruction is executed by a computer device, the computer device executes the steps of the information processing method according to any one of claims 1 to 8.
12. A computer program product, comprising a computer program, which enables a computer device to execute the steps of the information processing method described in any one of 1 to 8 when the computer program is executed by the computer device.
