Method, apparatus and computer program for scheduling workflows on a cloud platform

The method of scheduling NBMP workflows on cloud platforms addresses the lack of scheduling capabilities in the NBMP standard by dividing workflows into tasks and applying sequence, duration, event, or time slot-based scheduling, improving resource utilization and traffic management.

JP7547631B2Active Publication Date: 2024-09-09TENCENT AMERICA LLC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023523086
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-03-23
Filing Date
2022-04-13
Publication Date
2024-09-09
Estimated Expiration
2042-04-13

AI Technical Summary

Technical Problem

The Network Based Media Processing (NBMP) standard does not provide for scheduling workflows or portions thereof on cloud platforms, leading to inefficiencies in resource allocation and peak traffic management.

Method used

A method and apparatus for scheduling network-based media processing workflows on a cloud platform by obtaining an input workflow, dividing it into tasks, and scheduling these tasks based on a schedule descriptor that includes information on sequence, duration, events, or time slots, allowing for efficient resource utilization and traffic management.

Benefits of technology

Enables efficient scheduling of media processing tasks on cloud platforms, optimizing resource allocation and reducing peak traffic times, thereby enhancing the performance and flexibility of media processing workflows.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007547631000006
    Figure 0007547631000006
  • Figure 0007547631000007
    Figure 0007547631000007
  • Figure 0007547631000008
    Figure 0007547631000008
Patent Text Reader

Abstract

A method for scheduling a network-based media processing (NBMP) workflow on a cloud platform is provided, the method including: obtaining an input workflow including an input media stream, generating a modified workflow by dividing the input media stream into one or more tasks, scheduling the one or more tasks on the cloud platform based on a schedule descriptor including schedule type information, and processing the modified workflow based on the scheduling of the one or more tasks.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application is based on and claims priority to U.S. Provisional Patent Application No. 63 / 218,815, filed July 6, 2021, the disclosure of which is incorporated herein by reference in its entirety.

[0002] SUMMARY OF THE DISCLOSURE Embodiments of the present disclosure relate to an apparatus and method for scheduling a Network Based Media Processing (NBMP) workflow or a portion of the workflow on a cloud platform. [Background technology]

[0003] Networks and cloud platforms may be used to execute various applications. The Network-Based Media Processing (NBMP) standard provides specifications for defining, instantiating, and executing workflows on cloud platforms. In some cases, workflows may be executed in parts, task by task, or groups of tasks at a time. In such cases, real-time processing of the workflow is not required, and the workflow may need to be scheduled in consideration of limited computational resources allocated to the workflow or to avoid peak traffic times on the cloud. However, current functionality of the NBMP standard does not provide for scheduling a workflow or a part thereof on a cloud platform. One or more example embodiments of the present disclosure may solve this problem and provide a way to schedule a workflow or a part thereof on a cloud platform. Summary of the Invention

[0004] One or more example embodiments of the present disclosure provide a method and apparatus for scheduling a workflow or a portion of the workflow on a cloud platform.

[0005] According to one aspect of the present disclosure, a method for scheduling a network-based media processing (NBMP) workflow on a cloud platform is provided, the method including the steps of obtaining an input workflow including an input media stream, generating a modified workflow by splitting the input media stream into one or more tasks, scheduling the one or more tasks on the cloud platform based on a schedule descriptor including schedule type information, and processing the modified workflow based on the scheduling of the one or more tasks.

[0006] According to another aspect of the present disclosure, an apparatus for scheduling a network-based media processing (NBMP) workflow on a cloud platform is provided, the apparatus including at least one memory configured to store program code; and at least one processor configured to read the program code and operate as instructed by the program code, the program code including: an acquisition code configured to cause the at least one processor to acquire an input workflow including an input media stream; a generation code configured to cause the at least one processor to generate a modified workflow by splitting the input media stream into one or more tasks; a scheduling code configured to cause the at least one processor to schedule the one or more tasks on the cloud platform based on a schedule descriptor, the schedule descriptor including schedule type information; and a processing code configured to cause the at least one processor to process the modified workflow based on the scheduling of the one or more tasks.

[0007] According to another aspect of the present disclosure, a non-transitory computer-readable medium having stored thereon instructions that, when executed by at least one processor of an apparatus for scheduling a network-based media processing (NBMP) workflow on a cloud platform, cause the at least one processor to obtain an input workflow including an input media stream, generate a modified workflow by splitting the input media stream into one or more tasks, schedule the one or more tasks on the cloud platform based on a schedule descriptor including schedule type information, and process the modified workflow based on the scheduling of the one or more tasks.

[0008] Additional aspects will be set forth in part in the description that follows, and in part will be apparent from the description, or may be realized by practice of illustrative embodiments of the present disclosure. [Brief description of the drawings]

[0009] The above and other aspects, features and embodiments of the present disclosure will become more apparent from the following description taken in conjunction with the accompanying drawings, in which: [Figure 1] 1 is a schematic diagram of a communication system according to one or more embodiments. [Diagram 2] 1 is a simplified illustration of a streaming environment in accordance with one or more embodiments. [Diagram 3] FIG. 1 is a block diagram of an NBMP system according to one or more embodiments. [Figure 4] FIG. 1 is an illustration of an NBMP splitter and merge process according to one or more embodiments. [Diagram 5] FIG. 1 is a block diagram of an example process for scheduling a network-based media processing (NBMP) workflow, or a portion thereof, on a cloud platform, in accordance with one or more embodiments. [Figure 6]FIG. 1 is a block diagram of an example of computer code for scheduling a network-based media processing (NBMP) workflow, or a portion thereof, on a cloud platform, in accordance with one or more embodiments. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] SUMMARY OF THE DISCLOSURE Embodiments of the present disclosure relate to methods and apparatus for signaling changes in a network-based media processing (NBMP) workflow, and in particular to an apparatus and method for performing step-based processing in media processing on a cloud platform.

