# US 2021/0289250 A1 · Video Processing Method, Electronic Device and Computer-Readable Storage Medium

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

- Number: US 2021/0289250 A1
- Document ID: US20210289250A1
- Status: Published application
- Kind: A1
- Application number: 17/332,379
- Filed: 2021-05-27
- Published: 2021-09-16
- Earliest claimed: 2018-11-27
- Assignees: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Applicants: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Inventors: Hai Yang; Jie Hu
- Web page: https://patentgrep.com/patent/US20210289250A1

## CPC

- H04N 21/42653: {for processing graphics}
- H04N 21/440236: {by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text}
- H04N 21/4183: {providing its own processing capabilities, e.g. external module for video decoding}
- H04N 21/4312: {involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations}
- H04N 21/4316: {for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window}
- H04N 21/4394: {involving operations for analysing the audio stream, e.g. detecting features or characteristics in audio streams (arrangements characterised by components specially adapted for monitoring, identification or recognition of audio in broadcast systems H04H60/58)}
- H04N 21/4884: {for displaying subtitles}
- H04N 21/812: {involving advertisement data (advertising per se G06Q30/02)}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Disclosed are a video processing method an electronic device and a computer-readable storage medium. The electronic device includes a display screen. The video processing method includes: obtaining an audio stream and a video stream by parsing a video file; wherein the video file is an online video; generating a subtitle stream based on the audio stream; obtaining a target video stream by synthesizing the subtitle stream and the video stream; and displaying the target video stream on the display screen.

## Claims

### Claim 1

A video processing method for an electronic device; wherein the electronic device comprises a display screen; the video processing method comprises:
obtaining an audio stream and a video stream by parsing a video file; wherein the video file is an online video;
generating a subtitle stream based on the audio stream;
obtaining a target video stream by synthesizing the subtitle stream and the video stream; and
displaying the target video stream on the display screen.

### Claim 2 (depends on 1)

The video processing method according to claim 1, wherein the obtaining the target video stream by synthesizing the subtitle stream and the video stream comprises:
obtaining a plurality of video frames by decoding the video stream;
performing video enhancement processing on the plurality of video frames; and
obtaining the target video stream by synthesizing the subtitle stream and the plurality of enhanced video frames on which the video enhancement processing is performed.

### Claim 3 (depends on 2)

The video processing method according to claim 2, wherein the electronic further comprises a central processing unit (CPU) and a graphics processing unit (GPU); the generating the subtitle stream based on the audio stream and the obtaining the plurality of video frames by decoding the video stream comprise:
invoking the CPU to convert the audio stream to the subtitle stream; and
obtaining the plurality of video frames by invoking the GPU to decode the video stream.

### Claim 4 (depends on 3)

The video processing method according to claim 3, wherein the obtaining the plurality of video frames by invoking the GPU to decode the video stream comprises:
obtaining a resolution of the video file;
obtaining a utilization rate of the CPU in response to the resolution of the video file being less than or equal to a first preset resolution;
determining whether the utilization rate of the CPU is less than a preset value; and
in response to the utilization rate of the CPU being less than the preset value, obtaining the plurality of video frames by invoking the GPU to decode the video stream.

### Claim 5 (depends on 4)

The video processing method according to claim 4, wherein the determining whether the utilization rate of the CPU is less than the preset value comprises:
obtaining the utilization rate of each of currently launched applications in response to the utilization rate of the CPU being less than the preset value;
determining that at least one of the currently launched applications is a preset application, wherein the preset application is capable of being closed by a system of the electronic device without authorization from a user;
closing the currently launched application being the preset application;
obtaining a current utilization rate of the CPU as the utilization rate of the CPU; and
returning and performing the determining whether the utilization rate of the CPU is less than the preset value again, and obtaining a determination current result as a target determination result.

### Claim 6 (depends on 4)

The video processing method according to claim 4, wherein after the determining whether the utilization rate of the CPU is less than the preset value, the video processing method further comprises:
in response to the utilization rate of the CPU being greater than or equal to the preset value, obtaining the plurality of video frames by invoking the GPU or the CPU to decode the video stream.

### Claim 7 (depends on 3)

The video processing method according to claim 3, wherein the obtaining the plurality of video frames by invoking the GPU to decode the video stream comprises:
obtaining a resolution of the video file;
in response to the resolution of the video file being greater than the first preset resolution, obtaining the plurality of video frames by invoking the GPU to decode the video stream.

### Claim 8 (depends on 3)

The video processing method according to claim 3, wherein the performing the video enhancement processing on the plurality of video frames and the obtaining the target video stream by synthesizing the subtitle stream and the plurality of video frames on which the video enhancement processing is performed comprise:
sending the plurality of video frames to an off-screen rendering buffer;
instructing the GPU to perform the video enhancement processing on the plurality of video frames in the off-screen rendering buffer; and
sending the subtitle stream and the plurality of video frames on which the video enhancement processing is performed to a frame buffer and obtaining the target video stream by synthesizing the subtitle stream and the plurality of video frames.

