# US 2025/0159098 A1 · Video rendering method and apparatus, medium and electronic device

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

- Number: US 2025/0159098 A1
- Document ID: US20250159098A1
- Status: Published application
- Kind: A1
- Application number: 18/942,114
- Filed: 2024-11-08
- Published: 2025-05-15
- Earliest claimed: 2023-11-09
- Assignees: Beijing Youzhuju Network Technology Co., Ltd.
- Applicants: Beijing Youzhuju Network Technology Co., Ltd.
- Inventors: Yongkang CHEN; Tengtai CUI; Xiaotian WANG; Yafeng WANG; Chen SHEN
- Web page: https://patentgrep.com/patent/US20250159098A1

## CPC

- H04N 5/265: Mixing
- H04N 13/30: Image reproducers (optical systems for producing stereoscopic or other three-dimensional [3D] effects G02B30/00)
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 7/194: involving foreground-background segmentation
- G06T 9/00: Image coding (bandwidth or redundancy reduction for static pictures H04N1/41; coding or decoding of static colour picture signals H04N1/64; methods or arrangements for coding, decoding, compressing or decompressing digital video signals H04N19/00)
- G06T 2207/20221: Image fusion; Image merging
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A video rendering method and apparatus, a medium and an electronic device are provided. The method includes: acquiring a target video obtained by encoding corresponding images of a first video as a foreground image and a second video as a background image; decoding the target video by a video player to obtain a decoding result which includes foreground image information and background image information corresponding to a first image in the first video; rendering the foreground image information and the background image information corresponding to the first image by the video player, so that the foreground image obtained by rendering the foreground image information and the background image obtained by rendering the background image information can be superimposed to form a three-dimensional effect.

## Claims

### Claim 1

A video rendering method, comprising:
acquiring a target video, wherein the target video is a video obtained by encoding corresponding images of a first video used as a foreground image and a second video used as a background image;
decoding the target video by a video player to obtain a decoding result, wherein the decoding result comprises foreground image information and background image information corresponding to a first image in the target video, wherein the foreground image information is composed of image information respectively corresponding to a foreground image layer and an alpha channel layer, and the background image information is composed of image information corresponding to a background image layer, and the first image is an image with a three-dimensional effect when rendered; and
rendering the foreground image information corresponding to the first image and rendering the background image information corresponding to the first image by the video player, so that the foreground image obtained by rendering the foreground image information and the background image obtained by rendering the background image information can be superimposed to form a three-dimensional effect.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the rendering the foreground image information corresponding to the first image and rendering the background image information corresponding to the first image by the video player comprises:
merging and rendering image information respectively corresponding to the foreground image layer and the alpha channel layer corresponding to the first image by the video player, and rendering the background image information corresponding to the first image by the video player.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the decoding result further comprises background image information corresponding to a second image in the target video, wherein the second image is an image without a three-dimensional effect when rendered, and
the acquiring a target video comprises:
acquiring the first video and the second video;
encoding target image information corresponding to images belonging to a same time of the first video and the second video to obtain a merged image corresponding to the images, wherein the merged image is the first image or the second image; and
generating the target video according to the merged images corresponding to all the images in the first video and the second video.

### Claim 4 (depends on 3)

The method according to claim 3, further comprising:
in response to the decoding result only comprising the background image information corresponding to the second image, rendering the background image information corresponding to the second image by the video player.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising:
controlling a second video player to play the second video used as the background image;
registering a starting playback time of a first video player playing a first sub-video, wherein the first video at least comprises one first sub-video, and the first sub-video is used as the foreground image;
in response to a current time reaching a correction time, correcting the starting playback time until synchronizing pictures of the first video player and the second video player, wherein the correction time is earlier than or equal to the starting playback time; and
in response to the current time reaching the corrected starting playback time, controlling the first video player to start playing the first sub-video, so that the foreground image rendered by the first video player and the background image rendered by the second video player and corresponding to the foreground image can be superimposed to form a three-dimensional effect.

### Claim 6 (depends on 5)

The method according to claim 5, further comprising:
in response to finishing playing the first sub-video, deleting the first video player, and registering a starting playback time of the first video player playing a next first sub-video, until finishing playing all the first sub-videos of the first video.

### Claim 7 (depends on 5)

The method according to claim 5, wherein in response to the current time reaching the corrected starting playback time, controlling the first video player to start playing the first sub-video, comprising:
in response to the current time reaching the corrected starting playback time, determining whether a resource of the first sub-video is normal; and
in response to determining that the resource of the first sub-video is normal, controlling the first video player to start playing the first sub-video.

### Claim 8

A computer-readable medium on which a computer program is stored, wherein the computer program, when executed by a processing device, realizes a video rendering method, comprising:
acquiring a target video, wherein the target video is a video obtained by encoding corresponding images of a first video used as a foreground image and a second video used as a background image;
decoding the target video by a video player to obtain a decoding result, wherein the decoding result comprises foreground image information and background image information corresponding to a first image in the target video, wherein the foreground image information is composed of image information respectively corresponding to a foreground image layer and an alpha channel layer, and the background image information is composed of image information corresponding to a background image layer, and the first image is an image with a three-dimensional effect when rendered;
rendering the foreground image information corresponding to the first image and rendering the background image information corresponding to the first image by the video player, so that the foreground image obtained by rendering the foreground image information and the background image obtained by rendering the background image information can be superimposed to form a three-dimensional effect.

### Claim 9 (depends on 8)