[0011] The embodiments of the present disclosure are exemplary in nature and will be comprehensively described with reference to the accompanying drawings. However, the implementation examples can be implemented in various forms, and the present disclosure should not be construed as being limited to the examples described herein. On the contrary, the implementation examples are provided to make the technical solutions of the present disclosure more comprehensive and complete, and to comprehensively convey the ideas of the implementation examples to those skilled in the art. The accompanying drawings are merely illustrative of the present disclosure, and are not necessarily drawn to scale. The same reference numerals in the accompanying drawings represent the same or similar components, and therefore repeated description of those components will be omitted.

[0012] The proposed features described below may be used separately or combined in any order. Some block diagrams shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically separate entities. Also, the embodiments may be implemented in the form of hardware, which may include processing circuits (e.g., one or more processors or one or more integrated circuits) or microcontroller devices, in the form of software, in different networks and / or processor devices, or by a combination of hardware and software components. In one example, one or more processors execute computer program code stored on one or more non-transitory computer-readable media.

[0013] Figure 1 is a diagram of an environment 100 in which the methods, devices, and systems described herein may be implemented, according to an embodiment. As shown in Figure 1, environment 100 may include a user device 110, a platform 120, and a network 130. The devices of environment 100 may be interconnected via wired connections, wireless connections, or a combination of wired and wireless connections.

[0014] User device 110 may include one or more devices that can receive, generate, store, process, and / or provide information related to platform 120. For example, user device 110 may include a computing device (e.g., a desktop computer, a laptop computer, a tablet computer, a handheld computer, a smart speaker, a server, etc.), a mobile phone (e.g., a smartphone, a wireless phone, etc.), a wearable device (e.g., a pair of smart glasses or a smart watch), or a similar device. In some implementations, user device 110 may receive information from platform 120 and / or transmit information to platform 120.

[0015] Platform 120 may include one or more devices as described elsewhere herein. In some implementations, platform 120 may include a cloud server or a collection of cloud servers. In some implementations, platform 120 may be designed to be modular such that software components may be swapped in or out depending on particular needs. As such, platform 120 may be easily and / or quickly reconfigured for different uses.

[0016] In some implementations, as shown, platform 120 may be hosted within a cloud computing environment 122. In particular, although the implementations described herein describe platform 120 as being hosted within a cloud computing environment 122, in some implementations platform 120 may not be cloud-based (i.e., may be implemented outside of a cloud computing environment) or may be partially cloud-based.

[0017] Cloud computing environment 122 may include an environment that hosts platform 120. Cloud computing environment 122 may provide services, such as computing, software, data access, storage, etc., that do not require end-user (e.g., user device 110) knowledge of the physical location and configuration of the systems and / or devices that host platform 120. As shown, cloud computing environment 122 may include a collection of computing resources 124 (collectively referred to as “computing resources 124” and individually referred to as “computing resource 124”).

[0018] Computational resources 124 may include one or more personal computers, workstation computers, server devices, or other types of computing and / or communication devices. In some implementations, computational resources 124 may host platform 120. Cloud resources may include computational instances running on computational resources 124, storage devices provided within computational resources 124, data transfer devices provided by computational resources 124, etc. In some implementations, computational resources 124 may communicate with other computational resources 124 via wired connections, wireless connections, or a combination of wired and wireless connections.

[0019] 1, the computational resources 124 may include a collection of cloud resources, such as, for example, one or more applications (“APP”) 124-1, one or more virtual machines (“VM”) 124-2, virtualized storage (“VS”) 124-3, one or more hypervisors (“HYP”) 124-4, or the like. However, this disclosure is not so limited, and thus, according to other example embodiments, the computational resources 124 may include other types of cloud resources.

[0020] Application 124-1 may include one or more software applications that may be provided to or accessed by user device 110 and / or platform 120. Application 124-1 may eliminate the need to install and run a software application on user device 110. For example, application 124-1 may include software associated with platform 120 and / or any other software that may be provided via cloud computing environment 122. In some implementations, one application 124-1 may send / receive information to / from one or more other applications 124-1 via virtual machine 124-2.

[0021] Virtual machine 124-2 may include a software implementation of a machine (e.g., a computer) that executes programs like a physical machine. Virtual machine 124-2 may be either a system virtual machine or a process virtual machine, depending on the extent to which virtual machine 124-2 corresponds to any real machine and the intended use. A system virtual machine may provide a complete system platform that supports the execution of a complete operating system ("OS"). A process virtual machine may execute a single program and support a single process. In some implementations, virtual machine 124-2 may execute on behalf of a user (e.g., user device 110) and manage the infrastructure of cloud computing environment 122, such as data management, synchronization, or long-term data transfer.

