# US 2017/0289558 A1 · Method and device for allocating a transcoding task

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0289558 A1
- Document ID: US20170289558A1
- Status: Published application
- Kind: A1
- Application number: 15/246,330
- Filed: 2016-08-24
- Published: 2017-10-05
- Earliest claimed: 2016-03-31
- Assignees: Le Holdings (Beijing) Co., Ltd.; Le Cloud Computing Co., Ltd.
- Applicants: Le Holdings (Beijing) Co., Ltd.; Le Cloud Computing Co., Ltd
- Inventors: Maosheng Bai; Chao Lv; Hai Qi; Wei Wei
- Web page: https://patentgrep.com/patent/US20170289558A1

## CPC

- H04N 19/40: using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
- G06F 9/5083: {Techniques for rebalancing the load in a distributed system}
- H04N 21/2343: involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements {(video transcoding H04N19/40; media packet handling at the source H04L65/762)}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The disclosure discloses a method and device for allocating a transcoding task, the method including: obtaining the transcoding task to be allocated; determining the number of standard processing units to be occupied by the transcoding task to be allocated; obtaining current load states of respective transcoders; selecting a target transcoder according to the number of standard processing units to be occupied for the transcoding task to be allocated, and the current load states of the respective transcoders so that the load state of the target transcoder to which the transcoding task to be allocated has been added is still in a normal state; allocating the transcoding task to be allocated, to the target transcoder; and updating the current load state of the target transcoder.

## Claims

### Claim at position 1

1-12. (canceled)

### Claim 13

A method for allocating a transcoding task, the method comprising:
obtaining the transcoding task to be allocated;
determining the number of standard processing units to be occupied by the transcoding task to be allocated;
obtaining current load states of respective transcoders, wherein the load state is set to be characterized as an occupancy ratio which is the proportion of the number of standard processing units occupied by transcoding tasks executed by a transcoder among the total number of standard processing units of the corresponding transcoder;
selecting a target transcoder according to the number of standard processing units to be occupied for the transcoding task to be allocated and the current load states of the respective transcoders, wherein the load state of the target transcoder to which the transcoding task to be allocated has been added is still in a normal state;
allocating the transcoding task to be allocated, to the target transcoder; and
updating the current load state of the target transcoder.

### Claim 14 (depends on 13)

The method according to claim 13, wherein the determining the number of standard processing units to be occupied by the transcoding task to be allocated comprises:
obtaining the number of standard processing units to be occupied by a dividing unit in a reference transcoding task at a resolution corresponding to the resolution of the transcoding task to be allocated as a basic number;
calculating the bit rate ratio between the bit rate corresponding to the transcoding task to be allocated, and the bit rate corresponding to the reference transcoding task, and calculating a bit rate weight as a function of the bit rate ratio;
calculating the frame rate ratio between the frame rate corresponding to the transcoding task to be allocated, and the frame rate corresponding to the reference transcoding task, and calculating a frame rate weight as a function of the frame rate ratio; and
calculating the number of standard processing units to be occupied by the transcoding task to be allocated as a function of the basic number, the number of dividing units in the transcoding task to be allocated, the bit rate weight, and the frame rate weight.

### Claim 15 (depends on 14)

The method according to claim 14, wherein the obtaining the number of standard processing units to be occupied by the dividing unit in the reference transcoding task at a resolution corresponding to the resolution of the transcoding task to be allocated as the basic number comprises:
determining the number of standard processing units to be occupied by the dividing unit in the reference transcoding task at the corresponding resolution by searching a reference table reflecting correspondence relationships between dividing units of reference transcoding tasks at respective resolutions, and the numbers of standard processing units to be occupied.

### Claim 16 (depends on 14)

The method according to claim 14, wherein the calculating the frame rate weight as a function of the frame rate ratio comprises:
calculating the frame rate weight equal to the frame rate ratio.

### Claim 17 (depends on 14)

The method according to claim 14, wherein the dividing unit is a macro block.

### Claim 18 (depends on 13)

The method according to claim 13, wherein the selecting the target transcoder comprises:
selecting the target transcoder under such a low occupancy principle that a transcoder with lowest current load state is selected as the target transcoder, or a transcoder, to which the transcoding task to be allocated has been added, with the lowest load state is selected as the target transcoder.

### Claim 19

An electronic device, comprising:
at least one processor; and
a memory communicably connected with the at least one processor for storing instructions executable by the at least one processor, wherein execution of the instructions by the at least one processor causes the at least one processor to:
obtain the transcoding task to be allocated;
determine the number of standard processing units to be occupied by the transcoding task to be allocated;
obtain current load states of respective transcoders, wherein the load state is set to be characterized as an occupancy ratio which is the proportion of the number of standard processing units occupied by transcoding tasks executed by a transcoder among the total number of standard processing units of the corresponding transcoder;
select a target transcoder according to the number of standard processing units to be occupied for the transcoding task to be allocated and the current load states of the respective transcoders, wherein the load state of the target transcoder to which the transcoding task to be allocated has been added is still in a normal state;
allocate the transcoding task to be allocated, to the target transcoder; and
update the current load state of the target transcoder.