The medium according to claim 8, wherein in the video rendering method,
the rendering the foreground image information corresponding to the first image and rendering the background image information corresponding to the first image by the video player comprises:
merging and rendering image information respectively corresponding to the foreground image layer and the alpha channel layer corresponding to the first image by the video player, and rendering the background image information corresponding to the first image by the video player.

### Claim 10 (depends on 8)

The medium according to claim 8, wherein in the video rendering method,
the decoding result further comprises background image information corresponding to a second image in the target video, wherein the second image is an image without a three-dimensional effect when rendered, and
the acquiring a target video comprises:
acquiring the first video and the second video;
encoding target image information corresponding to images belonging to a same time of the first video and the second video to obtain a merged image corresponding to the images, wherein the merged image is the first image or the second image; and
generating the target video according to the merged images corresponding to all the images in the first video and the second video.

### Claim 11 (depends on 8)

The medium according to claim 8, wherein the video rendering method further comprises:
controlling a second video player to play the second video used as the background image;
registering a starting playback time of a first video player playing a first sub-video, wherein the first video at least comprises one first sub-video, and the first sub-video is used as the foreground image;
in response to a current time reaching a correction time, correcting the starting playback time until synchronizing pictures of the first video player and the second video player, wherein the correction time is earlier than or equal to the starting playback time; and
in response to the current time reaching the corrected starting playback time, controlling the first video player to start playing the first sub-video, so that the foreground image rendered by the first video player and the background image rendered by the second video player and corresponding to the foreground image can be superimposed to form a three-dimensional effect.

### Claim 12 (depends on 11)

The medium according to claim 11, wherein the video rendering method further comprises:
in response to finishing playing the first sub-video, deleting the first video player, and registering a starting playback time of the first video player playing a next first sub-video, until finishing playing all the first sub-videos of the first video.

### Claim 13 (depends on 11)

The medium according to claim 11, wherein in the video rendering method,
in response to the current time reaching the corrected starting playback time, controlling the first video player to start playing the first sub-video, comprising:
in response to the current time reaching the corrected starting playback time, determining whether a resource of the first sub-video is normal; and
in response to determining that the resource of the first sub-video is normal, controlling the first video player to start playing the first sub-video.

### Claim 14

An electronic device, comprising:
a storage device on which a computer program is stored; and
a processing device configured to execute the computer program in the storage device to realize a video rendering method, comprising:
acquiring a target video, wherein the target video is a video obtained by encoding corresponding images of a first video used as a foreground image and a second video used as a background image;
decoding the target video by a video player to obtain a decoding result, wherein the decoding result comprises foreground image information and background image information corresponding to a first image in the target video, wherein the foreground image information is composed of image information respectively corresponding to a foreground image layer and an alpha channel layer, and the background image information is composed of image information corresponding to a background image layer, and the first image is an image with a three-dimensional effect when rendered; and
rendering the foreground image information corresponding to the first image and rendering the background image information corresponding to the first image by the video player, so that the foreground image obtained by rendering the foreground image information and the background image obtained by rendering the background image information can be superimposed to form a three-dimensional effect.

### Claim 15 (depends on 14)

The electronic device according to claim 14, wherein in the video rendering method,
the rendering the foreground image information corresponding to the first image and rendering the background image information corresponding to the first image by the video player comprises:
merging and rendering image information respectively corresponding to the foreground image layer and the alpha channel layer corresponding to the first image by the video player, and rendering the background image information corresponding to the first image by the video player.

### Claim 16 (depends on 14)

The electronic device according to claim 14, wherein in the video rendering method,
the decoding result further comprises background image information corresponding to a second image in the target video, wherein the second image is an image without a three-dimensional effect when rendered, and
the acquiring a target video comprises:
acquiring the first video and the second video;
encoding target image information corresponding to images belonging to a same time of the first video and the second video to obtain a merged image corresponding to the images, wherein the merged image is the first image or the second image; and
generating the target video according to the merged images corresponding to all the images in the first video and the second video.

### Claim 17 (depends on 16)

The electronic device according to claim 16, wherein the video rendering method further comprises:
in response to the decoding result only comprising the background image information corresponding to the second image, rendering the background image information corresponding to the second image by the video player.

### Claim 18 (depends on 14)

The electronic device according to claim 14, wherein the video rendering method further comprises:
controlling a second video player to play the second video used as the background image;
registering a starting playback time of a first video player playing a first sub-video, wherein the first video at least comprises one first sub-video, and the first sub-video is used as the foreground image;
in response to a current time reaching a correction time, correcting the starting playback time until synchronizing pictures of the first video player and the second video player, wherein the correction time is earlier than or equal to the starting playback time; and
in response to the current time reaching the corrected starting playback time, controlling the first video player to start playing the first sub-video, so that the foreground image rendered by the first video player and the background image rendered by the second video player and corresponding to the foreground image can be superimposed to form a three-dimensional effect.

### Claim 19 (depends on 18)

The electronic device according to claim 18, wherein the video rendering method further comprises:
in response to finishing playing the first sub-video, deleting the first video player, and registering a starting playback time of the first video player playing a next first sub-video, until finishing playing all the first sub-videos of the first video.

### Claim 20 (depends on 18)

The electronic device according to claim 18, wherein in the video rendering method,
in response to the current time reaching the corrected starting playback time, controlling the first video player to start playing the first sub-video, comprising:
in response to the current time reaching the corrected starting playback time, determining whether a resource of the first sub-video is normal; and
in response to determining that the resource of the first sub-video is normal, controlling the first video player to start playing the first sub-video.