[0022] Virtualized storage 124-3 may include one or more storage systems and / or one or more devices that use virtualization techniques among the storage systems or devices of the computing resources 124. In some implementations, within the context of a storage system, types of virtualization may include block virtualization and file virtualization. Block virtualization may refer to the abstraction (or separation) of logical storage from physical storage, allowing the storage system to be accessed without regard to the physical storage or heterogeneity. This separation may allow administrators of storage systems flexibility in how they manage storage for end users. File virtualization may eliminate the dependency between data accessed at the file level and where the file is physically stored. This may enable optimization of storage usage, server consolidation, and / or performing uninterrupted file movement.

[0023] The hypervisor 124-4 may provide hardware virtualization technology that allows multiple operating systems (e.g., "guest operating systems") to run simultaneously on a host computer, such as the computing resource 124. The hypervisor 124-4 may present a virtual operating platform to the guest operating systems and may manage the execution of the guest operating systems. Multiple instances of various operating systems may share virtualized hardware resources.

[0024] Network 130 may include one or more wired and / or wireless networks. For example, network 130 may include a cellular network (e.g., a fifth generation (5G) network, a long term evolution (LTE) network, a third generation (3G) network, a code division multiple access (CDMA) network, etc.), a public land mobile network (PLMN), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), a telephone network (e.g., a public switched telephone network (PSTN)), a private network, an ad-hoc network, an intranet, the Internet, an optical fiber-based network, or the like, and / or a combination of these or other types of networks.

[0025] The number and configuration of devices and networks shown in Figure 1 are provided as an example. In practice, there may be additional devices and / or networks, fewer devices and / or networks, different devices and / or networks, or different configurations of devices and / or networks than those shown in Figure 1. Also, two or more devices shown in Figure 1 may be implemented within a single device, or a single device shown in Figure 1 may be implemented as multiple distributed devices. Additionally, or instead, a set of devices (e.g., one or more devices) of environment 100 may perform one or more functions described as being performed by another set of devices of environment 100.

[0026] Figure 2 is a block diagram of example components of one or more devices of Figure 1. Device 200 may correspond to user device 110 and / or platform 120. As shown in Figure 2, device 200 may include a bus 210, a processor 220, a memory 230, a storage component 240, an input component 250, an output component 260, and a communication interface 270.

[0027] The bus 210 includes components that enable communication between the components of the device 200. The processor 220 may be implemented in hardware, firmware, or a combination of hardware and software. The processor 220 may be a central processing unit (CPU), a graphics processing unit (GPU), an accelerated processing unit (APU), a microprocessor, a microcontroller, a digital signal processor (DSP), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or other type of processing component. In some implementations, the processor 220 may include one or more processors that can be programmed to perform functions. The memory 230 may include random access memory (RAM), read only memory (ROM), and / or other types of dynamic or static storage devices (e.g., flash memory, magnetic memory, and / or optical memory) that store information and / or instructions for use by the processor 220.

[0028] Storage component 240 stores information and / or software related to the operation and use of device 200. For example, storage component 240 may include hard disks (e.g., magnetic disks, optical disks, magneto-optical disks, and / or solid state disks), compact disks (CDs), digital versatile disks (DVDs), floppy disks, cartridges, magnetic tapes, and / or other types of non-transitory computer-readable media along with corresponding drives.

[0029] Input components 250 may include components that enable device 200 to receive information, such as via user input (e.g., a touch screen display, a keyboard, a keypad, a mouse, buttons, switches, and / or a microphone). Additionally or alternatively, input components 250 may include sensors that sense information (e.g., a global positioning system (GPS) component, an accelerometer, a gyroscope, and / or an actuator). Output components 260 include components that provide output information from device 200 (e.g., a display, a speaker, and / or one or more light emitting diodes (LEDs)).

[0030] Communications interface 270 may include transceiver-like components (e.g., a transceiver and / or separate receivers and transmitters) that enable device 200 to communicate with other devices, such as via a wired connection, a wireless connection, or a combination of wired and wireless connections. Communications interface 270 may enable device 200 to receive information from and / or provide information to other devices. For example, communications interface 270 may include an Ethernet interface, an optical interface, a coaxial interface, an infrared interface, a radio frequency (RF) interface, a universal serial bus (USB) interface, a Wi-Fi interface, a cellular network interface, or the like.

[0031] The device 200 may perform one or more of the processes described herein in response to the processor 220 executing software instructions stored by a non-transitory computer-readable medium, such as the memory 230 and / or the storage component 240. A computer-readable medium is defined herein as a non-transitory memory device. A memory device may include storage space within a single physical storage device or may include storage space spread across multiple physical storage devices.

[0032] Software instructions may be loaded into memory 230 and / or storage component 240 from other computer-readable media or from other devices via communication interface 270. The software instructions stored in memory 230 and / or storage component 240, when executed, may cause processor 220 to perform one or more processes described herein. Additionally, or alternatively, hardwired circuitry may be used in place of or in combination with software instructions to perform one or more processes described herein. Thus, implementations described herein are not limited to any specific combination of hardware circuitry and software.

[0033] The number and arrangement of components shown in Figure 2 are provided as an example. In practice, device 200 may include additional, fewer, different, or different arrangements of components than those shown in Figure 2. Additionally or alternatively, a set of components (e.g., one or more components) of device 200 may perform one or more functions described as being performed by another set of components of device 200.