### Claim 20 (depends on 19)

The electronic device according to claim 19, wherein the determine the number of standard processing units to be occupied by the transcoding task to be allocated comprises:
obtain the number of standard processing units to be occupied by a dividing unit in a reference transcoding task at a resolution corresponding to the resolution of the transcoding task to be allocated as a basic number;
calculate the bit rate ratio between the bit rate corresponding to the transcoding task to be allocated, and the bit rate corresponding to the reference transcoding task, and calculate a bit rate weight as a function of the bit rate ratio;
calculate the frame rate ratio between the frame rate corresponding to the transcoding task to be allocated, and the frame rate corresponding to the reference transcoding task, and calculate a frame rate weight as a function of the frame rate ratio; and
calculate the number of standard processing units to be occupied by the transcoding task to be allocated, as a function of the basic number, the number of dividing units in the transcoding task to be allocated, the bit rate weight, and the frame rate weight.

### Claim 21 (depends on 20)

The electronic device according to claim 20, wherein the obtain the number of standard processing units to be occupied by a dividing unit in a reference transcoding task at a resolution corresponding to the resolution of the transcoding task to be allocated as a basic number comprises:
determine the number of standard processing units to be occupied by the dividing unit in the reference transcoding task at the corresponding resolution by searching a reference table reflecting correspondence relationships between dividing units of reference transcoding tasks at respective resolutions, and the numbers of standard processing units to be occupied.

### Claim 22 (depends on 20)

The electronic device according to claim 20, wherein execution of the instructions by the at least one processor further causes the at least one processor to: calculate the frame rate weight equal to the frame rate ratio.

### Claim 23 (depends on 19)

The electronic device according to claim 19, wherein execution of the instructions by the at least one processor further causes the at least one processor to:
select the target transcoder under such a low occupancy principle that a transcoder with lowest current load state is selected as the target transcoder, or a transcoder, to which the transcoding task to be allocated has been added, with the lowest load state is selected as the target transcoder.

### Claim 24

A non-transitory computer-readable storage medium storing executable instructions that, when executed by an electronic device with a touch-sensitive display, cause the electronic device to:
obtain the transcoding task to be allocated;
determine the number of standard processing units to be occupied by the transcoding task to be allocated;
obtain current load states of respective transcoders, wherein the load state is set to be characterized as an occupancy ratio which is the proportion of the number of standard processing units occupied by transcoding tasks executed by a transcoder among the total number of standard processing units of the corresponding transcoder;
select a target transcoder according to the number of standard processing units to be occupied for the transcoding task to be allocated and the current load states of the respective transcoders, wherein the load state of the target transcoder to which the transcoding task to be allocated has been added is still in a normal state;
allocate the transcoding task to be allocated, to the target transcoder; and
update the current load state of the target transcoder.

### Claim 25 (depends on 24)

The non-transitory computer-readable storage medium according to claim 24, wherein the determine the number of standard processing units to be occupied by the transcoding task to be allocated comprises:
obtain the number of standard processing units to be occupied by a dividing unit in a reference transcoding task at a resolution corresponding to the resolution of the transcoding task to be allocated as a basic number;
calculate the bit rate ratio between the bit rate corresponding to the transcoding task to be allocated, and the bit rate corresponding to the reference transcoding task, and calculate a bit rate weight as a function of the bit rate ratio;
calculate the frame rate ratio between the frame rate corresponding to the transcoding task to be allocated, and the frame rate corresponding to the reference transcoding task, and calculate a frame rate weight as a function of the frame rate ratio; and
calculate the number of standard processing units to be occupied by the transcoding task to be allocated, as a function of the basic number, the number of dividing units in the transcoding task to be allocated, the bit rate weight, and the frame rate weight.

### Claim 26 (depends on 25)

The non-transitory computer-readable storage medium according to claim 25, wherein the obtain the number of standard processing units to be occupied by a dividing unit in a reference transcoding task at a resolution corresponding to the resolution of the transcoding task to be allocated as a basic number comprises:
determine the number of standard processing units to be occupied by the dividing unit in the reference transcoding task at the corresponding resolution by searching a reference table reflecting correspondence relationships between dividing units of reference transcoding tasks at respective resolutions, and the numbers of standard processing units to be occupied.

### Claim 27 (depends on 25)

The non-transitory computer-readable storage medium according to claim 25, further cause the electronic device to:
calculate the frame rate weight equal to the frame rate ratio.

### Claim 28 (depends on 24)

The non-transitory computer-readable storage medium according to claim 24, further cause the electronic device to:
select the target transcoder under such a low occupancy principle that a transcoder with lowest current load state is selected as the target transcoder, or a transcoder, to which the transcoding task to be allocated has been added, with the lowest load state is selected as the target transcoder.
