Video synthesis method, apparatus, computer device and readable storage medium
AssigneeBeijing Microlive Vision Technology Co., Ltd.
InventorZhixin Tang
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a video synthesis method, apparatus, computer device and computer-readable storage medium, which the method includes: acquiring a first video; capturing second video data photographed in real time; performing first encoding on the second video data to obtain an encoded video; synthesizing the first video and the encoded video to obtain synthesized video data; and performing second encoding on the synthesized video data to obtain a target video. By means of the method, there is less loss in the obtained target video frames and a relatively high definition of the video frames.
Claims11
A video synthesis method, comprising:
- acquiring a first video;
- capturing second video data photographed in real time;
- performing first encoding on the second video data to obtain an encoded video, wherein the performing first encoding on the second video data to obtain an encoded video further comprises:
- encoding the second video data in real time by adopting a first entropy encoding mode to obtain the encoded video;
- synthesizing the first video and the encoded video to obtain synthesized video data;
- and
- performing second encoding on the synthesized video data to obtain a target video, wherein the performing second encoding on the synthesized video data to obtain a target video further comprises:
- encoding the synthesized video data in non-real time by adopting a second entropy encoding mode to obtain the target video, wherein the first entropy encoding mode is different from the second entropy encoding mode,
- wherein, an encoding speed of encoding the synthesized video data in non-real time is lower than an encoding speed of encoding the second video data in real time.
A computer device comprising:
- a memory;
- and
- a processor, wherein the memory stores a computer program that, when executed by the processor, causes the computer device to perform operations of:
- acquiring a first video;
- capturing second video data photographed in real time;
- performing first encoding on the second video data to obtain an encoded video, wherein the performing first encoding on the second video data to obtain an encoded video further comprises:
- encoding the second video data in real time by adopting a first entropy encoding mode to obtain the encoded video;
- synthesizing the first video and the encoded video to obtain synthesized video data;
- and
- performing second encoding on the synthesized video data to obtain a target video, wherein the performing second encoding on the synthesized video data to obtain a target video further comprises:
- encoding the synthesized video data in non-real time by adopting a second entropy encoding mode to obtain the target video, wherein the first entropy encoding mode is different from the second entropy encoding mode,
- wherein, an encoding speed of encoding the synthesized video data in non-real time is lower than an encoding speed of encoding the second video data in real time.
A non-transitory computer-readable storage medium, wherein the computer-readable storage medium has a computer program storage thereon and is configured to implement, when executed by a processor, a video synthesis method, comprising:
- acquiring a first video;
- capturing second video data photographed in real time;
- performing first encoding on the second video data to obtain an encoded video, wherein the performing first encoding on the second video data to obtain an encoded video further comprises:
- encoding the second video data in real time by adopting a first entropy encoding mode to obtain the encoded video;
- synthesizing the first video and the encoded video to obtain synthesized video data;
- and
- performing second encoding on the synthesized video data to obtain a target video, wherein the performing second encoding on the synthesized video data to obtain a target video further comprises:
- encoding the synthesized video data in non-real time by adopting a second entropy encoding mode to obtain the target video, wherein the first entropy encoding mode is different from the second entropy encoding mode,
- wherein, an encoding speed of encoding the synthesized video data in non-real time is lower than an encoding speed of encoding the second video data in real time.
The computer device according 5, wherein a code rate of the second encoding is less than a code rate of the first encoding.
Dependencies are inferred from the claim text.