[0034] In one embodiment of the present disclosure, a network-based media processing (NBMP) system is provided. FIG. 3 illustrates an NBMP architecture 300 according to an embodiment herein, which may be implemented for cloud processing. The NBMP system 300 includes an NBMP source 310, an NBMP workflow manager 320, a function repository 330, one or more media processing entities (MPEs) 340, a media source 350, and a media sink 360. The NBMP source 310, the NBMP workflow manager 320, the function repository 330, the MPE 340, the media source 350, and the media sink 360 may include or be implemented by at least one or more processors and a memory having stored therein code for causing the at least one or more processors to perform functions of the NBMP source 310, the NBMP workflow manager 320, the function repository 330, the MPE 340, the media source 350, and the media sink 360, respectively.

[0035] The NBMP source 310 may communicate workflow descriptions with the NBMP workflow manager 320 via the NBMP workflow API 311. The NBMP source 310 may also communicate feature descriptions with the feature repository 330 via the feature discovery API 313. For example, the NBMP source 310 may send a workflow description document (WDD) (one or more) to the NBMP workflow manager 320 and may read feature descriptions of features stored in the feature repository 330, such as media processing features stored in the memory of the feature repository 330, such as media decoding, feature point extraction, camera parameter extraction, projection method, seam information extraction, blending, post-processing, and encoding features. The NBMP workflow manager 320 may communicate with the feature repository 330 via a feature discovery API 312, which may be the same as or different from the feature discovery API 313, and may communicate with one or more of the MPEs 340 via an API 314 (e.g., an MPE API).

[0036] The media processing entity (MPE) 340 may include one or more tasks 341. The NBMP workflow manager 320 may also communicate with the tasks 341 via an API 315 (e.g., an NBMP task API). The NBMP workflow manager 320 may use the API 315 to set up, configure, manage, and monitor one or more tasks 341 of a workflow that may be executed by one or more MPEs 340. To configure, manage, and monitor the tasks 341 of a workflow, the NBMP workflow manager 320 may send messages, e.g., requests, to the MPEs 340 and / or one or more of the tasks 341, where each message may have several descriptors, each of which has several parameters. Additionally, the communication between the NBMP source 310, the NBMP workflow manager 320, the capability repository 330, and the MPEs 340 may be considered a control flow.

[0037] Each task 341 may include media processing functions 343 and configurations 342 for those media processing functions 343. Each task 341 in each media processing entity 340 may also communicate with each other to facilitate data flow between tasks. In one embodiment, the NBMP workflow manager 320 may select a task based on the task's description in the WDD and search the capability repository 330 via the capability discovery API 312 to find an appropriate function to perform as the task 341 for the current workflow. The one or more MPEs 340 may be configured to receive media content from a media source 350, process the media content according to a workflow including the tasks 341 created by the NBMP workflow manager 320, and output the processed media content to a media sink 360. In one embodiment, the one or more MPEs 340 may be provided in parallel for multiple media flows 316 and 317 between the media source 350 and the media sink 360, respectively.

[0038] The media source 350 may include memory for storing media and may be integrated with or separate from the NBMP source 310. In one embodiment, the NBMP workflow manager 320 may notify the NBMP source 310 when a workflow is prepared, and the media source 350 may send media content to the one or more MPEs 340 based on the notification that a workflow is prepared, which may send the media content to the one or more MPEs 340. The communication between the media source 350, the MPE 340, and the media sink 360 may be considered a data flow.

[0039] 4 illustrates an example of NBMP splitting and merging multiple segments of a media stream 440 of a task T for parallel processing, according to one embodiment of the present disclosure. As shown in FIG. 4, an NBMP splitter and merger process 400 includes a splitter 420 and a merger 430. In FIG. 4, an input media stream of a task T is split into n instances of the task T (i.e., T0, ..., T N-1 ), with these n instances running in parallel. The input media stream 410 may be continuous. A splitter 420 converts the media stream into N media sub-streams. Each sub-stream is processed by an instance of T. A merger 430 then interleaves these sub-streams together to produce an output 450, which corresponds to the output stream of task T (i.e., media stream 440).

[0040] The 1:N splitter 420 and N:1 merger 430 functions as shown in FIG. 4 operate on segment boundaries. Each segment has start, duration, and length metadata associated with it. The segments are independent, and as a result, the substreams are independent of each other with respect to being processed by task T. In an embodiment, tasks T0, ..., T N-1are instances of a task T, which may process the segments simultaneously or separately. Since the segments and the substreams are independent, each instance of a task T (i.e., T0, ..., T N-1 ) can run at its own speed.

[0041] According to one embodiment, a method for scheduling the execution of a workflow or a portion thereof may be provided. The method may include scheduling the time to process the entire workflow or scheduling the time to process multiple tasks of the workflow. According to one embodiment, the workflow may be divided into multiple tasks (i.e., sub-processes), and each of the multiple tasks in the workflow may be scheduled using any one (or combination) of the following schemes: order-based, duration-based, event-based, and time slot-based. However, the disclosure is not so limited, and thus other schemes may be provided for scheduling the tasks (i.e., sub-processes) of the workflow.

[0042] According to one embodiment, each of the tasks may be scheduled based on a sequence. In this case, each task is executed or processed once in its entirety, followed by the next task. For example, the method may include scheduling a first task of the tasks to be executed in its entirety, and scheduling a second task of the tasks to be executed after the completion of the first task. That is, each of the tasks is scheduled to be executed (performed) one after the other upon the completion of the preceding task. Although the present embodiment describes executing the second task after the completion of the first task, the present disclosure is not limited thereto. Thus, according to another embodiment, the second task (or the subsequent task) may start before the completion of the first task. In this case, parallel processing of the tasks may be implemented.

