IP Library › Granted Patent US 10,984,067
Granted Patent B2
US 10,984,067 · App. 16/752,450 · Granted Apr 20, 2021

Video generating method, apparatus, server, and storage medium

Inventor: Xuehui Huang (Shanghai, CN)
Assignee: Wangsu Science & Technology Co., Ltd.
G06F16/9577G06F16/958H04N21/2356H04N21/2358
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,984,067
App. No.
16/752,450
Granted
Apr 20, 2021
Kind
B2
Abstract

Embodiments of the present disclosure relate to the field of video processing field, and provide a method, an apparatus, a server, and a storage medium for generating videos. In some embodiments, webpage snapshot data is obtained in real time based on a preset web address; target webpage content is selected from the obtained webpage snapshot data; and the selected target webpage content is synthesized with a pre-obtained input video, to generate an output video including the target webpage content.

Claims (70)

1. A video generating method applied to a server, comprising:

obtaining a web address;

obtaining webpage snapshot data in real time based on the web address;

selecting target webpage content from obtained webpage snapshot data; and

synthesizing a selected target webpage content with a pre-obtained input video, to generate an output video comprising the target webpage content;

the method further comprising, after obtaining webpage snapshot data and before selecting target webpage content:

selecting a target cache mode from a plurality of preset cache modes; and

caching the obtained webpage snapshot data based on a selected target cache mode;

wherein selecting target webpage content from obtained webpage snapshot data includes selecting the target webpage content from cached webpage snapshot data.

2. The video generating method according to claim 1 , wherein synthesizing a selected target webpage content with a pre-obtained input video specifically comprises:

adjusting a transparency of each pixel in the target webpage content and a transparency of each pixel in a pre-selected input video frame to be synthesized, wherein the input video frame to be synthesized is selected from an input video; and

superimposing the target webpage content and the input video frame to be synthesized after adjusting the transparency.

3. The video generating method according to claim 2 , wherein a superimposing manner is specifically: full-picture superimposing or superimposing in a specified region.

4. The video generating method according to claim 1 , wherein selecting the target webpage content from cached webpage snapshot data specifically comprises:

decoding the cached webpage snapshot data to obtain a webpage frame; and

selecting the target webpage content from the webpage frame.

5. The video generating method according to claim 1 , wherein selecting the target webpage content from cached webpage snapshot data specifically comprises:

determining a timestamp of the target webpage content based on a timestamp of the input video frame to be synthesized, wherein the input video frame to be synthesized is selected from the input video;

selecting webpage data to be synthesized from the cached webpage snapshot data based on a determined timestamp of the target webpage content; and

decoding selected webpage data to be synthesized to obtain the target webpage content.

6. The video generating method according to claim 1 , wherein after selecting target webpage content and before synthesizing a selected target webpage content with a pre-obtained input video, the method further comprises:

adjusting a pixel format of the target webpage content and a pixel format of the input video to be the same.

7. The video generating method according to claim 1 , wherein after selecting target webpage content and before synthesizing a selected target webpage content with a pre-obtained input video, the method further comprises:

adjusting a resolution of the target webpage content and a resolution of the input video to be the same.

8. The video generating method according to claim 1 , wherein obtaining webpage snapshot data in real time based on the web address specifically comprises:

rendering a webpage picture based on the web address, and capturing a rendered webpage picture in real time;

obtaining a captured webpage picture as webpage snapshot data; and

stopping rendering the webpage picture and stopping capturing the rendered webpage picture when an amount of obtained webpage snapshot data reaches a preset threshold.

9. The video generating method according to claim 8 , wherein capturing a rendered webpage picture in real time specifically comprises:

capturing a loaded webpage picture in real time after the webpage picture is loaded.

10. The video generating method according to claim 1 , wherein obtaining webpage snapshot data in real time is specifically: webpage snapshot data that satisfies a preset page attribute; wherein a page attribute comprises at least any one of or any combination of the following: a background color, a resolution, or an interaction mode.

11. The video generating method according to claim 1 , wherein the web address is specifically a template address; wherein the template address corresponds to a webpage template picture, the webpage template picture is generated based on a layout manner and a picture effect of a historical output video; and

the webpage snapshot data is specifically: screenshot data of the webpage template picture.

12. A server, comprising:

at least one processor; and

a memory in communication with the at least one processor;

wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform a video generating method;

wherein the video generating method comprises:

obtaining a web address;

obtaining webpage snapshot data in real time based on the web address;

selecting target webpage content from obtained webpage snapshot data; and

synthesizing a selected target webpage content with a pre-obtained input video, to generate an output video comprising the target webpage content;

the method further comprising, after obtaining webpage snapshot data and before selecting target webpage content:

selecting a target cache mode from a plurality of preset cache modes; and

caching the obtained webpage snapshot data based on a selected target cache mode;

wherein selecting target webpage content from obtained webpage snapshot data includes selecting the target webpage content from cached webpage snapshot data.

13. The server according to claim 12 , wherein synthesizing a selected target webpage content with a pre-obtained input video specifically comprises:

adjusting a transparency of each pixel in the target webpage content and a transparency of each pixel in a pre-selected input video frame to be synthesized, wherein the input video frame to be synthesized is selected from an input video; and

superimposing the target webpage content and the input video frame to be synthesized after adjusting the transparency.

14. The server according to claim 12 , wherein obtaining webpage snapshot data in real time based on the web address specifically comprises:

rendering a webpage picture based on the web address, and capturing a rendered webpage picture in real time;

obtaining a captured webpage picture as webpage snapshot data; and

stopping rendering the webpage picture and stopping capturing the rendered webpage picture when an amount of obtained webpage snapshot data reaches a preset threshold.

15. A non-transitory computer readable storage medium storing a computer program, wherein when the computer program is executed by a processor, a video generating method is implemented;

wherein the video generating method comprises:

obtaining a web address;

obtaining webpage snapshot data in real time based on the web address;

selecting target webpage content from obtained webpage snapshot data; and

synthesizing a selected target webpage content with a pre-obtained input video, to generate an output video comprising the target webpage content;

the method further comprising, after obtaining webpage snapshot data and before selecting target webpage content:

selecting a target cache mode from a plurality of preset cache modes; and

caching the obtained webpage snapshot data based on a selected target cache mode;

wherein selecting target webpage content from obtained webpage snapshot data includes selecting the target webpage content from cached webpage snapshot data.

16. The non-transitory computer readable storage medium according to 15 , wherein synthesizing a selected target webpage content with a pre-obtained input video specifically comprises:

adjusting a transparency of each pixel in the target webpage content and a transparency of each pixel in a pre-selected input video frame to be synthesized, wherein the input video frame to be synthesized is selected from an input video; and

superimposing the target webpage content and the input video frame to be synthesized after adjusting the transparency.

17. The non-transitory computer readable storage medium according to 15 , wherein obtaining webpage snapshot data in real time based on the web address specifically comprises:

rendering a webpage picture based on the web address, and capturing a rendered webpage picture in real time;

obtaining a captured webpage picture as webpage snapshot data; and

stopping rendering the webpage picture and stopping capturing the rendered webpage picture when an amount of obtained webpage snapshot data reaches a preset threshold.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 16, 2020
From: HUANG, XUEHUI
To: WANGSU SCIENCE & TECHNOLOGY CO., LTD.
Reel/Frame 053232/0404 →
Priority Claims (1)
CN 201910559629.2 · Jun 26, 2019 · national
Continuity (2)
Continuation PCTCN2019102058 · Aug 22, 2019
Related Publication 20200410034A1 · Dec 31, 2020