CN114143487A - Video recording method and device - Google Patents
Video recording method and device Download PDFInfo
- Publication number
- CN114143487A CN114143487A CN202111529004.5A CN202111529004A CN114143487A CN 114143487 A CN114143487 A CN 114143487A CN 202111529004 A CN202111529004 A CN 202111529004A CN 114143487 A CN114143487 A CN 114143487A
- Authority
- CN
- China
- Prior art keywords
- video
- path
- layer
- picture
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000002194 synthesizing effect Effects 0.000 claims abstract description 12
- 230000015572 biosynthetic process Effects 0.000 claims description 11
- 238000003786 synthesis reaction Methods 0.000 claims description 11
- 230000000007 visual effect Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 7
- 238000004590 computer program Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008092 positive effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/265—Mixing
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- Studio Circuits (AREA)
Abstract
The invention provides a video recording method and a video recording device, wherein the method comprises the following steps: s10: acquiring a first path of video pictures shot by a front camera and a second path of video pictures shot by a rear camera; s20: synthesizing the first path of video image and the second path of video image; s30: and outputting the synthesized video picture. The method of the embodiment of the invention can simultaneously acquire the video pictures of the front camera and the rear camera and synthesize the video pictures of the front camera and the rear camera, thereby simultaneously displaying the video pictures of the front camera and the rear camera and simultaneously displaying the video pictures with different visual angles.
Description
Technical Field
The invention relates to the technical field of short videos, in particular to a video recording method and device.
Background
More and more people now like to show and record things with mobile phone recorded videos. Generally, the recording and the explanation of the demonstration contents are completed by recording videos and recording explanation sounds through a rear camera. Or the front camera records the portrait + the content and the explanation. The two modes have own defects, the first mode is that a real person cannot go out of a mirror, the video expression is not vivid enough, and the second mode is that the real person occupies an overlarge picture and the content display is not sufficient.
Disclosure of Invention
In order to solve the above technical problem, the present invention provides a video recording method, including:
s10: acquiring a first path of video pictures shot by a front camera and a second path of video pictures shot by a rear camera;
s20: synthesizing the first path of video image and the second path of video image;
s30: and outputting the synthesized video picture.
Preferably, the method for synthesizing the first path of video picture and the second path of video picture includes:
s201: judging a current picture output mode;
s202: acquiring images of a first path of video image and a second path of video image with different resolutions according to a current image output mode;
s203: the video pictures with high acquisition resolution in the first path of video pictures and the second path of video pictures are placed in a first layer, and the video pictures with low acquisition resolution are placed in a second layer;
s204: combining the layer data of the first layer and the second layer to form a new video picture;
wherein the second layer is located above the first layer.
Preferably, the picture output mode includes a content mode and a portrait mode.
Preferably, in the content mode, a second path of video picture of the rear camera is acquired at a relatively high resolution, and the second path of video picture of the rear camera is placed in the first image layer;
and acquiring a first path of video picture of the front camera at a relatively low resolution, and placing the first path of video picture of the front camera in a second image layer.
Preferably, in the content mode, step S203 is preceded by step S202-1: and cutting the first path of video image to obtain a portrait area of the first path of video image.
Preferably, in the portrait mode, the first path of video picture of the front camera is acquired at a relatively high resolution, the first path of video picture of the front camera is placed in the first map layer, the second path of video picture of the rear camera is acquired at a relatively low resolution, and the second path of video picture of the rear camera is placed in the second map layer.
A video recording apparatus, the apparatus comprising:
the front camera and the rear camera are respectively used for acquiring a first path of video image and a second path of video image;
the synthesis module is used for synthesizing the first path of video image and the second path of video image; and
and the output module outputs the synthesized video picture.
Preferably, the synthesis module comprises:
a judging unit for judging the current picture output mode;
the acquisition unit is used for acquiring images of the first path of video image and the second path of video image at different resolutions according to the current image output mode;
the distribution unit is used for placing the video pictures with high acquisition resolution in the first path of video pictures and the second path of video pictures in the first layer, and placing the video pictures with low acquisition resolution in the second layer;
the layer processing unit is used for combining the layer data of the first layer and the second layer to form a new video picture;
wherein the second layer is located above the first layer.
Preferably, the composition module further includes a screen output mode selection unit for selecting a content mode and a portrait mode.
Preferably, the combining module further includes a cropping unit, which crops the video picture with lower resolution in the first path of video picture and the second path of video picture.
The invention has the advantages and positive effects that: the method of the embodiment of the invention can simultaneously acquire the video pictures of the front camera and the rear camera and synthesize the video pictures of the front camera and the rear camera, thereby simultaneously displaying the video pictures of the front camera and the rear camera and simultaneously displaying the video pictures with different visual angles.
According to the embodiment of the invention, when the rear camera is used for recording the demonstration content, the portrait can be recorded in real time through the front camera and added into the demonstration content picture through arrangement, so that the recording of the demonstration content is more vivid and the content is more prominent. Meanwhile, different working modes can be set according to needs to meet different requirements.
Drawings
Fig. 1 shows a flow chart of a video recording method of an embodiment of the invention;
FIG. 2 is a flowchart illustrating a method for synthesizing a first path of video pictures and a second path of video pictures according to an embodiment of the present invention;
FIG. 3 shows a schematic diagram of a content schema;
FIG. 4 shows a schematic view of a portrait mode;
fig. 5 is a schematic structural diagram of a video recording apparatus according to an embodiment of the present invention;
fig. 6 shows a schematic structural diagram of a synthesis module of an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that in the description of the present invention, unless otherwise explicitly specified or limited, the term "storage medium" may be various media that can store a computer program, such as ROM, RAM, a magnetic or optical disk, or the like. The term "processor" may be a chip or a circuit having a data Processing function, such as a CPLD (Complex Programmable Logic Device), an FPGA (Field-Programmable Gate Array), an MCU (micro Controller Unit), a PLC (Programmable Logic Controller), and a CPU (Central Processing Unit). The term "electronic device" may be any device having data processing and storage functions and may generally include fixed and mobile terminals. Fixed terminals such as desktop computers and the like. Mobile terminals such as mobile phones, PADs, and mobile robots, etc. Furthermore, the technical features mentioned in the different embodiments of the invention described later can be combined with each other as long as they do not conflict with each other.
For a better understanding of the present invention, reference is made to the following detailed description and accompanying drawings that illustrate the invention.
Fig. 1 shows a flowchart of a video recording method according to an embodiment of the present invention, as shown in fig. 1: the method comprises the following steps:
s10: acquiring a first path of video pictures shot by a front camera and a second path of video pictures shot by a rear camera;
s20: synthesizing the first path of video image and the second path of video image;
s30: and outputting the synthesized video picture.
The method of the embodiment of the invention can simultaneously acquire the video pictures of the front camera and the rear camera and synthesize the video pictures of the front camera and the rear camera, thereby simultaneously displaying the video pictures of the front camera and the rear camera and simultaneously displaying the video pictures with different visual angles.
In a specific embodiment, in step S10, the video frames of the front camera and the rear camera are acquired at a uniform frame rate (e.g., 30 frames). In step S30, the video picture is output at a constant speed at the determined frame rate.
Fig. 2 is a flowchart illustrating a method for synthesizing a first path of video image and a second path of video image according to an embodiment of the present invention, and as shown in fig. 2, the method for synthesizing the first path of video image and the second path of video image includes:
s201: judging a current picture output mode;
s202: acquiring images of a first path of video image and a second path of video image with different resolutions according to a current image output mode;
s203: the video pictures with high acquisition resolution in the first path of video pictures and the second path of video pictures are placed in a first layer, and the video pictures with low acquisition resolution are placed in a second layer;
s204: combining the layer data of the first layer and the second layer to form a new video picture;
wherein the second layer is located above the first layer.
In the embodiment of the invention, the first layer is a background layer, and the display picture of the first layer is a display screen which is paved with the whole display screen; the second layer is located on the first layer, and the display picture is smaller than that of the first layer.
The screen output mode includes a content mode and a portrait mode.
Fig. 3 shows a schematic diagram of a content mode, and as shown in fig. 3, in the content mode, the second path of video picture of the rear camera is acquired at a relatively high resolution, the second path of video picture of the rear camera is placed in the first layer, the first path of video picture of the front camera is acquired at a relatively low resolution, and the first path of video picture of the front camera is placed in the second layer.
In the content mode, step S203 is preceded by step S202-1: and cutting a first path of video image with low acquisition resolution in the first path of video image and the second path of video image to obtain a human image area of the first path of video image, and placing the cut first path of video image in a second image layer. So as to ensure that the portrait in the first path of video picture is displayed in the second area with smaller display picture.
Further, when the angle and the size of the first path of video image of the front camera are changed, the portrait area of the first path of video image is recalculated.
Further, when the portrait area of the first video image is obtained, the portrait area of the first video image may be built in different shapes, such as a circle, a square, a polygon, an irregular shape, and the like, and the specific shape may be selected according to needs.
Fig. 4 shows a schematic diagram of a portrait mode, and as shown in fig. 4, in the portrait mode, a first path of video picture of the front camera is acquired at a relatively high resolution, the first path of video picture of the front camera is placed in a first image layer, a second path of video picture of the rear camera is acquired at a relatively low resolution, and the second path of video picture of the rear camera is placed in a second image layer.
And in the portrait mode, when the angle and the size of the second path of video pictures of the rear camera are changed, the content area of the second path of video pictures is recalculated.
According to the embodiment of the invention, when the rear camera is used for recording the demonstration content, the portrait can be recorded in real time through the front camera and added into the demonstration content picture through arrangement, so that the recording of the demonstration content is more vivid and the content is more prominent. Meanwhile, different working modes can be set according to needs to meet different requirements.
Fig. 5 is a schematic structural diagram of a video recording apparatus according to an embodiment of the present invention; as shown in fig. 5, the video recording apparatus includes:
the front camera and the rear camera are respectively used for acquiring a first path of video image and a second path of video image;
the synthesis module is used for synthesizing the first path of video image and the second path of video image; and
and the output module outputs the synthesized video picture.
FIG. 6 shows a schematic structural diagram of a synthesis module of an embodiment of the invention; as shown in fig. 6, the synthesis module includes:
a judging unit for judging the current picture output mode;
the acquisition unit is used for acquiring images of the first path of video image and the second path of video image at different resolutions according to the current image output mode;
the distribution unit is used for placing the video pictures with high acquisition resolution in the first path of video pictures and the second path of video pictures in the first layer, and placing the video pictures with low acquisition resolution in the second layer;
the layer processing unit is used for combining the layer data of the first layer and the second layer to form a new video picture;
wherein the second layer is located above the first layer.
Further, the synthesis module further comprises a picture output mode selection unit for selecting a content mode and a portrait mode.
Furthermore, the synthesis module further comprises a clipping unit for clipping the video picture with lower resolution in the first path of video picture and the second path of video picture.
The embodiments of the present invention have been described in detail, but the description is only for the preferred embodiments of the present invention and should not be construed as limiting the scope of the present invention. All equivalent changes and modifications made within the scope of the present invention should be covered by the present patent.
Claims (10)
1. A video recording method, characterized by: the method comprises the following steps:
s10: acquiring a first path of video pictures shot by a front camera and a second path of video pictures shot by a rear camera;
s20: synthesizing the first path of video image and the second path of video image;
s30: and outputting the synthesized video picture.
2. The video recording method of claim 1, wherein: the method for synthesizing the first path of video image and the second path of video image comprises the following steps:
s201: judging a current picture output mode;
s202: acquiring images of a first path of video image and a second path of video image with different resolutions according to a current image output mode;
s203: the video pictures with high acquisition resolution in the first path of video pictures and the second path of video pictures are placed in a first layer, and the video pictures with low acquisition resolution are placed in a second layer;
s204: combining the layer data of the first layer and the second layer to form a new video picture;
wherein the second layer is located above the first layer.
3. The video recording method of claim 2, wherein: the screen output mode includes a content mode and a portrait mode.
4. The video recording method of claim 3, wherein: in the content mode, acquiring a second path of video pictures of the rear camera at a relatively high resolution, and placing the second path of video pictures of the rear camera in a first layer;
and acquiring a first path of video picture of the front camera at a relatively low resolution, and placing the first path of video picture of the front camera in a second image layer.
5. The video recording method of claim 3, wherein: in the content mode, step S203 is preceded by step S202-1: and cutting the first path of video image to obtain a portrait area of the first path of video image.
6. The video recording method of claim 1, wherein: and during the portrait mode, acquiring a first path of video picture of the front camera with relatively high resolution, placing the first path of video picture of the front camera in a first picture layer, acquiring a second path of video picture of the rear camera with relatively low resolution, and placing the second path of video picture of the rear camera in a second picture layer.
7. A video recording apparatus, characterized by: the device comprises:
the front camera and the rear camera are respectively used for acquiring a first path of video image and a second path of video image;
the synthesis module is used for synthesizing the first path of video image and the second path of video image; and an output module outputting the synthesized video picture.
8. The video recording device of claim 7, wherein: the synthesis module comprises:
a judging unit for judging the current picture output mode;
the acquisition unit is used for acquiring images of the first path of video image and the second path of video image at different resolutions according to the current image output mode;
the distribution unit is used for placing the video pictures with high acquisition resolution in the first path of video pictures and the second path of video pictures in the first layer, and placing the video pictures with low acquisition resolution in the second layer;
the layer processing unit is used for combining the layer data of the first layer and the second layer to form a new video picture;
wherein the second layer is located above the first layer.
9. The method of claim 1, wherein: the composition module further includes a picture output mode selection unit for selecting a content mode and a portrait mode.
10. The method of claim 1, wherein: the synthesis module further comprises a clipping unit for clipping the video pictures with lower resolution in the first path of video pictures and the second path of video pictures.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111529004.5A CN114143487A (en) | 2021-12-15 | 2021-12-15 | Video recording method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111529004.5A CN114143487A (en) | 2021-12-15 | 2021-12-15 | Video recording method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114143487A true CN114143487A (en) | 2022-03-04 |
Family
ID=80382347
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111529004.5A Pending CN114143487A (en) | 2021-12-15 | 2021-12-15 | Video recording method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114143487A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102055834A (en) * | 2009-10-30 | 2011-05-11 | Tcl集团股份有限公司 | Double-camera photographing method of mobile terminal |
CN103856617A (en) * | 2012-12-03 | 2014-06-11 | 联想(北京)有限公司 | Photographing method and user terminal |
CN105120172A (en) * | 2015-09-07 | 2015-12-02 | 青岛海信移动通信技术股份有限公司 | Photographing method for front and rear cameras of mobile terminal and mobile terminal |
CN106165430A (en) * | 2016-06-29 | 2016-11-23 | 北京小米移动软件有限公司 | Net cast method and device |
CN112866725A (en) * | 2021-01-14 | 2021-05-28 | 视联动力信息技术股份有限公司 | Live broadcast control method and device |
CN112954219A (en) * | 2019-03-18 | 2021-06-11 | 荣耀终端有限公司 | Multi-channel video recording method and equipment |
CN113315940A (en) * | 2021-03-23 | 2021-08-27 | 海南视联通信技术有限公司 | Video call method, device and computer readable storage medium |
-
2021
- 2021-12-15 CN CN202111529004.5A patent/CN114143487A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102055834A (en) * | 2009-10-30 | 2011-05-11 | Tcl集团股份有限公司 | Double-camera photographing method of mobile terminal |
CN103856617A (en) * | 2012-12-03 | 2014-06-11 | 联想(北京)有限公司 | Photographing method and user terminal |
CN105120172A (en) * | 2015-09-07 | 2015-12-02 | 青岛海信移动通信技术股份有限公司 | Photographing method for front and rear cameras of mobile terminal and mobile terminal |
CN106165430A (en) * | 2016-06-29 | 2016-11-23 | 北京小米移动软件有限公司 | Net cast method and device |
CN112954219A (en) * | 2019-03-18 | 2021-06-11 | 荣耀终端有限公司 | Multi-channel video recording method and equipment |
CN112866725A (en) * | 2021-01-14 | 2021-05-28 | 视联动力信息技术股份有限公司 | Live broadcast control method and device |
CN113315940A (en) * | 2021-03-23 | 2021-08-27 | 海南视联通信技术有限公司 | Video call method, device and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11488359B2 (en) | Providing 3D data for messages in a messaging system | |
KR102624635B1 (en) | 3D data generation in messaging systems | |
US10298840B2 (en) | Foveated camera for video augmented reality and head mounted display | |
US11825065B2 (en) | Effects for 3D data in a messaging system | |
US8570347B2 (en) | Electronic device and method for image editing | |
US20200241731A1 (en) | Virtual reality vr interface generation method and apparatus | |
US20140071116A1 (en) | Reducing latency in an augmented-reality display | |
TW200844901A (en) | Banana codec | |
CN110569013B (en) | Image display method and device based on display screen | |
WO2017125050A1 (en) | Method, apparatus and storage medium for image processing | |
CN113012082A (en) | Image display method, apparatus, device and medium | |
CN111475676A (en) | Video data processing method, system, device, equipment and readable storage medium | |
CN110636365A (en) | Video character adding method and device | |
CN112422882A (en) | Method and device for providing video source for video conference system | |
CN110572717A (en) | Video editing method and device | |
CN114782648A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
US8654206B2 (en) | Apparatus and method for generating high dynamic range image | |
CN113518215B (en) | 3D dynamic effect generation method and device, computer equipment and storage medium | |
CN108256072B (en) | Album display method, apparatus, storage medium and electronic device | |
CN112017242B (en) | Display method and device, equipment and storage medium | |
CN114143487A (en) | Video recording method and device | |
CN114708289A (en) | Image frame prediction method and electronic equipment | |
CN112991146A (en) | Automatic special effect generation system and method | |
CN114449169B (en) | Clipping method and system for showing panoramic video in CAVE space | |
JP2016224930A (en) | Method and device for bounding object in video |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220304 |