[0043] According to one embodiment, each of the tasks may be scheduled based on duration, where each task in a workflow is executed for the duration of the input or output. For example, the method may include scheduling a first task of the tasks to execute for a period of time and scheduling a second task of the tasks to execute for a period of time following execution of the first task for the period of time, where execution of the first task and the second task may correspond to consuming an input media stream or producing an output media stream.

[0044] According to one embodiment, a first task executed for a period of time may consume one minute of an input media stream or create one minute of an output media stream corresponding to a second task. Then, a second task executed for a period of time may consume one minute of an input media stream or create one minute of an output media stream corresponding to the second task. Although one minute is illustrated as an example period of time, the disclosure is not so limited, and thus, according to another embodiment, the period of time may be a different amount of time (e.g., 5 minutes of input or output). Also, according to another embodiment, the period of time scheduled for execution of the first task and the second task may be different. For example, the first task may be scheduled to execute for a first period of time and the second task may be scheduled to execute for a second period of time. According to one embodiment, parallel processing of the first and second tasks may be implemented.

[0045] According to one embodiment, each of the plurality of tasks may be scheduled based on an event, where each task in a workflow is executed at a start event and stopped at a stop event. For example, the method may include scheduling a first task of the plurality of tasks to execute based on the occurrence of a first scene in a movie.

[0046] According to one embodiment, each of the plurality of tasks may be scheduled based on a time slot, where each task in a workflow starts according to a particular scheduled time. For example, the method may include scheduling a first task of the plurality of tasks to run from 2:00 AM to 3:00 AM.

[0047] According to one embodiment, the above schemes can be performed for a group of tasks (or task groups). However, the disclosure is not so limited, and according to one embodiment, some of these schemes can be performed for an entire workflow. For example, an entire workflow can be scheduled on a duration basis, an event basis, or a time slot basis.

[0048] A detailed description of each of the scheduling schemes is provided as follows.

[0049] Order-Based Scheduling According to one embodiment, a workflow manager may have to run or execute each task of a plurality of tasks in an order-based workflow, where the workflow manager may start the execution of a first task of a workflow with an input media stream, generate an output media stream, buffer the output, and then start the next task in a traveling wave fashion toward the output, where the workflow manager may start the execution of the tasks one after the other.

[0050] According to one embodiment, the scheduling of the order of tasks may be performed in one of several ways by any of several components in the NBMP system. According to one embodiment, an NBMP client determines the order of tasks to be performed. According to another embodiment, a workflow manager infers the order. However, the disclosure is not so limited, and thus the order of tasks to be performed may be determined by another component.

[0051] In either of the above cases, the workflow manager needs to reconstruct the workflow by adding buffers / storage for the output of each task. The workflow manager needs to have information about the maximum size of these buffers / storage, or provide the size of each input so that the workflow manager can estimate the size of the buffers / storage.

[0052] According to one embodiment, a 'complete' input can be useful because all tasks that receive a 'true' flag in their 'complete' input will know that their task is complete and can generate an event to the workflow manager that it is time for the next task.

[0053] According to one embodiment, the NBMP client and the NBMP workflow manager may have the following requirements:

[0054] According to one embodiment, the NBMP client may need to define or indicate / specify the scheme mode of scheduling (i.e., one of order, duration, event, and time slot). If the scheme mode is scheduled based on duration, the NBMP client may also optionally define the order of tasks. Additionally, the NBMP client may define the maximum size of storage for each output or the maximum size of inputs in the workflow.

[0055] According to one embodiment, the NBMP workflow manager may have to indicate or signal its capabilities with respect to its scheme mode of scheduling (i.e., one of order, duration, event, and time slot). For example, the NBMP workflow manager may have to indicate whether the NBMP workflow supports its scheme mode of scheduling (i.e., one of order, duration, event, and time slot). If the scheme mode is scheduled based on order, the NBMP workflow must indicate whether it can derive the order and / or whether it can derive the required buffer size from the input size. The NBMP workflow may also have to respond whether it can fulfill a request to execute a task based on the order scheme mode.

[0056] Duration-Based Schedules According to one embodiment, a workflow manager may have to run or execute each task of a plurality of tasks in a workflow based on a duration, where the method may include scheduling a first task of the plurality of tasks to execute in a first time period and scheduling a second task of the plurality of tasks to execute in a second time period following execution of the first task in the time period. According to one embodiment, the first time period and the second time period may be the same. According to another embodiment, the first time period and the second time period may be different. According to one embodiment, the time period may be 5 minutes of the input media stream or the output media stream.

[0057] In this case, the workflow manager may start the execution of a first task of the workflow with the input media stream, generate the output media stream, buffer the output, and then start the next task in a traveling wave manner toward the output. Here, the workflow manager may start the execution of the tasks one after the other. According to one embodiment, the duration scheduled for each task may be based on the input media stream or the output media stream. For example, the first task may be executed until either 5 minutes of the input media stream has been processed or 5 minutes of the output media stream has been generated.

[0058] According to one embodiment, the scheduling of a time period for a task may be performed in one of several ways by any of several components in the NBMP system. According to one embodiment, an NBMP client defines the time period assigned to a task to be performed. According to another embodiment, a workflow manager infers the time period.