### Claim 9 (depends on 2)

The video processing method according to claim 2, wherein the performing the video enhancement processing on the plurality of video frames and the obtaining the target video stream by synthesizing the subtitle stream and the plurality of video frames on which the video enhancement processing is performed comprise:
searching for target video frames among the plurality of video frames; wherein for each target video frame, a time interval between a playing time point of the each target video frame and a playing start time of the video file is greater than a preset time interval; the preset time interval is between an ending time of an advertisement and the playing start time; or, the preset time interval is between an ending time of an opening song of the video file and the playing start time;
performing the video enhancement processing on the target video frames; and
obtaining the target video stream by synthesizing all video frames and the subtitle stream.

### Claim 10 (depends on 2)

The video processing method according to claim 2, wherein the performing the video enhancement processing on the plurality of video frames comprises:
optimizing image parameters on the plurality of video frames.

### Claim 11 (depends on 10)

The video processing method according to claim 10, wherein the optimizing image parameters comprises at least one optimization item of image parameters; the optimizing image parameters on the plurality of video frames comprises:
in response to the resolution of the video file being less than a second preset resolution, configuring a first optimization strategy for the video file; and
in response to the resolution of the video file being greater than or equal to the second preset resolution, configuring a second optimization strategy for the video file; wherein an optimization level of each optimization item in the first optimization strategy and an optimization level of a corresponding optimization item in the second optimization strategy are different.

### Claim 12 (depends on 11)

The video processing method according to claim 11, wherein the at least one optimization item of image parameters comprises at least one of exposure enhancement, denoising, edge sharpening, contrast increase, and saturation increase; an optimization level of the denoising in the first optimization strategy is higher than the optimization level of the denoising in the second optimization strategy; an optimization level of the edge sharpening in the first optimization strategy is higher than the optimization level of the edge sharpening in the second optimization strategy; an optimization level of the saturation increase in the first optimization strategy is lower than the optimization level of the saturation increase in the second optimization strategy.

### Claim 13 (depends on 10)

The video processing method according to claim 10, wherein the optimizing image parameters comprises at least one optimization item for image parameters; the optimizing image parameters on the plurality of video frames comprises:
in response to the resolution of the video file being less than the second preset resolution, configuring a third optimization strategy for the video file; and
in response to the resolution of the video file being greater than or equal to the second preset resolution, configuring a fourth optimization strategy for the video file; wherein the third optimization strategy comprises denoising and edge sharpening; the fourth optimization strategy comprises saturation increase.

### Claim 14 (depends on 9)

The video processing method according to claim 9, wherein prior to the searching for the target video frames among the plurality of video frames, the video processing method further comprises:
obtaining a user level;
in response to the user level being the preset level, configuring the preset time interval as a first time length; and
in response to the user level being not the preset level, configuring the preset time interval as a second time length; wherein the first time length is less than the second time length.

### Claim 15 (depends on 9)

The video processing method according to claim 9, wherein before the searching for the target video frames among the plurality of video frames, the video processing method further comprises:
obtaining a duration of advertisement content added to each video as an advertisement duration of the each video; and
determining the preset time interval based on all the advertisement durations.

### Claim 16 (depends on 15)

The video processing method according to claim 15, wherein the determining the preset time interval based on all the advertisement durations comprises:
configuring an advertisement duration with longest time length among all the advertisement durations as the preset time interval.

### Claim 17 (depends on 15)

The video processing method according to claim 15, wherein the determining the preset time interval based on all the advertisement durations comprises:
configuring an average value of all the advertisement durations as the preset time interval.

### Claim 18 (depends on 8)

The video processing method according to claim 8, wherein the displaying the target video stream on the display screen comprises:
instructing the GPU to read image data from the frame buffer frame by frame according to a refresh frequency of the display screen; and
displaying the image data on the display screen after rendering and synthesis processing.

### Claim 19

An electronic device, comprising:
a display screen;
at least one processor; and
at least one memory including program code;
the at least one memory and the program code configured to, with the at least one processor, cause the electronic device to perform:
obtaining an audio stream and a video stream by parsing a video file; wherein the video file is an online video;
generating a subtitle stream based on the audio stream;
obtaining a target video stream by synthesizing the subtitle stream and the video stream; and
displaying the target video stream on the display screen.

### Claim 20

A non-transitory computer-readable storage medium, comprising program code stored thereon for performing at least the following:
obtaining an audio stream and a video stream by parsing a video file; wherein the video file is an online video;
generating a subtitle stream based on the audio stream;
obtaining a target video stream by synthesizing the subtitle stream and the video stream; and
displaying the target video stream on the display screen.