[0059] In either of the above cases, the workflow manager needs to reconstruct the workflow by adding buffers / storage for the output of each task. The workflow manager needs to have information about the maximum size of these buffers / storage for that particular period, or provide the size of each input so that the workflow manager can estimate the size of the buffers / storage.

[0060] According to one embodiment, the NBMP client and the NBMP workflow manager may have the following requirements:

[0061] According to one embodiment, the NBMP client may need to define or indicate / specify the scheme mode of scheduling (i.e., one of order, duration, event, and time slot). If the scheme mode is scheduling based on duration, the NBMP client may also define or indicate / specify the duration of the input (i.e., input media stream) or the duration required for the output (i.e., output media stream), the order of tasks if required or provided, the maximum size of storage for each output in the workflow or the maximum size of the input.

[0062] According to one embodiment, the NBMP workflow manager may have to indicate or signal its capabilities regarding its scheme mode of scheduling (i.e., one of order, duration, event, and time slot). For example, the NBMP workflow manager may have to indicate whether the NBMP workflow supports its scheme mode of scheduling (i.e., one of order, duration, event, and time slot). If the scheme mode is scheduled based on duration, the NBMP workflow must indicate whether it can derive the order and / or whether it can derive the required buffer size from the input size. The NBMP workflow must also indicate whether it can derive the duration of the inputs required for the generation of the output(s) for a given period. The NBMP workflow may also have to respond whether it can execute a request to execute a task based on the order scheme mode.

[0063] Event-Based Scheduling According to an embodiment, a workflow manager may have to run or execute each task of a plurality of tasks in a workflow based on an event. Here, the method may include triggering the start and stop of each task based on an event. According to an embodiment, the event may be a particular scene of a movie, i.e. the first scene of the movie, or a particular part of a piece of music. According to an embodiment, the event is issued by the workflow manager. Since every task has a 'running' state, the workflow manager can start the task by changing its state to 'running'. To pause a task, the workflow manager can change its state to 'idle'. Also, since 'idle' does not distinguish between lack of input versus a request by the workflow manager to remain in 'idle', according to an embodiment, a new state, namely a 'paused' state, is provided in which a task can be changed from 'running' to remain in idle even if input is available.

[0064] According to one embodiment, the workflow manager can schedule events based on its own internal logic or can receive events from the NBMP client. In this scheme, the output buffer / storage of each task should also be managed.

[0065] According to one embodiment, event-triggered scheduling of a task can be done in one of several ways by any of several components in the NBMP system. According to one embodiment, if the event is driven by the NBMP client, the NBMP client determines the maximum size of the intermediate buffer / storage. According to another embodiment, if the workflow manager schedules its own events that trigger the start and / or stop of processing a task, the workflow manager infers the size.

[0066] In either of the above cases, the workflow manager may need to reconfigure the workflow by adding buffers / storage for the output of each task. The workflow manager needs to have information about the maximum size of these buffers / storage for that particular period, or provide the size of each input so that the workflow manager can estimate the size of the buffers / storage.

[0067] According to one embodiment, the NBMP client, the NBMP workflow manager, and the NBMP task may have the following requirements:

[0068] According to one embodiment, the NBMP client may need to define or indicate / specify the scheme mode of scheduling (i.e., one of order, duration, event, and time slot). If the scheme mode is scheduled based on events, the NBMP client may also define or indicate / specify whether the event is driven by the NBMP client or by a custom signal for the workflow manager to start its own event scheme. If it is driven by the NBMP client, the NBMP client may also define or indicate / specify the maximum size of storage for each output in the workflow.

[0069] According to one embodiment, the NBMP workflow manager may have to indicate or signal its capabilities with respect to its scheme mode of scheduling (i.e., one of order, duration, event, and time slot). For example, the NBMP workflow manager may have to indicate whether the NBMP workflow supports its scheme mode of scheduling (i.e., one of order, duration, event, and time slot). If the scheme mode is scheduled based on events, the NBMP workflow must indicate whether the NBMP workflow supports workflow-driven events. The NBMP workflow may also have to respond whether the NBMP workflow can execute a request to execute a task based on the order scheme mode.

[0070] According to one embodiment, the NBMP workflow manager may have to have support for a 'paused' state, and support for changing states between 'running' and 'paused' states.

[0071] Time slot based schedule According to one embodiment, the NBMP client can provide a time slot based schedule for each task of the multiple tasks in the workflow, and the workflow manager executes each task according to the assigned time slot, where the time slot can be from 2:00 AM to 3:00 AM for executing the first task of the multiple tasks.

[0072] According to one embodiment, the scheduling of tasks may be performed in one of several ways by any of several components in the NBMP system. According to one embodiment, since intermediate buffers / storage need to be allocated, the NBMP client may define the size of the buffers.

[0073] According to one embodiment, the NBMP client and the NBMP workflow manager may have the following requirements:

[0074] According to one embodiment, the NBMP client may need to define or indicate / specify the scheduling scheme mode (i.e., one of order, duration, event, and time slot). If the scheme mode is scheduled based on time slot, the NBMP client may also define or indicate / specify the scheduling mode for each task. For example, the NBMP client may use an explicit scheduling mode where the schedule has an exact time, or the NBMP client may use an indexed scheduling mode where a start, end, increment, period scheme (such as a for loop) is provided.

[0075] The NBMP client may also define or indicate / specify the maximum size of storage for each output in the workflow as it is driven by the NBMP client.

[0076] According to one embodiment, the NBMP workflow manager may have to indicate or signal its capabilities with respect to its scheme mode of scheduling (i.e., one of order, duration, event, and time slot). For example, the NBMP workflow manager may have to indicate whether the NBMP workflow supports its scheme mode of scheduling (i.e., one of order, duration, event, and time slot). If the scheme mode is scheduled based on time slot, the NBMP workflow must indicate whether the NBMP workflow supports that scheme mode (i.e., explicit scheduling mode or indexed scheduling mode). The NBMP workflow may also have to respond whether the NBMP workflow can execute a request to execute a task based on the order scheme mode.

[0077] In accordance with the above illustrations, the NBMP client, the NBMP workflow manager, and the NBMP task are shown as performing certain operations. However, the present disclosure is not limited to these components performing the novel aspects of the present disclosure. Thus, in accordance with other embodiments, other components (or combinations of components) within the NBMP system may perform the above-described operations of the present disclosure.

[0078] According to an example embodiment, a schedule descriptor may be added to the NBMP standard specification as follows: [Table 1]

[0079] According to one embodiment, the schedule descriptor may indicate parameter names, types, and cardinality. According to one embodiment, the parameter names may include an identifier (id), description, schedule type, order, duration, number of segments, io flags, execution mode, time slots, and status. However, the present disclosure is not limited to the parameters listed in Table 1, and thus, according to another embodiment, additional parameters may be provided to perform scheduling of tasks in a workflow.

[0080] Additionally, according to an example embodiment, a timeslot object within the schedule descriptor of Table 1 may include the following parameters, as illustrated in Table 2: [Table 2]

[0081] Additionally, according to an example embodiment, an explicit object within the timeslot object of Table 2 may include the following parameters, as illustrated in Table 3: [Table 3]

[0082] Further, according to an example embodiment, detailed definitions of the schedule descriptor parameters of the NBMP standard specification may be provided as follows: [Table 4] TIFF0007547631000005.tif86170

[0083] According to one embodiment, the schedule descriptor may be used in the following manner: For example, an NBMP client may include the schedule descriptor in a Workflow Description Document (WDD) update call for any of the following: · Get ​​the capabilities of the workflow manager by including a schedule descriptor in the WDD and 'status' = 'capable'; · Scheduling workflows by including them in the WDD; · Schedule tasks by including schedule descriptors in the Task Description Document (TDD); Schedule a group of tasks by including a schedule descriptor in a task group object; and · Consider scheduling any of the above by requesting 'status' = 'consideration' to ensure that the workflow can manage the schedule if a schedule descriptor is requested.

[0084] However, this disclosure is not limited to the use of the schedule descriptors described above, and therefore, according to other embodiments, the schedule descriptors may be used in other ways by the NBMP system.

[0085] FIG. 5 is a flowchart of an example method 500 for scheduling a network-based media processing (NBMP) workflow on a cloud platform in accordance with one or more embodiments.

[0086] 5 may be performed by platform 120. In some implementations, one or more of the process blocks in FIG. 5 may be performed by a device or devices separate from or including platform 120, such as, for example, user device 110.

[0087] 5, at operation 510, the method 500 includes obtaining a workflow. The workflow may include an input media stream.

[0088] At operation 520, the method 500 includes generating a modified workflow by dividing the input media stream into one or more tasks.

[0089] At operation 530, method 500 includes scheduling the one or more tasks on a cloud platform based on a schedule descriptor, the schedule descriptor including the schedule type information. According to one embodiment, the schedule descriptor includes command information corresponding to the schedule type information, the command information including information for obtaining capabilities of the cloud platform, determining whether the schedule type information in the scheduling request is feasible, and / or providing a response including a result of determining whether the schedule type information in the scheduling request is feasible.

[0090] According to an embodiment, the schedule type information includes one of order information, duration information, event information, or time slot information. According to an embodiment, based on a determination that the schedule type information is order information, each of the one or more tasks is scheduled to be executed in a certain order. According to an embodiment, based on a determination that the schedule type information is duration information, a first task of the one or more tasks is scheduled to be executed in a first time period. According to an embodiment, based on a determination that the schedule type information is event information, a first task of the one or more tasks is scheduled to be executed based on occurrence of an event in the input media stream as a trigger to start or stop execution of the first task. In executing the one or more tasks based on the event information, a new pause state is defined for each of the one or more tasks, and each of the one or more tasks maintains internal state and information while not processing further data in the respective task. According to an embodiment, based on a determination that the schedule type information is time slot information, a first task of the one or more tasks is scheduled to be executed within a designated time slot. The time slot information includes an explicit scheduling mode, where a precise time frame is provided for scheduling, or an indexed scheduling mode, where a start, end, increment, period scheme is provided for scheduling.

[0091] At operation 540, the method 500 includes processing the change workflow based on the scheduling of the one or more tasks.

[0092] Although Figure 5 illustrates example blocks of the method, in some implementations the method may include additional, fewer, different, or differently organized blocks than those illustrated in Figure 5. Additionally or alternatively, two or more of the method blocks may be performed in parallel.

[0093] FIG. 6 is a block diagram of an example of computer code for scheduling a network-based media processing (NBMP) workflow on a cloud platform in accordance with one or more embodiments.

[0094] According to an embodiment of the present disclosure, there may be provided at least one processor having a memory storing computer code, which when executed by the at least one processor may be configured to perform any number of aspects of the present disclosure.

[0095] For example, referring to FIG. 6, computer code 600 may be implemented within the NBMP system 300.

[0096] As shown in FIG. 6, computer code 600 may include an acquisition code 610, a generation code 620, a scheduling code 630, and a processing code 640.

[0097] Acquisition code 610 may include code configured to cause the at least one processor to acquire an input workflow that includes an input media stream.

[0098] Generation code 620 may include code configured to cause the at least one processor to generate a modified workflow by dividing the input media stream into one or more tasks.

[0099] Scheduling code 630 may include code configured to cause the at least one processor to schedule the one or more tasks on a cloud platform based on a schedule descriptor that includes schedule type information.

[0100] Processing code 640 may include code configured to cause the at least one processor to process a change workflow based on the scheduling of the one or more tasks.

[0101] Although Figure 6 illustrates example blocks of computer code 600 for a device or apparatus according to an embodiment, in some implementations the device may include additional, fewer, different, or differently organized blocks than those illustrated in Figure 6. Additionally or alternatively, two or more of the device's blocks may be executed in parallel.

[0102] The techniques for scheduling network-based media processing (NBMP) workflows on a cloud platform described above may be used separately or combined in any order, and each of the methods (or embodiments) may be implemented by processing circuitry (e.g., one or more processors or one or more integrated circuits). In one example, the one or more processors may execute a program stored on a non-transitory computer-readable medium.

[0103] This disclosure provides illustration and description, and is not intended to be exhaustive or to limit the implementations to the precise form disclosed. Modifications and variations are possible in light of the disclosure or may be acquired from practice of the implementations.

[0104] As used herein, the term component is intended to be interpreted broadly as hardware, firmware, or a combination of hardware and software.

[0105] It will be apparent that the systems and / or methods described herein may be implemented in various forms of hardware, firmware, or a combination of hardware and software. The actual specialized control hardware or software code used to implement these systems and / or methods is not intended to be a limitation of the implementation. Thus, the operation and behavior of the systems and / or methods are described herein without reference to specific software code, with the understanding that software and hardware may be designed to implement the systems and / or methods based on the description herein.

[0106] Although combinations of features are recited in the claims and / or disclosed in the specification, these combinations are not intended to limit the disclosure of possible implementations. Indeed, many of the features can be combined in ways not specifically recited in the claims and / or disclosed in the specification. Although each dependent claim listed below may depend directly on only one claim, the disclosure of possible implementations includes each dependent claim in combination with every other claim in the claim set.

[0107] No element, act, or instruction used herein should be construed as critical or essential unless expressly stated as such. Also, as used herein, the articles "a" and "an" are intended to include one or more items and may be used interchangeably with "one or more." Additionally, as used herein, the term "set" is intended to include one or more items (e.g., related items, unrelated items, combinations of related and unrelated items, etc.) and may be used interchangeably with "one or more." When only one item is intended, the term "a" or similar language is used. Also, as used herein, the terms "have," "having," "having," and the like are intended to be open-ended terms. Additionally, the phrase "based on" is intended to mean "based at least in part on" unless expressly stated otherwise.

Claims

1. 1. A processor-executed method for scheduling a network-based media processing (NBMP) workflow on a cloud platform, the method comprising: obtaining an input workflow including an input media stream; generating a modified workflow by dividing the input media stream into one or more tasks; scheduling the one or more tasks on the cloud platform based on a schedule descriptor, the schedule descriptor including schedule type information; processing the change workflow based on the scheduling of the one or more tasks; having the schedule type information includes one of order information, duration information, event information, or time slot information; method.

2. based on a determination that the schedule type information is the order information, scheduling each of the one or more tasks for execution in a certain order; The method of claim 1 further comprising:

3. based on a determination that the schedule type information is the duration information, scheduling a first task of the one or more tasks for execution in a first time period; The method of claim 1 further comprising:

4. based on determining that the schedule type information is the event information, scheduling a first task of the one or more tasks for execution based on occurrence of an event in the input media stream as a trigger for starting or stopping execution of the first task; The method of claim 1 further comprising:

5. 5. The method of claim 4, wherein in executing the one or more tasks based on the event information, a new pause state is defined for each of the one or more tasks, and each of the one or more tasks maintains internal state and information while not processing further data in the respective task.

6. based on determining that the schedule type information is the time slot information, scheduling a first task of the one or more tasks for execution within a designated time slot; The method of claim 1 further comprising:

7. The time slot information further comprises: an explicit scheduling mode in which a precise time frame is provided for the scheduling, or an indexed scheduling mode, where a start, end, increment, period scheme is provided for said scheduling; 7. The method of claim 6, comprising:

8. the schedule descriptor includes command information corresponding to the schedule type information; The command information is Acquiring capabilities of said cloud platform; determining whether the schedule type information in the scheduling request is enabled; or providing a response including a result of determining whether the schedule type information in the scheduling request is feasible. Contains information for The method of claim 1.

9. An apparatus for scheduling a network-based media processing (NBMP) workflow on a cloud platform, the apparatus comprising: one or more processors; one or more memories storing a computer program; having The computer program causes the one or more processors to carry out a method according to any one of claims 1 to 8. Device.

10. A computer program causing a computer to carry out the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Methods, apparatuses and computer readable mediums for network based media processing

    US20210004273A1